Created
February 3, 2017 04:48
-
-
Save amanat361/5fbdc4e2b2257c482709f47adab502eb to your computer and use it in GitHub Desktop.
My amazing c++ code (2.0)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //WOOO SOURCE CODE!!! | |
| //including stuffs | |
| #include <iostream> | |
| #include <string> | |
| #include <cstdlib> | |
| using namespace std; | |
| int main() { | |
| //declaring variables | |
| int rows; | |
| int menu; | |
| string phrase; | |
| do //all the code below... | |
| { | |
| //menu | |
| cout << "\n---MENU---\n\n 1. Run program\n 2. Fite me 1v1 m8\n 3. Quit :(\n\n----------\n\nWhat would you like to do (1-3): "; | |
| cin >> menu; | |
| //option to quit | |
| if (menu == 3) { | |
| return 0; | |
| } | |
| //GET READY TO BE DESTROYED | |
| else if (menu == 2) { | |
| cout << "\nWhat the fuck did you just fucking say about me, you little bitch?" | |
| " I'll have you know I graduated top of my class in the Navy Seals, and" | |
| " I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills." | |
| " I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces." | |
| " You are nothing to me but just another target. I will wipe you the fuck out with precision the likes" | |
| " of which has never been seen before on this Earth, mark my fucking words." | |
| " You think you can get away with saying that shit to me over the Internet? Think again, fucker." | |
| " As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better" | |
| " prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life." | |
| " You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways," | |
| " and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal" | |
| " of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent," | |
| " you little shit. If only you could have known what unholy retribution your little “clever” comment was about to bring down upon you," | |
| " maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot." | |
| " I will shit fury all over you and you will drown in it. You're fucking dead, kiddo.\n\n"; | |
| system("pause"); | |
| return 0; | |
| } | |
| //if the user f'ed up... | |
| else if (menu != 1) { | |
| cout << "\nWHY DID YOU ENTER SOMETHING OTHER THAN ONE, TWO, OR THREE??!!?\n\n"; | |
| system("pause"); | |
| return 0; | |
| } | |
| //the actual code for the program | |
| else { | |
| //user choses what phrase is to be repeated | |
| cout << "\nEnter a phrase (if its more than one word, your fault): "; | |
| cin >> phrase; | |
| //how many rows (self explanatory) | |
| cout << "\nEnter the number of rows (must be at least 2): "; | |
| cin >> rows; | |
| //some good old spacing | |
| cout << "\n"; | |
| //2advanced4me | |
| while (rows < 2); | |
| for (int curr_row = 0; curr_row < rows; curr_row++) | |
| { | |
| for (int curr_col = 0; curr_col < curr_row; curr_col++) | |
| cout << " "; | |
| cout << phrase << endl; | |
| } | |
| //peace of mind :) | |
| cout << "\n"; | |
| } | |
| //so that the code does not exit for no good reason | |
| system("pause"); | |
| } | |
| //to redo the code if the user wants to | |
| while (true); | |
| //to terminate when the user is satisfied | |
| return 0; | |
| } | |
| //FIN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment