c5 03有没有wifiC++的高手

有没有高手帮忙修改一下简单的C++小程序。代码无法复制,复制了问题就会变成无效的。_百度知道
按默认排序
我已经发送到你的邮箱里了,我比较急,可以麻烦你先看下不。。
,直接在线解决
没有联系方式啊?
提个问题还匿名 不要怪我说话直 别人真担心你是收集邮箱发垃圾邮件的 这么冠冕的问题你还匿名
不想回答就算了,那么三八干嘛。我就是喜欢提问题用匿名,我才没有那么无聊发什么垃圾邮件。
说话真嗲 像女女 呵呵 我没时间 有时间就帮你看看了 发到这 我帮你看看
其他类似问题
您可能关注的推广
高手帮忙的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁【求救】有没有现在在线的C++高手?现在急需帮忙给我的一个汽车类程序写个主函数 并且注释一下 析构函数_百度知道
【求救】有没有现在在线的C++高手?现在急需帮忙给我的一个汽车类程序写个主函数 并且注释一下 析构函数
std:string m_type:string type:string& weight() = 0 { return m_weight:string& type() { return m_小轿车类{public: m_type(type)::; } }}:: SmallCar(std:string& color() = 0;大车类{ }private::: virtual const std:; class BigC std:string weight) : std:;class SmallCar :; } }private:string& type() { return m_type:string& type() = 0:string m_}:string m_weight, std: std: virtual const std::给我的一个汽车类程序写个主函数并且注释一下 析构函数 友元函数等等主要的一些函数注释出来#include&lt:string& color() { return m_color:string weight) :::string color:string m_color: public Car &#47, m_weight(weight) { }&#47, } virtual const std:;&#47:::;iostream&gt::string& weight() = 0 { return m_ std, m_weight(weight) { }public::class Car &#47:&#47, m_color(color)::string color:; virtual const std:string m_}:string& color() { return m_color:: BigCar( std:string& weight() = 0:string m_weight: m_type(type), m_color(color): public Car &#47,汽车类{public
提问者采纳
就不能给你代码排的整齐点吗?
能帮帮忙吗,分全给你,明天要交
这不是分数的问题。。我先看看吧,不知道能不能帮得上忙
你要什么功能?
能统计型号 颜色 重量就行了
#include&iostream&#include &string&class Car //汽车类{public:
virtual const std::string& type() = 0;
virtual const std::string& color() = 0;
virtual const std::string& weight() = 0;};class SmallCar : public Car //小轿车类{public:
SmallCar(std::string type, std::string color, std::string weight) : m_type(type), m_color(color), m_weight(weight) { }public:
virtual const std::string& type() { return m_ }
virtual const std::string& color() { return m_ }
virtual const std::string& weight() { return m_ }
friend ostream &operator&&(ostream &os,const SmallCar &a)
return os&&a.m_type&&" "&&a.m_color&&" "&&a.m_
std::string m_
std::string m_
std::string m_};class BigCar : public Car //大车类{public:
BigCar(std::string type, std::string color, std::string weight) : m_type(type), m_color(color), m_weight(weight) { }public:
virtual const std::string& type() { return m_ }
virtual const std::string& color() { return m_ }
virtual const std::string& weight() { return m_ }
friend ostream &operator&&(ostream &os,const BigCar &a)
return os&&a.m_type&&" "&&a.m_color&&" "&&a.m_
std::string m_
std::string m_
std::string m_};int main(){
car1("small","red","1T");
BigCar car2("big","red","2T");
cout && "SmallCar: "&& car1.type()&&" "&&car1.color()&&" "&&car1.weight()&&
cout && "BigCar: "&& car2.type()&&" "&&car2.color()&&" "&&car2.weight()&&
return 0;}
提问者评价
其他类似问题
主函数的相关知识
按默认排序
其他1条回答
?????主函数实现什么功能啊
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁有没有c++高手解释一下int val =为什么可以编译通过???
[问题点数:40分,结帖人hpustudent]
有没有c++高手解释一下int val =为什么可以编译通过???
[问题点数:40分,结帖人hpustudent]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关帖子推荐:
2014年2月 C/C++大版内专家分月排行榜第二2013年4月 C/C++大版内专家分月排行榜第二2013年3月 C/C++大版内专家分月排行榜第二2012年12月 C/C++大版内专家分月排行榜第二2012年11月 C/C++大版内专家分月排行榜第二2012年8月 C/C++大版内专家分月排行榜第二
2014年12月 C/C++大版内专家分月排行榜第三2014年5月 C/C++大版内专家分月排行榜第三2014年3月 C/C++大版内专家分月排行榜第三2013年12月 C/C++大版内专家分月排行榜第三2013年10月 C/C++大版内专家分月排行榜第三2013年9月 C/C++大版内专家分月排行榜第三2013年7月 C/C++大版内专家分月排行榜第三2013年5月 C/C++大版内专家分月排行榜第三2013年2月 C/C++大版内专家分月排行榜第三2013年1月 C/C++大版内专家分月排行榜第三2012年9月 C/C++大版内专家分月排行榜第三
2014年10月 C/C++大版内专家分月排行榜第三2014年4月 C/C++大版内专家分月排行榜第三
2013年 总版技术专家分年内排行榜第三
2012年 总版技术专家分年内排行榜第七
2015年1月 C/C++大版内专家分月排行榜第二2012年3月 C/C++大版内专家分月排行榜第二2011年11月 C/C++大版内专家分月排行榜第二2010年6月 C/C++大版内专家分月排行榜第二2010年5月 C/C++大版内专家分月排行榜第二
2011年4月 C/C++大版内专家分月排行榜第三2011年2月 C/C++大版内专家分月排行榜第三2010年8月 C/C++大版内专家分月排行榜第三
2007年9月 C/C++大版内专家分月排行榜第三2007年8月 C/C++大版内专家分月排行榜第三2006年11月 C/C++大版内专家分月排行榜第三
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。

我要回帖

更多关于 c5 03有没有wifi 的文章

 

随机推荐