Wed May 31 2000 07:35:
I can now assign to variables and print them out. I'm making
good money in my spare time!
Wed May 31 2000 07:35:
I can now assign to variables and print them out. I'm making
good money in my spare time!
The crazy thing is, that's easier to do in Smokey than in C or C++
(because Smokey has a built-in string data type).
Here's the code for that:
Wed May 31 2000 09:52:
What is your name?
Jake Berendes
Hello, Jake Berendes.
hello;
begin
var a: "What is your name?\n";
var b: string;
write a;
read b;
write "Hello, ", b, ".\n";
end
end hello
![]() | Unless otherwise noted, all content licensed by Leonard Richardson under a Creative Commons License. |