0

these is my problem.
the user enter the password and the computer output "congratulation!"
if the user guess the assigned password otherwise "try again!"

how could i run these program. feedback a.s.a.p.
thanks.

3
Contributors
2
Replies
25
Views
4 Years
Discussion Span
Last Post by rubberman
0
this is pseodocode:

while(password!=stored_password)
{
    cout<<"try again!";
    cin>>password;    
}
I hope it will help!
-2

To both arpha16 and exsoft: we don't do people's homework here. If they post their best effort code and describe where they are having problems, we might help them. However, the terms of service for this forum is that we DO NOT do your homework for you! So exsoft, please don't do this in future! :-)

Ok, dope-slap over - you (exsoft) gave a good hint that arpha16 should take from here, though it REALLY isn't pseudo code. That would be more on the order of:

while password is not correct
    print "too bad, you lose!"
else
    print "ok, you win!"
end while

IE, pseudo code is JUST a description of the steps to take to solve the problem. Your code is way too close to correct C++ source code (with some issues - not to discuss here).

Edited by rubberman

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.