langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
11
Task/Character-codes/PureBasic/character-codes-1.purebasic
Normal file
11
Task/Character-codes/PureBasic/character-codes-1.purebasic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
If OpenConsole()
|
||||
;Results are the same when compiled for Ascii or Unicode
|
||||
charCode.c = 97
|
||||
Char.s = "a"
|
||||
PrintN(Chr(charCode)) ;prints a
|
||||
PrintN(Str(Asc(Char))) ;prints 97
|
||||
|
||||
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit")
|
||||
Input()
|
||||
CloseConsole()
|
||||
EndIf
|
||||
11
Task/Character-codes/PureBasic/character-codes-2.purebasic
Normal file
11
Task/Character-codes/PureBasic/character-codes-2.purebasic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
If OpenConsole()
|
||||
;UTF-8 encoding compiled for Unicode (UCS-2)
|
||||
charCode.c = 960
|
||||
Char.s = "π"
|
||||
PrintN(Chr(charCode)) ;prints π
|
||||
PrintN(Str(Asc(Char))) ;prints 960
|
||||
|
||||
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit")
|
||||
Input()
|
||||
CloseConsole()
|
||||
EndIf
|
||||
Loading…
Add table
Add a link
Reference in a new issue