hi everyone, im very new to programing, and i just made my first program/ game... if you could call it that...called pick a number, reeeeeaaalllyyy simple, at first it ran, then i tired to make it a lil more complicated, and now it wont run,
can some one help me out. and tell me wwhat i didd wrong,
here's the code
Code:#include <iostream> using namespace std; int main() { int thisisanumber; cout<<"hello! where going to play a game, if you win your cool... if you lose.... well then you suck Pick a number from 1-10: "; cin>> thisisanumber; cin.ignore(); if ( thisisanumber == 36) { cout<<"Yo your cool, Congratz\n"; } if ( thisisanumber <= 101) { cout<<"I Said 1 through 100, Try again"; // if a person types over 100 { if ( thisisanumber <= 37) { cout<<" Your to High TAKE IT DOWN A NOTCH"; // is a persons answer is too high } if ( thisisanumber >= 35) { cout<<" Your To Low, go up up up."; // if a persons answer is too low } cin.get(); } // this is were it syad the problem is



LinkBack URL
About LinkBacks


