标签:style blog class code c java
#include <stdio.h>
void main()
{
	int a = 123;
	int &b = a;
	printf("a=%d b=%d\n", a, b);
}#include <iostream>
#include <iomanip>
using namespace std;
void main()
{
	int a = 10;
	int &b = a;//声明b是a的引用
	a =  a * a;//a的值变化了,b的值也应一起变化
	cout<<"a="<<a<<setw(6)<<"b="<<b<<endl;
	b = b /5;//b的值变化了,a的值也应一起变化
	cout<<"a="<<a<<setw(7)<<"b="<<b<<endl;
	system("pause");
}html javascript jsp之间变量值的互相读取,布布扣,bubuko.com
标签:style blog class code c java
原文地址:http://blog.csdn.net/coslay/article/details/25998857