Tuesday, June 27, 2006

gets lives to see another day

Found another interesting function - gets

printf "Name: "
STDOUT.flush
name = gets
printf "Hello " + name

Output:

Name: Ashish
Hello Ashish

The journey of discoveries continues.

0 Comments:

Post a Comment

<< Home