in gcc i can say
yet in VC 2010 EE I can't do this, firstly I have to sayCode:vector<string>arr; string str = "c:\\" + arr[0];
then if I try,Code:vector<string>arr; arr[0].c_str();
I get cannot add two pointers??Code:string str = "C:\\" + arr[0].c_str();