목록전체 글 (484)
Jam's story
1 2 3 네이버 구글 다음 4 구글 Chrome 브라우저 감별 웹 브라우저에 따라 지원되는 자바스크립트들이 다를 수도 있습니다. DOM의 기능은 표준화되어 있어 동일하지만, BOM 객체들을 많이 다릅니다. 얼른 모두 표준화되었으면 하지만 독창적인 기능으로 승부하고자 하여 쉽지는 않을 것 같습니다. 5 6 div 태그에 시계 만들기 시계를 클릭하면 시계가 멈추고 다시 클릭하면 가기 시작하다. 7 산수 문제를 풀어 봅시다. 자동으로 문제가 만들어집니다. 답 입력 후 채점 버튼을 누르세요. 다시 버튼을 누르면 새로운 문제가 출력됩니다. 나누기 결과는 정수입니다. 채점0 다시 8 산수 문제를 풀어 봅시다. 문제는 자동으로 생성되며, 10초가 지나면 자동 채점됩니다. 남은 시간 0 다시 0 9 스크린의 해상도가..
#include using namespace std; class Converter { protected: double ratio; virtual double convert(double src) = 0; virtual string getSourceString() = 0; virtual string getDestString() = 0; public: Converter(double ratio) { this->ratio = ratio; } void run() { double src; cout
1 #include #include using namespace std; class Circle { int radius; public: Circle(int radius = 0) { this->radius = radius; } int getRadius() { return radius; } void setRadius(int radius) { this->radius = radius; } double getArea() { return 3.14 * radius * radius; } }; class NamedCircle : public Circle { string name; public: NamedCircle(int radius=0, string name=" ") : Circle(radius) { this->nam..
1번 #include using namespace std; #include class Book { string title; int price, pages; public: Book(string title = "", int price = 0, int pages = 0) { this->title = title; this->price = price; this->pages = pages; } void show() { cout
전위연산자는 참조매개변수를 써서 값을 바로 바꿔준다 #include using namespace std; #include class Power { int kick; int punch; public: Power(int kick = 0, int punch = 0) { this->kick = kick; this->punch = punch; } void show(); friend Power& operator++(Power& op); friend Power operator++(Power& op, int x); }; void Power::show() { cout
보호되어 있는 글입니다.
보호되어 있는 글입니다.
보호되어 있는 글입니다.