i feel like a real newbee for this one.
I'm using the following code in my program, but it will not link.
error c2679 '<<':no operator found which takes a right-hand operand of type 'std::string'(or there is no acceptable conversion)Code:#include<string.h> int main(int argc, char *argv[]) { string stFileName(argv[2]); string stProgramName(argv[0]); cout<<"File Name: "<<stFileName<<endl; cout<<"Program Name: "<<stProgramName<<endl; return (0); }
?? why is this erroring ??