摘要:
#include #include #include #include using std::vector;using std::cout;using std::endl;using std::cin;using std::string;string s;int main(){//3.4string s2;cout>str1){cout>s1>>s2; if(s1!=s2){couts2)?s1:s2)s2.size())?s1:s2);}//3.8string str;string result;while(cin>>str){ result=result 阅读全文
摘要:
#include using std::cout;using std::endl;using std::cin;int main(){//2.10 cout>base>>exp;for(int i=0;i<exp;++i){ result*=base;}cout<<result<<endl;//2.27int i,&ri=i;i=5,ri=10;cout<<i<<" "<<ri ;//10 10 system("pause");} 阅读全文
摘要:
#include using std::cout;using std::endl;using std::cin;int main(){ //1.3 cout>num1>>num2; cout=50){ sumW+=j; j--;}cout=0) { cout=0;--j) { cout>a>>b; if(a>b) { cout>num) { if(num>num1>>num2; if(num1==num2) { coutnum2) { for(num1;num1>=num2;num1--) { cout<<nu 阅读全文