블로그
-
[C++][구조체][Struct] 구조체 포인터를 사용한 예시
-> 애로우 연산자 str->멤버 (1) #include using namespace std; struct Rectangle{ int x,y,width,height; } ; int main(){ Rectangle rc = {100,100,200,200}; Rectangle* p = &rc; (*p).x = 0; p->y = 1; cout
blog.naver.com · 2014.01.24
-
[영진전문대학 컴퓨터정보계열] 하향 형변환
하향 형변환 Rectangle r; Shape s; s = new Rectangle(); r = (Rectangle)s; r->width = 100; r->height = 100; 업캐스팅 할때는 new Rectangle()을 해주면 되지만, 다운 캐스팅을 하기 위해서는 r=(rectangle)s 직접 이렇게 해줘야한다.
blog.naver.com · 2013.10.27
-
[영진전문대 컴퓨터정보계열프로그래밍전공]9월26일 공부내용
extends Shape { public Rectangle() { System.out.println("Rectangle 생성자"); } } public Shape(int a) { } public Shape(int a, int b) { } // shuper 사용 Rectangle r = new Rectangle(); -> Rectangle은.......
blog.naver.com · 2013.09.26
-
관광가이드 001. U-Cultural 01. Janggyeong Panjeon 장경판전
② The Janggyeong Panjeon depositories consist of two long and two smaller buildings making a rectangle
blog.naver.com · 2013.11.02
-
[영진전문대 컴퓨터정보계열프로그래밍전공]9월30일 공부내용
자바 - 모든 함수(메소드) 가상함수(동적바인딩) Shape s = new Rectangle(); s.draw(); 이것은 Rectangle의 코드다. // 재정의 된 메소드 호출.
blog.naver.com · 2013.09.30
-
[영진전문대 컴퓨터정보계열 프로그래밍전공]9월 12일 수업내용
non-static 사각형의 넓이와 둘레구하기 --------------------------------- package csaf; import java.util.Scanner; class Rectangle
blog.naver.com · 2013.09.12
-
adobe air 3.8 beta
Rectangle Texture Support - 자세한 내용 http://help.adobe.com/ko_KR/FlashPlatform/reference/actionscript/3
blog.naver.com · 2013.07.25
-
(영진전문대 컴퓨터프로그래밍전공반) C++ 상속에서 생성자와 소멸자
: public Shape { int width, height; public: Rectangle() { cout << "Rectangle 생성자()" << endl ; } ~Rectangle() { cout << "Rectangle 소멸자()" << endl; } }; int main() { Rectangle r; cout
blog.naver.com · 2012.11.20
-
(영진전문대 컴퓨터프로그래밍전공반) C++ 상향,하향 형변환
>x = x; this-> y = y; } void draw() { cout << "Shape Draw" << endl; } }; class Rectangle (int w) { width = w; } void setHeight(int h) { height = h; } void draw() { // 재정의 cout << "Rectangle
blog.naver.com · 2012.11.26
-
태블릿의 라운드 모서리 디자인, 애플 또 특허 획득…삼성 머리 아플듯
태블릿PC의 라운드 처리된 모서리(rounded rectangle)가 정말로 애플의 특허가 되어버렸다.
blog.naver.com · 2012.11.09