蓝山帝景
你试试这段代码,1234567891011121314string str,stra,strb,strc;int d,a,b,c;char a='+';cin>>str;d=str.find(a);stra=str.Substring(0,d);str=str.Remove(0,d);d=str.find(a);strb=str.Substring(0,d);str=str.Remove(0,d);strc=str;a = atoi(stra.c_str());b = atoi(strb.c_str());c = atoi(strc.c_str());