View Code of Problem 1

#include<stdio.h>
int main()
{
                int A, B;
		printf("请输入A和B的值:\n");
		scanf("%d%d", &A, &B);
		printf("%d", A + B);
		system("pause");
		return 0;
}
/*
Main.cc: In function 'int main()':
Main.cc:8:3: error: 'system' was not declared in this scope
   system("pause");
   ^~~~~~
Main.cc:8:3: note: suggested alternative: 'sys_nerr'
   system("pause");
   ^~~~~~
   sys_nerr
*/

Double click to view unformatted code.


Back to problem 1