system("pause");
為何,在VS2010中,
我這樣寫的時候,會提示,system 是未定义标识符呢?
我该如何定义?
#include<stdio.h>
#include"math.h"
void main()
{int x=100,a,b,c;
while(x>=100&&x<1000) {a=0.01*x;b=10*(0.01*x-a);c=x-100*a-10*b;
if(x==(a*a*a+b*b*b+c*c*c) )printf("%5d",x);x++;}
system("pause");
}