PDA

View Full Version : Ask for names


dan
03-25-2006, 12:25 PM
Hi !
i want the user to enter his name and let the progam use the input later on.
(for keeping track of higscores and so on)

well I'm really not sure how to use vriables... does anyone know where to find some nice tutorials?



Thanks!!!

lanceA
03-25-2006, 12:53 PM
You might wish to view this site:
www.3programmers.com/mwells/GK-12.html#LP

Scroll down to Fifth Day October 11, 2005 and download HangmanI.doc. This is a tutorial for using ALICE to develop a Hangman game - it uses variables and perhaps it might be of help to you.

You may also wish to download HangmanII.doc which is discussed in the next paragraph below Fifth Day.

Good luck,

dan
03-25-2006, 01:01 PM
WOW!!
that was fast :)

thank you.. I'll have a look!

Koinu
09-11-2006, 11:26 AM
Instead of posting a new thread on this, I figured I'd raise it from the dead to show I did search for it. Sadly, thouse files do not exist. I'm trying to write a happy birthday card (assignment) for my mother, but would like to be able to expand it to anyone (having it ask a name via user input).

How could I go about returning a string withthis? I could do it in java, but I can't figure it out here.

thanks,
K

DrJim
09-11-2006, 07:21 PM
The attached will get a string from the keyboard - you can take it from there.

One problem is that the question window comes up several times when this is loaded. Entering anything or clicking cancel gets rid of them - annoying but doesn't seem to hurt anything.

Question functions are listed under World.

Jim

Deozaan
09-24-2006, 07:59 PM
Hey I found the files (http://www.3programmers.com/mwells/main_frame.html) that were mentioned earlier. There is a link to the right that says Alice Program. Click it and you'll see what was described.