cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
I need a bit of help
I need a bit of help
Jun 15, 2011 at 8:25pm UTC
Immortal Alatreon
(3)
#include <iostream>
using namespace std;
int main()
{
int i;
int secretnumber;
int guess[256];
i = 0;
secretnumber = 873;
}
{
do cout << "Im Bored, wanna play a game?" <<;
cout << "Im thinking of a numer you have 10 seconds to guess" <<;
cout << "GO!"
cin.getline (guess[256]);
if (guess[256] = secretnumber);
cout << "Holy Crap how did you know?"; << endl;
else (guess[256] >< secretnumber);
cout << "try agian" <<;
cin.getline (guess[256]);
for ( else >< secretnumber)
}
while (i <= 10)
{
cout << i << endl;
i++;
}
cout << "try agin" << endl;
return 0;
}
this is the code I have been working on its not done but i wnat to know if im typing it right can someone please clarify?
Jun 15, 2011 at 8:27pm UTC
Zhuge
(4664)
Have you tried compiling it?
Jun 15, 2011 at 8:30pm UTC
Immortal Alatreon
(3)
yes it doesn't work
Jun 15, 2011 at 8:32pm UTC
Computergeek01
(5613)
About two third of the code is outside the scope of Main(). You should fix that.
Topic archived. No new replies allowed.