Technote/Data Structure C++ [C++] Reference Pooh0216 2009. 9. 16. 22:57 반응형 #include<iostream> using std::cout; using std::endl; int main(void) { int val = 10; int &ref = val; val++; cout <<"ref : "<<ref<<endl; cout <<"val : "<<val<<endl; ref++; cout <<"ref : "<<ref<<endl; cout <<"val : "<<val<<endl; return 0; } 반응형 저작자표시 (새창열림)