求指导 3q very much!错误:'setaccount::setaccount' :overloaded member function 'void (int,int,double)' not found in 'setaccount'.我是声明头文件吧#ifndef setaccount_h#define setaccount_hclass setaccount{public:setaccount(int nid,int npsw,d

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 13:38:26
求指导 3q very much!错误:'setaccount::setaccount' :overloaded member function 'void (int,int,double)' not found in 'setaccount'.我是声明头文件吧#ifndef setaccount_h#define setaccount_hclass setaccount{public:setaccount(int nid,int npsw,d
xSOK0*`loݟ?tI]Zg"c0ETT& zDԹoӆ[usы%)%r[6@ Ztuz,YV jt.YZMWFelա&:RM'ljgNYi P*_nYvzɺ^0`ve7-tRD`ݩ8@(XV$ c7_ϠB-k_p4.J#&D"_tLHh 8={XN@Oal?0XVVg9XTe(7f]yY\XH?ڸP3J2׍nwp

求指导 3q very much!错误:'setaccount::setaccount' :overloaded member function 'void (int,int,double)' not found in 'setaccount'.我是声明头文件吧#ifndef setaccount_h#define setaccount_hclass setaccount{public:setaccount(int nid,int npsw,d
求指导 3q very much!
错误:'setaccount::setaccount' :overloaded member function 'void (int,int,double)' not found in 'setaccount'
.我是声明头文件吧
#ifndef setaccount_h
#define setaccount_h
class setaccount{
public:
setaccount(int nid,int npsw,double nbalance);
.
private:
.
};
#endif
.我是cpp
#include "setaccount.h"
#include
using namespace std;
setaccount::setaccount(int nid,int npsw,double nbalance)
{
ID=nid;psw=npsw;balance=nbalance;
}

求指导 3q very much!错误:'setaccount::setaccount' :overloaded member function 'void (int,int,double)' not found in 'setaccount'.我是声明头文件吧#ifndef setaccount_h#define setaccount_hclass setaccount{public:setaccount(int nid,int npsw,d
你重载了构造函数之后需要把默认构造函数加上去
setaccount(){}