| 전시간 | 다음시간 |
| 타도코코아CppStudy/0724 | 타도코코아CppStudy/0731 |
오늘한거 ¶
가상함수와 다형성 예제 ¶
~cpp
#include <iostream>
using namespace std;
class Plane
{
public:
virtual void Attack() {
cout << "어택\n";
}
};
class BBPlane : public Plane
{
public:
void Attack() {
cout << "비비탄\n";
}
};
class SmokPlane : public Plane
{
public:
void Attack() {
cout << "연기\n";
}
};
int main()
{
Plane* plane;
plane = new SmokPlane;
plane->Attack();
delete plane;
return 0;
}
자유과제 ¶
- 해오면 첨삭해 줍니다. 자유...라고 하면 아무도 안해올걸 알지만서도... 왠만하면 해보세요. 많은 도움이 될겁니다.
| 문제 | 학생이름 | 학생의 답안 | 강사의 평 |
| 랜덤워크 | CherryBoy | | . |
| 마방진(홀수) | CherryBoy | | . |
| 1900년 이후의 만년달력 | |||
| 8퀸 문제 |










