↧
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...
View ArticleAnswer by abhiarora for Command Line Argument
I do not want the answer, I just want what I am doing wrong and hints on how to fix it.Problem 1: You are using testscore variable before it is being initialized.Problem 2: You are not performing error...
View ArticleAnswer by ssinfod for Command Line Argument
Your problem is with this line: else if (argc == 3 && argc == testscore) {In fact, when argc == 3, then you want to check if argv[2] is a numeric argument.else if ( (argc==3) &&...
View ArticleCommand Line Argument
I am having trouble figuring out how to make this code work. What is suppose to is depending on the arguments giving from the command line, it suppose to print out a greeting. int main (int argc, char...
View Article
More Pages to Explore .....