This is an incredibly simple problem (I assume) because it has to do with a very simple program. In fact, I've written much more advanced things than this such as a calculator, database, and a guessing game. For some reason I decided to take a pretty long break from C++ (As you can see my last post was quite a while ago). Well now I'm back for good. No more of that break stuff :D Unfortunately I lost almost all my work due to my over-excitement about a disk reformat. So I installed the GCC compiler, added the the bin directory to my path variable, created an ever-so-simple program:
Fired up the compiler, only to get this error:Code:#include <iostream>
using namespace std;
int main()
{
char test;
cout << "Okay, this is a test!\n";
cin >> test;
return 0;
}
This is despicable... I must be out of my mind...Quote:
test.cpp: In function 'int main()':
test.cpp:6: no match for 'std::ostream& >> const char[22]' operator