function.h
include”members.h”
include
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()
cout<< “重量为” << weight << endl;
cout<< “速度为” << speed << endl;
Original: https://www.cnblogs.com/brain-keep-burning-why/p/16421856.html
Author: Novice!!!
Title: 车类
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/568424/
转载文章受原作者版权保护。转载请注明原作者出处!