C++第五課:引用的本質分析

本文學習自 狄泰軟件學院 唐佐林老師的 C++課程web 實驗1svg #include <stdio.h> void Example() { printf("Example:\n"); int a = 4; const int& b = a; int* p = (int*)&b; //b = 5;//打開會出錯,不能對 只讀引用b進行
相關文章
相關標籤/搜索