How to setup a global container (C++03)?
问题 I want to define a global container (C++03), and here's an example code I tried, which does not work. #include <vector> #include <string> using namespace std; vector<string> Aries; Aries.push_back("Taurus"); // line 6 int main() {} Compile error: prog.cpp:6:1: error: 'Aries' does not name a type It seems I can define an empty global vector, but cannot fill it up. Looks like in C++03, I cannot specify an initializer either, such as: vector<string> Aries = { "Taurus" }; Have I made a mistake