首页 > TAG信息列表 > 车类
车类
function.h #include"members.h" #include<iostream> using namespace std; Car::Car(double w, double s) { weight = w; speed = s; } Car::Car (const Car &p) { weight = p.weight; speed = p.speed; } void Car::print() {车类
function.h #include"members.h" #include<iostream> using namespace std; Car::Car(double w, double s) { weight = w; speed = s; } Car::Car (const Car &p) { weight = p.weight; speed = p.speed; } void Car::print() {