Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by SoonPro for Command Line Argument

Got it the answer guys. To check it without using another function, it would be

....

else if ( argc==3 && sscanf(argv[2], "%f", testscore) {    testscore = atof(argv[2]);    printf("Hi, Mr.%s, your score is %.1f\n", argv[1], testscore);}

...


Viewing all articles
Browse latest Browse all 4

Trending Articles