comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Name and favourite colour
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Name and favourite colour [message #85115 is a reply to message #85105] Fri, 05 July 2013 23:19 Go to previous messageGo to previous message
don.doran is currently offline  don.doran
Messages: 3
Registered: July 2013
Junior Member
On Thursday, 4 July 2013 19:28:19 UTC+1, don....@btinternet.com wrote:
> Hi people,
>
> I'm a newby student to idl. One problem which has stumped me is:
>
> Write a programme that asks for your name and favorite color, and then prints out a sentence that includes them. I think this uses the read command, but so far unable to get anything that works. Help. Cheers, Don

Thanks for that help Phillip, what I understand now is:
read, a, b, prompt="Enter name and favorite colour."
;;Assuming I enter Don and yellow, then.
PRINT, "Hi Don, your choice of yellow is a good one."
;;I can't figure out how the computer picks up my name and colour to include in the sentence. Cheers, Don
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Debugging Java Bridge CLASSPATH issues?
Next Topic: question on exactly when !p.position is defined

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:30:23 PDT 2025

Total time taken to generate the page: 0.00430 seconds