Search:

Type: Posts; User: CornedBee

Search: Search took 0.10 seconds.

  1. That's because C89 doesn't allow that. (Newer C...

    That's because C89 doesn't allow that. (Newer C versions, like C99, do.) C++ does, and it's highly encouraged to only declare variables once you need them. I'll show you:


    #include<iostream>...
  2. Agree with oogabooga. Additionally, declaring...

    Agree with oogabooga. Additionally, declaring everything up-front only makes it worse. Declare variables at the last possible position.
Results 1 to 2 of 2