你不要把98和23给a,b赋值了,它只是给你举个例子。
#include<iostream> using namespace std; int main() { int a,b; cin>>a; cin>>b; cout<<a/b; return 0; }