I just started in C++ and I've been getting tons of data type conversion errors when I try to compile, especially when using library functions. Is there any good tips to avoid these errors and is there a good tutorial that explains the problem and how to properly use data types? I'm at the point where I could write a nice program, if I could just spend less time with these problems.
string big = "UPPERCASE WORDS ARE HERE.";
stringstream little(big);
string temp;
while (getline(little, temp, '.')){
tolower(little) >> temp;
}
cout << "Temp little: " << temp << endl;
error:
error C2664: 'tolower' : cannot convert parameter 1 from 'std::stringstream' to 'int'
It's hindering my ability to have the confidence I need to pick up chicks in the bar. I'm like - "Hi - I can't convert parameter 1 from stringstreams to ints.., want to go back to my place?"
I'm not even sure why tolower would want to convert to ints anyways?
I'm not sure if a large chunk of the syntax is getting lost in translation between writing Visual Basic in class by learning from a pseudo code book (not language specific), and trying to learn C++ at the same time at home....