I have 2 string variables within a struct. Later in a function of the struct, I define the variables such as...
string S1;
//within function
S1 = "Hello";
Then when I try to cout the value of the strings later like this...
cout << S1;
I get an error about the << operator not being defined. Anyone know how to solve this? I did include iostream, and string also.
string S1;
//within function
S1 = "Hello";
Then when I try to cout the value of the strings later like this...
cout << S1;
I get an error about the << operator not being defined. Anyone know how to solve this? I did include iostream, and string also.