I just noticed something and was wondering why if i write this.
and I use the following #includes <iostream> and <cstring> I get a crap load of << erros ? but if i change this <cstring> to <string>Code:int main() { cout << "Please enter your first name: "; string name; cin >> name; const string greeting = "Hello, " + name + "!"; const int pad = 1; const int rows = pad * 2 + 3; return 0; }
It works.
Does <cstring> not work with the << and ? I notice that with the use of <cstring> peeps are using cin.getline. Is that becuase you need to get the entire string including whitespace? and >> wont do that?