Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // citire
- FILE *f;
- f = fopen("operatii.in", "r");
- if (!f)
- exit(1);
- char op[16];
- int n;
- while(fscanf(f, "%s %d", &op, &n) == 2 || fscanf(f, "%s", op) == 1)
- {
- if (!strcmp(op, "del"))
- del(...);
- else if (!strcmp(op, "move"))
- move(...);
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment