#include<iostream>
using namespace std;
int main()
{
    int n,m=0,t;
    cin>>n;
    while(n!=0)
    {
        t=n%10;
        m=10*m+t;
        n=n/10;
    }
    cout<<m;
    return 0;
}

 

 

 

#include <iostream>
using namespace std;
int main()
{
    int day ;
    cin>>day;
    switch(day)
    {
        case 1:
        case 2:
        case 3:
        case 4:
        case 5: cout <<"workday , Let's work hard"<<endl;break;
        case 6:
        case 7:
        default:cout <<"weekand .Let's have a rest. "<< endl;
    }
    return 0;
}

 

总结:

  1、对于c++还没有很好的自己预习,自主学习能力有待提高。

  2、各种语句运用不够熟练,所以编写代码速度地下。