Created
August 26, 2014 14:33
-
-
Save lauzi/cf800ee9e5b1e588dc06 to your computer and use it in GitHub Desktop.
FUCK C++
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
struct GG { | |
int qq[2]; | |
GG (int n=0, int b=0) { qq[0] = n, qq[1] = b; } | |
}; | |
std::vector<GG> vec; | |
unsigned pushback(int nxt, int b) { | |
vec.push_back(GG(nxt, b)); | |
return vec.size()-1; | |
} | |
int main() { | |
pushback(-1, 514); | |
vec[0].qq[0] = pushback(0, 180); // FUCKING SEGMENTATION ERROR | |
return 0; | |
} |
The title made my day.
no shit idiot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
good work