This job requires see [ https://edu.cnblogs.com/campus/nenu/2019fall/homework/6582 ]
1. familiar with the command line and console
Please develop applications in C d.exe, read commands from the console command line parameters, respectively, and print out the value of a, b, c in the console. Run the following example the effect of the form (6 points)
Reminder: Please note that the following code sample, and in the same line, no line breaks. ">" Prompt is called, is part of the operating system, not the output of your program .d.exe
a=1 b=2 c=3
>d.exe a=1 b=2 c=3
1
2
3
>d.exe a=11 b=22 c=33
11
22
33
code show as below:
#include <stdio.h> int main ( int n-, char * Array []) { int A, B, C; { sscanf (Array [ . 1 ], " A = D% " , & A); // sscanf: Format of the input, the first input parameter extraction of the printf ( " % D \ n-\ n- " , a); sscanf (Array [ 2 ], " B = D% " , & B); // extract the input parameters of the second the printf ( " % D \ n-\ n- " , B); sscanf (Array [ . 3 ], " C% = D ", &c); printf("%d",c); } return 0; }
FIG operating results as follows: