Skip to content

Instantly share code, notes, and snippets.

@donSchoe
Created February 17, 2013 21:38
Show Gist options
  • Save donSchoe/4973619 to your computer and use it in GitHub Desktop.
Save donSchoe/4973619 to your computer and use it in GitHub Desktop.
#include <cstdlib>
#include <iostream>
using std::cout;
using std::endl;
int x = 1;
int y = 2;
int main(int argc, char *argv[]){
int x = -x; // -::x;
int y = -y; // -::y;
if ( x == 0 ){
int x;
x = 10;
y = 20;
} else {
int y;
x = 4;
y = 5;
}
cout << "x = " << x << endl;
cout << "y = " << y << endl;
return EXIT_SUCCESS;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment