-
-
Save jan-matejka/4181847 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| void nacteniUdaju(char *jmeno, char *cUctu, int *pocStav) | |
| { | |
| printf("Zadej jmeno: "); | |
| fflush(stdin); | |
| gets(jmeno); | |
| printf("Zadej cislo uctu: "); | |
| fflush(stdin); | |
| gets(cUctu); | |
| do { | |
| printf("Zadej pocatecni stav uctu: "); | |
| scanf("%d", pocStav); | |
| } while ((*pocStav) < 0); | |
| } | |
| int main(int argc, char**argv) { | |
| char jmeno[100], cUctu[100]; | |
| int pocStav; | |
| nacteniUdaju(jmeno, cUctu, &pocStav); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yac@sam % ./a.out | |
| Zadej jmeno: kek | |
| Zadej cislo uctu: 83783 | |
| Zadej pocatecni stav uctu: 33 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment