| #include<iostream> using namespace std; class Rectangle { private: int width, height, area; public: Rectangle(int w=5, int h=10) {width=w; height=h;} void setRectangle(int w, int h) {width=w; height=h;} void calcArea(){area=width*height;} int getArea(){return area;} void print(); }; void Rectangle::print() { cout<<"가로 : "<< width << ",세로 : " << height << ",넓이" << area <<endl; } void main() { Rectangle r; r.calcArea(); r.print(); } |
| 번호 | 분류 | 제목 |
|---|---|---|
| 103 | XML |
xml 10-12일 강의중 실습
|
| 102 | E비즈니스 |
E_비즈니스 PPT
|
| 101 | JSP |
JSP 소스파일
|
| 100 | C언어 | c언어 if문 |
| 99 | C언어 |
C언어자료
|
| 98 | C언어 |
10월18일 c언어 실습
|
| 97 | C언어 | ctl.seoil.ac.kr |
| 96 | JSP |
9
|
| 95 | JSP |
1
|
| 94 | E비즈니스 |
f
|
| 93 | XML |
asdf
|
| 92 | C언어 | as |
| 91 | JSP | 홈페이지 |
| 90 | JSP |
Hello
|
| 89 | JSP |
11월1일 JSP 실습
|