Home Forums US Life 간단한 시뿔뿔 문제 간단한 시뿔뿔 문제 Name * Password * Email 또다른 예; 테스트3: #include <iostream> using namespace std; int & fun(int& x) { return x; } int main() { int a = 10; cout << fun(a); return 0; } 테스트4: #include <iostream> using namespace std; int& fun(int& x) { return x+1; } int main() { int a = 10; cout << fun(a); return 0; } 위 테스트중에 하나는 에러가 나옴. 이유는...? (테스트의 하나는 return x; 이고 다른 하나는 return x+1; 만 다름) I agree to the terms of service Comment