STR- Pretvara upisani broj u string.
Sintaksa: PROCEDURE SRT(vrijednost:<INTEGER ili REAL>, VAR ciljnaPromjenljiva: <STRING>);
Tabela d.27. STR - funkcija
Listing programa |
Ekran |
Opis |
PROGRAM Pretvara_u_string; |
|
Naslov |
VAR |
|
|
s, a : string; |
|
|
BEGIN |
|
Početak programa |
STR(2, s); |
|
Pretvara 2 u string |
WRITELN(2,' ',s)); |
2 2 |
|
STR(2, s); |
|
Pretvara 3 u string |
WRITELN(3,' ',s)); |
3 3 |
|
READLN;
END. |
|
Kraj programa |
Listing programa:
PROGRAM pSTR;
VAR
s, a : string;
BEGIN
STR(2, s);
WRITELN(2,' ',s));
STR(2, s);
WRITELN(3,' ',s));
READLN;
END.
Index
|
|