我编译后出现4个错误 #includeusing namespace std;enum CPU_Ran{P1=1,P2,

我编译后出现4个错误
#include
using namespace std;
enum CPU_Ran{P1=1,P2,P3,P4,P5,P6,P7};
class CPU{
public:
x05CPU(int x,CPU_Ran y,double z);
x05~CPU(){
x05x05cout
Ж爱看海 1年前 已收到1个回答 举报

walker0916 种子

共回答了25个问题采纳率:92% 举报

没有那么多错误啦,就只有一处CPU::CPU(int x,CPU_Ran y,double z):frequency(x),ran(y),voltage(z){};
//这一句最后要加个{},因为在类中声明了该构造函数,但是没有实现函数体
//加个{}就有了函数实现,就正确啦

1年前

4
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.044 s. - webmaster@yulucn.com