Quantcast
Channel: Command Line Argument - Stack Overflow
Browsing latest articles
Browse All 4 View Live

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 Article


Answer 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 Article

Answer 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 Article

Command 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
Browsing latest articles
Browse All 4 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>