引用:
原帖由 chao 于 2007-12-18 04:32 PM 发表
If the declaration is vector<string> func();
then it should be:
vector<string> func(){
vector<string> r;
return r;
}
hehe, thanks a lot, actually my question is, could I assign a value to "A" in this way:
vector<string> func(){} //function declaration;
string <string> A; //without initialization;
A=func();//seems this doesn't work.