Making your computer beep at you and your program crash!
Haven't done any real C++ in a long time (few months), hitting the book again and re-reading the chapter I left off. Anyways, it's overloading operators and I just wanted to do something interesting.
Doing this will make your computer beep at you and cause your program to crash!
Nothing important, not really amazing, just thought it was funny and I'd share it.

What looks like some background work the compiler is doing? This gets printed if you run that lol
Doing this will make your computer beep at you and cause your program to crash!
Code:
string& operator*(string x) {
x = "Test";
return x;
}
int main()
{
string y;
cout << *y << endl;
}

What looks like some background work the compiler is doing? This gets printed if you run that lol