a1
This commit is contained in:
parent
70e3f2cba3
commit
4c107bbe23
@ -15,13 +15,13 @@ int main(){
|
||||
char* token;
|
||||
|
||||
token = strtok(pole, " "); //rozdelenie retazca podla medzier
|
||||
cislo1 = atoi(token); // premena stringu na cislo a priradenie cislu1
|
||||
cislo1 = atof(token); // premena stringu na desatinne cislo a priradenie cislu1
|
||||
token = strtok(NULL, " "); //pokracovanie v rozdelovani retazca
|
||||
znamienko = token[0]; // vrati ukazatel na nasledujuci token, cize znamienko
|
||||
token = strtok(NULL, " =\n");
|
||||
cislo2 = atoi(token);
|
||||
cislo2 = atof(token);
|
||||
token = strtok(NULL, " =\n");
|
||||
vysledok = atoi(token);
|
||||
vysledok = atof(token);
|
||||
|
||||
double realny;
|
||||
|
||||
|
BIN
a1/program.exe
BIN
a1/program.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user