Search:

Type: Posts; User: anon

Search: Search took 0.21 seconds.

  1. Replies
    5
    Views
    2,325

    You could set the values at the beginning of...

    You could set the values at the beginning of main. You could create a function that returns a map initialized with the data and initialize the map before main.



    map<std::string, int> globals =...
  2. Replies
    5
    Views
    2,325

    You can't have anything but declarations outside...

    You can't have anything but declarations outside of functions.
Results 1 to 2 of 2