My first CPlusPlus program in my career

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?
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh. Your code is as good as...

It's a pleasure to meet you, Mr. Obama!
I learned quite a bit from reading through your code. Thanks Obama!
How does it feel to be leaving office this year?
"It feels so good, i gave up my life and started coding" - Quote what Natasha thot Barack wud say
Codes from Hillary and Trump are coming next week ;)
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
Line 4 you made a factory function not an object.
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;
}
closed account (48T7M4Gy)
.
Last edited on
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
closed account (48T7M4Gy)
.
Last edited on
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;
}


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


Hi Obama!
I Have My first C++ program in my career is i have Printed " HELLO WORD"
@rosietesmen
"HELLO WORD" should be "HELLO WORLD"
Topic archived. No new replies allowed.