Skip to content

Instantly share code, notes, and snippets.

View boycgit's full-sized avatar
🎯
Focusing

JSCON boycgit

🎯
Focusing
View GitHub Profile
@boycgit
boycgit / hello.cpp
Created October 15, 2013 04:59
使用引用、指针操作变量(C++)
#include <iostream>
using namespace std;
int main()
{
int a = 20; //声明一个int变量
int &b = a; //声明一个int引用
int *p = &a;//声明一个int指针