[Gambas-user] C Code character manipulation - alternatives
KhurramM
kmsuse at ...626...
Wed May 20 11:04:44 CEST 2009
The Code:
PUBLIC SUB Main()
' Declare AND initialize variables.
DIM c, count AS Integer
' The values are initialized at Zero, by above command
DIM c1 AS String
' READ , PRINT , AND count characters.
PRINT "Enter characters (Press Carriage Return Twice to quit): "
LINE INPUT c1
PRINT c1
count += Len(c1)
WHILE NOT (c1 = Eof)
LINE INPUT c1
count += Len(c1)
PRINT c1
WEND
' PRINT the number OF characters printed.
PRINT count & " characters printed."
END
Gives me output:
Enter characters (Press Carriage Return Twice to quit):
657uyguig
657uyguig
uyt876896
uyt876896
21 characters printed.
Is it OKAY, should I leave it here?
I still dont get the feel of the C code here. I cant use ^Z to end the
program and print output. :confused:
--
View this message in context: http://www.nabble.com/C-Code-character-manipulation---alternatives-tp23611042p23631663.html
Sent from the gambas-user mailing list archive at Nabble.com.
More information about the User
mailing list