QBasic.
:
INPUT A$
var
c1:char;
s1:string;
readln(cl);
readln(s1);
.
scanf :
"%s"
- char; "%" -
char. :
char c1,s1l[80];
scanf("%c",&c1l); //
scanf("%s",s1);
//
<Enter>,
d , si
.
, . ,
, .
, scant (
128 , -).
, ,
.
,
. ,
,
. :
int c1;
c1=getch();
//
//
c1=getche();
//
//
c1=getchar();
//
// Enter
, char,
.
.
.
. ,
<F1>, <F2> ... <F12> ,
. <Enter>,
, .
,
(stdin)
.
getch, getchar getche.
stdin , ,
, .
,
.
<Enter>. , getch ,
13, getchar ,
10. <Enter>
LF (line feed -- ), 10 (00)
ASCII. - <Ctrl>+<z>,
,
(end-of-file) 26,
EOF, 1. getchar
<Esc>, getch getche
.
gets, , :
gets (s);
, ,
s.
(128 ).
:
#include <iostream.h>
char c1, s1[80];
cin >> c1;
cin >>
s1;
. QBasic
:
PRINT $,""
var
cl:char;
si:string;
writeln (c1,
s1, .'') ;
printf ,
, ,
:
printf("%
%s",c1,s1);
c
putchar (c1)
puts
(s1)
, .
,
:
LOCATE col, row ' QBasicgotoxy(col,row);
//
col 1 80, (row)
1 25.
,
. ,
. ,
" :
writelnt'':10,c1:k+5,s1:7);
QBasic
PRINT USING:
PRINT USING
"##### ### #######";"",$,$
("%3 %10s"). , ("%-" %-10s").
10.11.2021 - 12:37: - Personalias -> WHO IS WHO - - _. 10.11.2021 - 12:36: - Conscience -> . ? - _. 10.11.2021 - 12:36: , , - Upbringing, Inlightening, Education -> ... - _. 10.11.2021 - 12:35: - Ecology -> - _. 10.11.2021 - 12:34: , - War, Politics and Science -> - _. 10.11.2021 - 12:34: , - War, Politics and Science -> . - _. 10.11.2021 - 12:34: , , - Upbringing, Inlightening, Education -> , - _. 10.11.2021 - 09:18: - New Technologies -> , 5G- - _. 10.11.2021 - 09:18: - Ecology -> - _. 10.11.2021 - 09:16: - Ecology -> - _. 10.11.2021 - 09:15: , , - Upbringing, Inlightening, Education -> - _. 10.11.2021 - 09:13: , , - Upbringing, Inlightening, Education -> - _. |