IonicWind Software

Creative Basic => General Questions => Topic started by: Ionic Wind Support Team on April 28, 2009, 12:47:52 AM

Title: Interesting Creative BASIC tutorial
Post by: Ionic Wind Support Team on April 28, 2009, 12:47:52 AM
Found on the net whilst exploring referrers to the site:

http://www.students.meduniwien.ac.at/~n0102122/tutorials/cbasic-english.pdf

Title: Re: Interesting Creative BASIC tutorial
Post by: Dennisc on April 28, 2009, 09:09:06 AM
International recognition at last ;D ;D
Title: Re: Interesting Creative BASIC tutorial
Post by: GWS on April 28, 2009, 11:17:38 AM
Nice tutorial ..  :)

I hope lots of new folk will be encouraged to try it for themselves.

There is one misleading bit which maybe I should point out to anyone trying the simple calculation program on Page 5.

Converting numbers to strings for printout is actually not necessary.
Here's the same example printing without using strings.

It works because placing 'commas' between each value to be printed, tells Creative BASIC not to issue a carriage return.



DIM number1 AS INT
DIM number2 AS INT

PRINT "Enter number 1!"
INPUT number1
PRINT "Enter number 2!"
INPUT number2

setprecision 4

PRINT
PRINT "Addition:"
PRINT number1,"+ ", number2," = ", number1 + number2
PRINT "Subtraction:"
PRINT number1,"- ", number2," = ", number1 - number2
PRINT "Multiplication:"
PRINT number1,"* ", number2," = ", number1 * number2
PRINT "Division:"
PRINT number1,"/ ", number2," = ", number1 / number2



I've put a 'Setprecision' in the code as an example of setting the number of decimal places on printout.

best wishes, :)

Graham
Title: Re: Interesting Creative BASIC tutorial
Post by: Ionic Wind Support Team on April 29, 2009, 10:35:39 AM
I've spoken with Claus and he also has a German version of the tutorial:

http://www.students.meduniwien.ac.at/~n0102122/tutorials/cbasic.pdf

Paul.