QB64

Difference between r1.2 and the current

@@ -1,6 +1,11 @@
#noindex
<<tableofContents>>
 
= sites =
QB64 Game Programming
http://www.qb64sourcecode.com/

= type =
||type ||suffix ||
||integer ||% ||
||long integer ||& ||
@@ -8,7 +13,7 @@
||double precision ||# ||
||string ||$ ||

// suffix is Srch:sigil ?

= file IO =
OPEN "filename" FOR mode AS #filenumber
@@ -26,12 +31,16 @@
== LOF, GET ==
LOF는 파일의 길이

// ([[Date(2023-12-13T17:36:43)]]) 이 파일에선 MathJax가 $를 처리하지 않으면 좋겠는데... 이걸 어떻게 하는 게 최선일지... -> 그냥 pre로 처리하니 된다 (생각해보니 내가 이미 신경썼었음...)
{{{
Contents$ = SPACE$(LOF(파일번호))
GET #파일번호, Contents$ ' 파일 전체를 읽음
}}}

= keyboard IO =
{{{
IF _KEYDOWN(18432) THEN 'up arrow key pressed
IF _KEYDOWN(20480) THEN 'down arrow key pressed
}}}






1. sites

QB64 Game Programming
http://www.qb64sourcecode.com/

2. type

type suffix
integer %
long integer &
single precision !
double precision #
string $

// suffix is Srch:sigil ?

3. file IO

OPEN "filename" FOR mode AS #filenumber
mode는
INPUT
OUTPUT
APPEND
BINARY
RANDOM

WRITE #1, "something"

CLOSE #1

3.1. LOF, GET

LOF는 파일의 길이

// (2023-12-14) 이 파일에선 MathJax가 $를 처리하지 않으면 좋겠는데... 이걸 어떻게 하는 게 최선일지... -> 그냥 pre로 처리하니 된다 (생각해보니 내가 이미 신경썼었음...)
Contents$ = SPACE$(LOF(파일번호))
GET #파일번호, Contents$ ' 파일 전체를 읽음

4. keyboard IO

IF _KEYDOWN(18432) THEN 'up arrow key pressed
IF _KEYDOWN(20480) THEN 'down arrow key pressed