프로그래밍/C & C++
c++ 클래스 . 함수선언과 내용 나누기
Yi Junho
2009. 8. 20. 15:54
반응형
#includeusing std::cout; using std::endl; class junho { private: int name; int idNum; public: void setDet(int a,int b); }; void junho::setDet(int a,int b) { name=a; idNum=b; } void main() { junho jh={1,2}; jh.setDet(3,11); cout<
반응형