Skip to content

Instantly share code, notes, and snippets.

@Jack2
Created November 2, 2012 02:38
Show Gist options
  • Save Jack2/3998348 to your computer and use it in GitHub Desktop.
Save Jack2/3998348 to your computer and use it in GitHub Desktop.
[C++]page98_example
#include <iostream>
using namespace std;
int main()
{
int num;
int &new_num = num;
new_num = 31337;
cout << "num : " << num << endl;
cout << "new_num : " << new_num << endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment