My first CPlusPlus program in my career

Jun 28, 2016 at 1:36am
Hello ladies and gentlemen,

For the second time of my life, I have finished yet another computer program. The former being JavaScript and the latter is CPlusPlus. I did it with my help of my daughter, Natasha Obama. I hardly ever have free time during my career but whenever there is a good opportunity, I would not hesitate myself to have a little fun. The program itself was not very challenging overall, though my daughter was there to help as I did the coding. After error checking, the program ran perfectly and we happily celebrated. Here is the program :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <windows.h>

int main(int argc, char* argv[])
{
       using namespace std;

       cout << "Welcome to the 2nd program of the 44th USA president" << endl << endl << "/t";

       Sleep(3500);

       cout << "My name is: " << (Sleep(1250), "Barack Obama") << endl << endl << "/t";

       Sleep(1750);

       cout << "My daughter is: " << (Sleep(1250), "Natasha Obama") << endl << endl ;

       Sleep(1750);

       cout << "Have a nice day!!" << endl << endl;

       Sleep(1000);

       cout << "Please press any key to exit...";

       cin.get();
       return 0;
}


I think I might have become a little more interested in computer programming in general. Luckily, it is expected that I might have more free time after I retire - I might want to spend my time investing more whenever I could. Generally speaking, CPlusPlus language is pretty interesting. It is definitely my pleasure to be able to share my program with everyone who knows about CPlusPlus and to be able to talk to the community.

So, what do you think?
Jun 29, 2016 at 12:46am
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh. Your code is as good as...

It's a pleasure to meet you, Mr. Obama!
Jun 29, 2016 at 1:03am
I learned quite a bit from reading through your code. Thanks Obama!
Jun 29, 2016 at 5:02pm
How does it feel to be leaving office this year?
Jun 29, 2016 at 9:30pm
"It feels so good, i gave up my life and started coding" - Quote what Natasha thot Barack wud say
Jul 6, 2016 at 10:08am
Codes from Hillary and Trump are coming next week ;)
Jul 7, 2016 at 3:54pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <iomanip>
#include <limits>

int main(int argc, char* argv[]){
    long double MONEY=0;
    std::cout<<"HOW MUCH $$$ DO I HAVE???\n";
    while(true){
        std::cin>>std::get_money(MONEY);
        if(MONEY<std::numeric_limits<long double>::infinity() && std::cout<<"GUESS AGAIN!!!\n") continue;
        break;
    }
    return !!!"TRUMP4PRES!!!";
}


1
2
3
4
5
6
7
8
9
#include <email.h>

int main(int argc, char* argv[]){
    Email mail();
    mail.login("hillary@whitehouse.gov", "password1");
    while(mail.connection.getsettings().security=SECURITY_MAX && mail.nationalsecurityemails.size()){
        mail.send(mail.nationalsecurityemails.begin());
    }
}


find the mistake in hillarys program
Jul 7, 2016 at 4:05pm
Line 4 you made a factory function not an object.
Jul 14, 2016 at 1:33am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//TRUMMMMMMMMMMMMP
#include <TRUMP>

TRUMP main() //Predefined Trump type
{
      TRUMP::trump << "trump!";
      TRUMP trump;
      HILLARY hil;
      VOTES votes (trump,hil);
      trump.win(true); 
   
      if (hil.getVotes() > 0)
      {
             votes.setTrumpVotes(10000 * hil.getVotes());
             votes.setHillaryVotes(-100000 * trump.getVotes());
      } 
      return TRUMP_IS_PRESIDENT_SUCCESS;
}
Jul 14, 2016 at 2:59am
closed account (48T7M4Gy)
.
Last edited on Jul 16, 2016 at 10:14am
Jul 14, 2016 at 11:49am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <HILLARY>
#include <DONORS>
#include <REPTILLIAN>

ILLEGAL DEALS(DONORS DEALS, MONEY* BANKS[]) {
	CROOKED::ESTABLISHMENT::DEAL(DEALS, BANKS);

	CROOKED::HILLARY::LOG("GIVE ME MONEY AND I DO WHATEVER YOU LIKE EVEN IF IT\'S ILLEGAL!");
	CROOKED::HILLARY::INPUT("SMALL LOAN OF A MILLION DOLLARS");

	CROOKED::HILLARY::TOGGLELIES(true);
	CROOKED::HILLARY::LOG("I LOVE THE AMERICAN PEOPLE!\n");

	if (CROOKED::HILLARY::CRITICIZED) {
		CROOKED::HILLARY::LOG("YOU JUST HATE WOMEN YOU MISOGYNIST!!!!!\n");
	}

	throw BERNIE_AWAY;
}
Last edited on Jul 14, 2016 at 11:50am
Jul 14, 2016 at 12:29pm
closed account (48T7M4Gy)
.
Last edited on Jul 16, 2016 at 10:14am
Jul 17, 2016 at 9:42pm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <TRUMP.H> //Outdated trump header

using namespace TRUMP;

TRU main()
{
    trump.printWin("I WIN!");
    Wall wall;
    wall.build();
    if (wall.buildFailed())
    {
        int i = rand % 2;
        switch(i)
        {
             case 1:
                  blame_HILLARY();
                  break;
             case 2:
                  blame_MEXICO();
                  break;
             default:
                  blame_ALL();
                  break;
        }
    }
    else
    {
         America amer;
         amer.makeGreatAgain();
    }
    return TRUMP_WIN_SUCCESS_0x0420;
}


Jul 18, 2016 at 10:35am
@kemort
You should not be erasing your posts like that. Doing so is not polite and you are being rude to the President.
Jul 18, 2016 at 10:37am
Does that help you? :)
Jul 18, 2016 at 5:20pm
lol, he doesn't realize the power of the internet, (and the secret service + CIA)


Jul 25, 2016 at 11:05am
Hi Obama!
Jul 26, 2016 at 7:35am
I Have My first C++ program in my career is i have Printed " HELLO WORD"
Jul 26, 2016 at 7:43am
@rosietesmen
"HELLO WORD" should be "HELLO WORLD"
Topic archived. No new replies allowed.