20190912-2 命令行

 

此作业的要求参见[https://edu.cnblogs.com/campus/nenu/2019fall/homework/6582]

1.熟悉 命令行和控制台

请用C语言开发应用程序d.exe,从控制台指令读入命令行参数,并在控制台分别打印出a、b、c的值。运行效果形如下面的示例(6分)

#include<stdio.h>
 int main(){
     int a;
     int b;
     int c;
     printf("d.exe ");
     scanf("a=%d b=%d c=%d", &a, &b, &c);
     printf("%d\n", a);
     printf("%d\n", b);
     printf("%d\n", c);
     return 0;
     
 }

  

       

       

       

猜你喜欢

转载自www.cnblogs.com/ping2yingshi/p/11514227.html
今日推荐