#include using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { //1.參考變數x =可以是『變數a』的別名,或是『指標』的別名 //2.參考變數x:就是與 『變數a』綁定同一個記憶體位址,所以a,x變數是同一個 //3.兩個變數是同一個(記憶體位址),但是不用指標來表示,而用普通變數來表示(參考變數) //4.學習參考的用途:很多API函數的傳遞參數,都是用參考變數傳遞的 // 例如:https://www.cplusplus.com/reference/list/list/remove/ //5.一般變數a的參考變數x (變數a的另外一個clone變數:x(別名) int a = 8; int & x = a; cout<<"a = "<