I am new to C++ having switched over from batch. I am trying to make a number counter to, but dont seem to be having much luck. Every time i try to compile it says i have an expression syntax error. Dont give me a new program, just tell me what is wrong with mine.
#include <iostream>
using namespace std;
int main()
{
int tminus;
cout<< "Please enter number to count to";
cin>> tminus;
cin.ignore();
for ( int x = 0; x <= << tminus <<; x++ ) {
cout<< x <<endl;
}
cin.get();
}
thanks in advance.
Again, please dont harass couse its something obvious. Im new okay?