Search:

Type: Posts; User: Clyde

Search: Search took 0.02 seconds.

  1. Thread: Coding style

    by Clyde
    Replies
    21
    Views
    5,618

    "you mean as global variables?" No, i just...

    "you mean as global variables?"

    No, i just mean declaring them the first line after "int main()".

    "C++ removes this requirement and variables can be declared anywhere as long as they are...
  2. Thread: Coding style

    by Clyde
    Replies
    21
    Views
    5,618

    Coding style

    Having been previously learning C I have recently swapped to C++.

    What i've noticed is that in C the tendancy was to declare variables at the top of the program, in the book i'm reading on C++...
Results 1 to 2 of 2