你scanf里都没把c带上,c没赋值呀scanf之后先打印abc的值,别着急写逻辑
第一行是
#include<cstdio>
#include using namespace std;int main(){int a , b;cin >> a >> b;cout << a + b << endl;system("pause") //这个可以不加return 0;}
问题解决了嘛?