언어 썸네일형 리스트형 히스토그램 #include #include using namespace std; class Histogram { string his; int len; int count[26]; public : Histogram(string h) { his=h+"\n"; len=0; for(int i=0; ihis += h; if( isalpha(h) ) len++; } void Histogram::print() { cout 더보기 원의 개수 와 면적 구하기 #include #include #include #include using namespace std; class Circle{ int radius; string name; public : void setCircle(string name,int radius){ this->name=name; this->radius=radius; } double getArea(){ return radius*radius*3.14; } string getName(){ return name; } }; class CircleManager{ Circle *p; int size; public : CircleManager(){ } CircleManager(int size); ~CircleManager(){ delete[] p; } voi.. 더보기 전화번호 부 #include using namespace std; class Person{ string name; string tel; public: string getName(){return name; } string getTel(){ return tel; } void set(string name, string tel){ this->name=name; this->tel=tel; } }; int main(int argc, char** argv) { int n; Person p[3]; string name, number; cout 더보기 이전 1 ··· 4 5 6 7 다음