Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / how do i prompt user to input chars for my y or no bool

Author
Message
im not really here
13
Years of Service
User Offline
Joined: 14th Oct 2010
Location: iowa
Posted: 5th Nov 2010 07:52
hello im stuck trying to use a bool to rerun the program im not sure how to prompt a user to input a char ...if some one could help me out here pretty soon that would be great...ill be up all night =)


note: this program Im finished Im stuck on this part ...im just not sure how to do this using DarkGDK thanks again




Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 6th Nov 2010 09:00
have buttons on labeled Run Again? and the other Quit? then set them up so if the user clicks withing the screen area of a button it sets the bool variable to the corrisponding button. 1-run 0-quit

that would be sweet or you could set up a number of different ways to get that like "would you like to play again? 0 for no 1 for yes". its probably the easiest since you can use the unput as the bool. or a y or n thing with char Idk i dont know why im responding my advice sucks

Login to post a reply

Server time is: 2024-09-28 16:26:51
Your offset time is: 2024-09-28 16:26:51