C++中 cout<< 代替 printf cin>> 代替 scanf printf("sum=%d",sum);在C++里面是 cout<<"sum="<
C++中,cout<<是输出,cin>>是输入。。
cin>>是用来输入的,不是输出换成cout<< 吧