조회 수 605 추천 수 0 댓글 2
?

단축키

Prev이전 문서

Next다음 문서

이전 다음 위로 아래로 댓글로 가기 인쇄 목록
?

단축키

Prev이전 문서

Next다음 문서

이전 다음 위로 아래로 댓글로 가기 인쇄 목록
Extra Form
  • profile
    너에게제공 2013.04.02 16:24
    void main()
    {
    Rectangle *rp = new Rectangle;
    rp->setRectangle(10,20);
    rp->calcArea();
    rp->print();
    delete rp;
    }
  • profile
    너에게제공 2013.04.04 11:38
    void main(){
    int m,a,b;
    cout<<"사각형의 갯수?";
    cin>>m;
    Rectangle *r=new Rectangle[m];
    for(int i=0;i<m;i++)
    {
    cout<<"가로 : ";
    cin>>a;

    cout<<"세로 :";
    cin>>b;
    r->setRectangle(a,b);
    r->calcArea();
    r->print();
    (r+1);

    }


    delete r;


    }

  1. No Image

    문자열 벡터

    Category :C언어
    Read More
  2. 집합의 원소 수

    Category :C언어
    Read More
  3. No Image

    학생 정보를 점수순으로 정렬

    Category :C언어
    Read More
  4. No Image

    정수 5개를 입력받아 선택정렬 (ver.2)

    Category :C언어
    Read More
  5. No Image

    5개 선택 정렬(ver.1)

    Category :C언어
    Read More
  6. No Image

    예제5 동적배열

    Category :C언어
    Read More
  7. No Image

    정수 5개를 입력받아 평균보다 큰 정수 출력(ver.1)

    Category :C언어
    Read More
  8. No Image

    가상함수(Shape 클래스)

    Category :C언어
    Read More
  9. No Image

    도형의 상속구조

    Category :C언어
    Read More
  10. No Image

    Animal 클래스

    Category :C언어
    Read More
  11. No Image

    Chicken 클래스

    Category :C언어
    Read More
  12. No Image

    예제1

    Category :C언어
    Read More
  13. No Image

    BMI

    Category :C언어
    Read More
  14. No Image

    동적메모리

    Category :C언어
    Read More
  15. No Image

    Rectangle 객체배열

    Category :C언어 Reply2
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5