#includeusing namespace std;void main() { int x,y,z; char c; cin>>x>>c>>y; if ( c=='*' ) { z=x*y; cout< }}
那你只能按照字符串形式读取了,然后再去处理字符串。