求指导 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/05/11 01:51:03
求指导 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_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(){}