main
jia_fa.c
1 #include <stdio.h> 2 3 int main(int argc, char **argv) 4 { 5 if(argc != 3 ){ 6 printf("input error ! "); 7 return 0; 8 } 9 10 int a = atoi(argv[1]); 11 int b = atoi(argv[2]); 12 printf("%d + %d = %d ",a,b,a+b); 13 14 return 0; 15 }
success !