热门

最新

红包

立Flag

投票

同城

我的

发布
2302_77427184
Nofear
3 年前
true2302_77427184

输出一个周期的1s的方波后会继续输出还是停止等待呀

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
求教#include<iostream>#include<string>using namespace std;class birthday{ public: birthday(int a,int b,int c); birthday(){} birthday(birthday &a){ this->day=a.day; this->year=a.year; this->month=a.month; } private: int day; int year; int month;};class people{public: people(int a,string m,string b,int c,birthday &xd):birth(xd),name(m),sex(b),num(a),id(c) { } people(){} people( people& other) : num(other.num), name(other.name), sex(other.sex), id(other.id), birth(other.birth) {}private:int num;string name;string sex;int id;birthday birth;};birthday::birthday(int a,int b,int c){ day=a; month=b; year=c;}int main(){cout<<" num name sex id birth"<<endl;int a;string b;int c,d,m,y;cin>>a>>b>>c>>d>>m>>y;birthday me(d,m,y);people wo(a,m,b,c,me);}no matching function for call to 'people::people(int&, int&, std::__cxx11::string&, int&, birthday&)'这个代码的错误不会改
立即登录