Everyone tells us, If you want to be happy, you need to be successful.
So this sentence became our golden rule!
The problem with this sentence is if we don’t succeed we cannot get happiness?
I don't think so!I want to tell you a different idea Today!
This is my inspiration from the TED Video!
He told us that happiness is natural, but we use the wrong method to find happiness.
Everyone tells us, If you want to be happy, you need to be successful.
If &else a common syntax in the program I give a simple exampleex:
If we set earn 1 million dollars= happiness
If your set earn 1 million dollars, you will be happy,Otherwise it is not happy!
The C++ code will be written like this:
1//Happiness judgment
2 #include
3 using namespace std;
4 int main()
5 {
6 int x;
7 cout<<""please input How much money do you make? :";
8 cin>>sc;
9 if (sc>=100)
10 {
11 cout<<"Happiness!"<
12 }
13 else
14 {
15 cout<<100,not happ !\n";
16 }
17 system("Pause");
18 return 0;
19 }
Is it complicated?
The logic is actually very simple, you need to enter more than 100 (ten thousand) you can get happiness
less than 100(ten thousand) is not happy
Are You Tired zero-sum game Of Life?
If your answer is YES,I can give you a piece of advice,
Give up zero-sum game, You have a better choice
Focus on the process rather than the result
You will find the happy blue bird, always on your head!