#include #include #include #include using namespace std; class Car { private: char *carname; //차 이름 변수 protected: int speed = 100; //속도는 100으로 설정 public: Car() {} Car(const char *_carname) //이름 입력받기 위한 생성자 { carname = new char[strlen(_carname) + 1]; //NULL문자 포함한 배열 선언 strcpy(carname, _carname); //carname안에 _carname 입력 //cout