인라인 함수 생략 , 등등


인라인 함수 생략 , 등등

자동인라인 함수 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #include<iostream> #include<math.h> using std::cout; using std::cin; class Dog{ private: int age; public: void setAge(int a) { age = a; } int getAge() { return age; } void back() { cout << "멍멍멍\n"; } }; int main(){ Dog happy; happy.setAge(3); cout << happy.getAge(); happy.back(); return 0; } cs 클래스 밖에서 함수정의하기 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 #include<iostream> #include<math.h> usi...



원문링크 : 인라인 함수 생략 , 등등