'Programming > openGL' 카테고리의 다른 글
| glColor* (0) | 2015.07.20 |
|---|---|
| 우분투에서 openGL 시작하기 (0) | 2015.07.20 |
| openGL state variables (0) | 2013.12.12 |
| openGL에서 AVI 동영상 재생하기 (0) | 2013.04.09 |
| openGL gcc에서 컴파일 하기 (0) | 2012.06.02 |
| glColor* (0) | 2015.07.20 |
|---|---|
| 우분투에서 openGL 시작하기 (0) | 2015.07.20 |
| openGL state variables (0) | 2013.12.12 |
| openGL에서 AVI 동영상 재생하기 (0) | 2013.04.09 |
| openGL gcc에서 컴파일 하기 (0) | 2012.06.02 |
| 지하철에서 만나본 크레마 카르타 (0) | 2016.09.19 |
|---|---|
| epub의 장점 (0) | 2014.03.06 |
| 아이리버 스토리 K HD 리뷰 (2) | 2014.01.26 |
| 아이리버 스토리 K HD 질러!! (0) | 2014.01.25 |
| 급급급 지름신 ㅠㅠ (0) | 2014.01.20 |
#include < iostream >
using namespace std;
int main(int argc, char **argv)
{
int a = 12;
int b = 1;
double c = 0;
try
{
if(b == 0) throw(b);
else throw(c);
}
catch(int e)
{
cout << "divide by zero. throw " << e << endl;
}
catch(double e)
{
cout << "good job. throw " << e << endl;
}
return 0;
}
| #include <exception> [링크 : http://www.cplusplus.com/reference/exception/exception/ ] |
| c -> cpp 추가사항 (0) | 2014.03.10 |
|---|---|
| 오버로딩 / 오버라이딩 (0) | 2014.03.10 |
| 연산자 오버로딩 (0) | 2014.03.04 |
| c++ explicit (0) | 2014.02.28 |
| c++ class / const member variable & function (0) | 2014.02.28 |
#include < iostream >
using namespace std;
class temp
{
public:
int a;
temp(int b) : a(b) {}
int operator+(int b, int c) { a += b; return a; }
};
int main(int argc, char **argv)
{
temp tt(1);
cout << tt + 3;
return 0;
}| error C2804: 이항 'operator +'에 매개 변수가 너무 많습니다. |
| error: ‘int temp::operator+(int, int)’ must take either zero or one argument |
#include < iostream >
using namespace std;
class temp
{
public:
int a;
temp(int b) : a(b) {}
// int operator+(int b) { a += b; return a; }
friend int operator+(temp t, int b)
{
t.a = t.a + b;
return t.a;
}
};
int main(int argc, char **argv)
{
temp tt(1);
cout << tt + 3;
return 0;
}| 오버로딩 / 오버라이딩 (0) | 2014.03.10 |
|---|---|
| try - throw - catch (0) | 2014.03.05 |
| c++ explicit (0) | 2014.02.28 |
| c++ class / const member variable & function (0) | 2014.02.28 |
| deep copy / shallow copy < object copy (0) | 2014.02.27 |
치수는 나와있으니 다시 그려봐야지 ㅠㅠ
| 지갑도 가벼워지고... (0) | 2014.04.17 |
|---|---|
| ATC 2급 2전 1패 1승!! (2) | 2014.03.17 |
| 솔데스크 C언어 통합 1일차 (0) | 2014.02.24 |
| ATC 2급 시험 (0) | 2014.02.22 |
| 날릴 가능성이 조금 더 높지만.. 등록! (0) | 2014.02.18 |
| 우체국도 개인정보 빼돌리나? (0) | 2014.03.08 |
|---|---|
| 잘가라 내 책 ㅋ (0) | 2014.03.07 |
| 학원등록 - 자바 (0) | 2014.02.14 |
| autocad 한달 과정 끝! (0) | 2014.02.13 |
| 지름신님!!!! (0) | 2014.02.13 |
| 영법별 현재 상태 (0) | 2014.06.13 |
|---|---|
| 자유영 / 배영 / 평영 / 접영 업그레이드 (0) | 2014.03.12 |
| 접영 영업 업그레이드 (0) | 2014.03.01 |
| 배영영업 업그레이드 (0) | 2014.02.21 |
| 접영 영법 ... (0) | 2014.02.13 |
| 욕심으로 인한 희대의 잉여 아이템 획득 -_-a (0) | 2014.04.12 |
|---|---|
| 굿바이 엘리엇 하이 솔레이어 (0) | 2014.03.30 |
| 오늘의 지름 - 휴대용 토크렌찌 (0) | 2014.02.28 |
| 간만에 자전거.. (0) | 2014.01.11 |
| 2014 랜도너스 도전? (2) | 2013.12.23 |
| 자유영 / 배영 / 평영 / 접영 업그레이드 (0) | 2014.03.12 |
|---|---|
| 헤딩한지.. 4일...차? (0) | 2014.03.02 |
| 배영영업 업그레이드 (0) | 2014.02.21 |
| 접영 영법 ... (0) | 2014.02.13 |
| 올해 수영 업그레이드 (0) | 2014.02.07 |
| 굿바이 엘리엇 하이 솔레이어 (0) | 2014.03.30 |
|---|---|
| 3.1절 맞이 시즌 온 자전거 타기 (0) | 2014.03.01 |
| 간만에 자전거.. (0) | 2014.01.11 |
| 2014 랜도너스 도전? (2) | 2013.12.23 |
| 바이크 쇼 2013 (6) | 2013.11.29 |