FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
Architecture & Design
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
October 01, 1999

The Small Scripting Language

(Page 5 of 8)
Oct99: The Small Scripting Language


(a)
main()
   print("Hello world^n");

(b) 
new myvar;

(c)
new counter = 0;

(d)
new prompt[] = !"Press any key...";

Example 4: (a) Function with a single statement; (b) declaring a variable; (c) variables may be initialized upon creation; (d) array that holds a packed string.


Copyright © 1999, Dr. Dobb's Journal
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK