Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#define _CRT_SECURE_NO_WARNINGS
- #include <stdio.h>
- int main(int argc, char *argv[])
- { // argc = argument count | argv = argument value
- float a;
- float b;
- float c;
- float d;
- printf("argc=%d\n", argc);
- if (argc == 2)
- {
- // converts the string of chars from argv into two int vars
- printf("argv[1] = \n%s\n", argv[1]);
- sscanf_s(argv[1], "%f;%f;%f;%f", &a, &b, &c, &d);
- printf("%f %f %f %f\n", a, b, c, d);
- }
- else
- {
- // outputs into error stream
- fprintf(stderr, "chyba..");
- }
- // make the output right
- /*
- fsdM(a, b);
- fsdE(a, b);
- fsd(a, b);
- */
- int endi = 1;
- while(endi!=0)
- {
- scanf("%i", endi);
- }
- return 0;
- }
- // 104324283 -ukPN
Advertisement
Add Comment
Please, Sign In to add comment