homework helpfirst get rid of the fact that its a float. (I not sure but I think you should) int costint=123.42*...
sugestetion welcomeso, it works properly now?
end program (loops)its so that if it doesnt return 1, it returns something, such as 0. if the password was wrong all 3 ...
end program (loops)yep, exactly! you could do the samething with a int too: [code] int getPassword() { int loopru...
Button eventoh, heres a thread simular to yours: http://www.cplusplus.com/forum/unices/9203/ stuff like this ...