Problem with begginer program. Problem on C++ for Dummies page 64.

I'm a beginner, so please explain in simple terms. I've tried everything. everything. I know there might be a typo of two of this symbol: "<<" rather than "<" but other than that nothing is happening. I tried "std::" already, but if your telling me I still need to try it, then I will. Though, need something different. Thank you. I've also tried other things. (Please include what I've already tried if you think it is needed)

#include <cstdlib>Thank you.
#include <iostream>
#include <string>

using namespace std;

int main(int argc, char *argv[])
{
int i = 11;
cin > i;
if (i > 10) {
cout << "It's greater than 10." << endl;
}
else {
cout << "It's not greater than 10." << endl;
}
system("PAUSE");
return EXIT_SUCCESS;
}
What are the errors you are getting? The only thing I can see is your cin > i; needs to have '>>'...
Topic archived. No new replies allowed.