![]() |
#2
mxs8102010-07-25 20:15
|
#include <iostream>
int main()
{
std::cout<<"Please input your numbers:"<<std::endl;
int sum=0,val;
while(std::cin>>val)
{
if(val<0)
{++sum;}
}
std::cout<<"The sum of the negetive numbers is"<<sum<<std::endl;
system("pause");
return 0;
}
上面这个程序中:system("pause"); 这句是什么意思啊,有什么作用啊,那位大哥说下。谢谢