how can I fix this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
int main()
{    
	ofstream gaming;
	gaming.open("games.txt");
	gaming << "nintendo 1981 mario donkeykong \n";
	gaming << "sega 1991 sonic tails \n";
	gaming << "fun young sun happy \n";
	gaming << "enjoy sweet hugs toys \n";
	gaming.close();
	cin.get();


	try {
		throw = 20;
	}
	catch ()



need some help
What is "this"? What are you trying to accomplish here, on lines 13 to 16 (in English, not programming syntax)?

Here's some links to tutorials on C++ exception handling
http://www.cplusplus.com/doc/tutorial/exceptions/
https://www.tutorialspoint.com/cplusplus/cpp_exceptions_handling.htm
The guy is a proven troll. Ignore.
Topic archived. No new replies allowed.