very basic beginner problem
when i try to compile my code... i get an error concerning the variable... i was playing aroud with some of the code in lessons 1-3 on the beginners guide... and wondered if you could input x yourself instead of the program declaring the variable itself. the error is on the line should be a simple fix, but i cant figure it out. the line i replaced was
Code:
#include <iostream>
using namespace std;
int main()
{
int x;
cin>> X;
cin.ignore();
do {
// "Hello, world!" is printed at least one time
// even though the condition is false
cout<<"Hello, world!\n";
} while ( x != 0 );
cin.get();
}
hope my tags work... this was my 1st post...