Registration has been disabled and the moderation extension has been turned off.
Contact an admin on Discord or EDF if you want an account. Also fuck bots.

C++: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>NoVwL
No edit summary
imported>NoVwL
delicious cake
Line 2: Line 2:


Basically, this is C with all the extended jizz jazz. [[Truth | But the only reason you want to use it is because of the classes.]] It also comes with [[shit | typesafe code]], [[what | multiple inheritance]] and [[buttsex | backwards compatibility]].
Basically, this is C with all the extended jizz jazz. [[Truth | But the only reason you want to use it is because of the classes.]] It also comes with [[shit | typesafe code]], [[what | multiple inheritance]] and [[buttsex | backwards compatibility]].
__TOC__


= Example plz =
= Example plz =
Line 70: Line 72:
= Explanation =
= Explanation =
Compile it with the compiler of [[Visual Studio | your choice]] and execute it. [[Yes | You do not understand anything?]] Alright, let me translate into English.<br>
Compile it with the compiler of [[Visual Studio | your choice]] and execute it. [[Yes | You do not understand anything?]] Alright, let me translate into English.<br>
1. First, the program creates [[You]]<br>
# First, the program creates [[You]]
2. It enters an infinite loop<br>
# It enters an infinite loop<br>
3. Your power is increased by 1<br>
# Your power is increased by 1<br>
4. If your power is not [[over 9000]], jump to 8<br>
# If your power is not [[over 9000]], jump to 8<br>
5. Your brain dies<br>
# Your brain dies<br>
6. Your success increases<br>
# Your success increases<br>
7. Your power gets vaporized<br>
# Your power gets vaporized<br>
8. Alright, now you DO IT FAGGOT<br>
# Alright, now you DO IT FAGGOT<br>
9. That means, you are a [[sick fuck]] and have no [[sex | success]].<br>
# That means, you are a [[sick fuck]] and have no [[sex | success]].<br>
10. You get bored and leave doItFaggot<br>
# You get bored and leave doItFaggot<br>
11. [[Unrealistic Expectations | If you are successful]], You [[Win The Game]] and jump to 13<br>
# [[Unrealistic Expectations | If you are successful]], You [[Win The Game]] and jump to 13<br>
12. Go back to step 3<br>
# Go back to step 3<br>
13. [[HAHAHA DISREGARD THAT, I SUCK COCKS]]<br><br>
# [[HAHAHA DISREGARD THAT, I SUCK COCKS]]


[[No | Makes sense, amirite?]] Okay Okay. Your exercise is to make sense out of that. Use [[Spy | Google]] and browse some C++ tutorials. Try to win the game. If you done that, you could even expand the code to greater detail, you [[sick fuck]].
[[No | Makes sense, amirite?]] Okay Okay. Your exercise is to make sense out of that. Use [[Spy | Google]] and browse some C++ tutorials. Try to win the game. If you done that, you could even expand the code to greater detail, you [[sick fuck]].

Revision as of 09:03, 17 April 2011

C++ is C's evil twin brother. Imagine there is that guy who always ruins the fun. That is C++. It was developed by Bjarne Stroustrup at least 100 years ago and is used by fat nerds to perform black magic on their computers.

Basically, this is C with all the extended jizz jazz. But the only reason you want to use it is because of the classes. It also comes with typesafe code, multiple inheritance and backwards compatibility.

Example plz

So you want to learn it? Fine. You have to learn C first before you can make sense out of this.

 #include <stdio.h>
 
 void anHero()
 {
     exit(0);
 }
 
 class You
 {
 public:
     You()
     {
         brain = true;
         power = 1;
         success = 0;
     }
 
     ~You()
     {
         anHero();
     }
 
     void doItFaggot()
     {
         success = 0;
     }
 
     bool brain;
     int power;
     float success;
 };
 
 int main(int argc, char **argv)
 {
     You *newfag = new You();
 
     while (true)
     {
         newfag->power++;
 
         if (newfag->power > 9000)
         {
             newfag->brain = false;
             newfag->success += 0.01;
 
             newfag->power = 0;
         }
 
         
         newfag->doItFaggot();
 
         if (newfag->success == 1)
         {
             printf("You Win The Game\n");
             break;
         }
     }
 
     printf("HAHAHA DISREGARD THAT, I SUCK COCKS\n");
     return 1;
 }

Explanation

Compile it with the compiler of your choice and execute it. You do not understand anything? Alright, let me translate into English.

  1. First, the program creates You
  2. It enters an infinite loop
  3. Your power is increased by 1
  4. If your power is not over 9000, jump to 8
  5. Your brain dies
  6. Your success increases
  7. Your power gets vaporized
  8. Alright, now you DO IT FAGGOT
  9. That means, you are a sick fuck and have no success.
  10. You get bored and leave doItFaggot
  11. If you are successful, You Win The Game and jump to 13
  12. Go back to step 3
  13. HAHAHA DISREGARD THAT, I SUCK COCKS

Makes sense, amirite? Okay Okay. Your exercise is to make sense out of that. Use Google and browse some C++ tutorials. Try to win the game. If you done that, you could even expand the code to greater detail, you sick fuck.

See Also

C++ is part of a series on

Softwarez

Visit the Softwarez Portal for complete coverage.

C++ is part of a series on Programming.

[2 L337 4 MEEnter the Matrix]

ADAAssemblyCC++COBOLDebugDOSErlangErrorFdiskFortranIntegerJavaLOLCodeMachine CodeMatlabMIRC ScriptMUMPSOpen SourcePerlPHPProgramming languagePythonQBASICRuby on RailsScratchSSHVisual Basic

Hacks

Firefox XPS IRC AttackSafari XPS Attack Sandworm

Programmers

Bill GatesLinus TorvaldsWeevGoatse SecurityTerry DavisTheo de Raadt

Other Topics

Operating systemWarezNotepadIs not a bug, it's a featureDatabase Error