Please help with ending to console application!

Hey so this is my 2nd time ever using c++ (or any coding related thing for that matter), either way; I can't figure out how to finish this code, please help.
P.S. It's ridden with inside jokes and retarded internet related things so if it seems really weird/retarded, then there ya go.

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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#include <iostream>
#include <windows.h>
using namespace std;
int main () {
        string str = "";
        cout <<"Dis is cray land of cray such MLG wowe fite me irl fgt\n I will smeeeesh you if you don't get out now.\nLol it's aight you'll leave now.\n";
        
        cout<< "Will you dare to try and survive the smeeeesh?\n          yes or no\n";
         cin >> str;
         if (str == "yes"){
                 cout<< "you have dared to survive the smeeeesh.\n";
                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			
			
			system ("cls") ;
			cout<< "YOU HAVE FAILED TO SURVIVE THE SMEEESH\n";
			Sleep(3000);
                 system ("cls");
			cout << "now fuck off\n"; }
		if (str == "no") {
                         cout<< "you walk, walk and walk and walk down the trembeling shibe corridors of smeesh and hear a loud stomping sounds as the smeesh heads toward you\n";
                         system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			                 system ("cls");
                 Sleep(200);
			cout << " ___  __  __  ____  ____  ____  ____  ___  _   _ \n";
			cout << "/ __)(  \/  )( ___)( ___)( ___)( ___)/ __)( )_( )\n";
			cout << "\__ \ )    (  )__)  )__)  )__)  )__) \__ \ ) _ ( \n";
			cout << "(___/(_/\/\_)(____)(____)(____)(____)(___/(_) (_)\n";
			Sleep(200);
			
			
			system ("cls") ;
			cout<< "Is the sounds you hear roaring in the distance. Do you keep running or turn around and fite m8; yes or no\n";
         cin >> str;
         if (str == "yes"){
                 cout<< "The smeesh stares you blanketly in the eye, it carries no mercy. It is shibe. What weapon do you use to fite shibe?; Sword of epic maymay or based god bow\n";
                 
			Sleep(3000);
                 system ("cls");
			cout << "now fuck off\n"; }
			
    system("PAUSE");
    return 0;
}





So yeah there it is. Just need to know how to finish it or just get it to work overall.
Thanks so much,
Anthony
Last edited on
Start by pasting the code inside code tags. Then maybe tell us what the problem is, and no, "It doesn't work" is not acceptable.
Yes... your post ressembles "the letter to Royal Society from the Rural Gentlemen":

Dear scientists!

Sometimes there comes a kind of strange underground knocking from out of my cellar. Please, explain how does it happen?

Thanks!
Last edited on
Can someone just fix whatever doesn't work and then copy and paste it in a reply? I'm really really new to this :p
Uh no. It's your assignment. Why do you think we'd just do your work for you when you have shown the very least amount of effort possible?

Tell us what the problem is, edit your post and re-paste the code inside a code block, and then we'll give you guidance. This is not a homework site. But we're always more than willing to help out people if they show they're willing to help themselves.
Wtf, I never said it's homework let alone any form of assignment. I'm doing this just for practice of coding because I find it could be a fun hobby. Anyway, when I try to compile and run it highlights the very last few lines in red and X's so I'm wondering if someone could fix the ending. There ya go.
It's hard to see, but I guess that you have a mismatch of braces

if (str == "no") { // where is the closing brace for this?

Please use code tags: [code]Your code[/code]
See: http://www.cplusplus.com/articles/z13hAqkS/
I wish I understood why OP STILL has not been able to simply give the error messages he is getting. This is basic forum etiquette, not some crazy behavior that we're asking of you.

If you have an issue, tell us what the issue is.
Resident biscuit, chill the fuck out. I literally just know that you put
#include <iostream>
and then some other shit, which I never remember. I'm so new to this I have no idea what you're asking for. Also, you're the only one bitching and moaning because I'm not used to it so chill your fucking tits.
That will get you help.
<3
Just tell us what the error message you're getting is. How can we help you fix your errors if you won't tell us what they are?

Also, please edit your post to use code tags, to make your code readable.
It doesn't necessarily give me an error message it simply highlights the final line 'system pause' and puts a little 'x' at the beginning and doesn't allow me to compile and run.
Also I think I added the code tag thingy into my post, but I'm not sure. I clicked the 'source code' button and entered the code through there.
@KillDogma
Did you read my post? Tell me where is the closing curly brace '}' that matches the open '{' on line 61
doesn't allow me to compile

What do you mean by that? Are you using an IDE that actually disables the options to start compiling, if it detects an error in the code? If so, it must surely give you some message to indicate why it's not letting you compile?
Topic archived. No new replies allowed.