求指导 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](/uploads/image/z/3019333-13-3.jpg?t=%E6%B1%82%E6%8C%87%E5%AF%BC+3q+very+much%21%E9%94%99%E8%AF%AF%3A%27setaccount%3A%3Asetaccount%27+%3Aoverloaded+member+function+%27void+%28int%2Cint%2Cdouble%29%27+not+found+in+%27setaccount%27.%E6%88%91%E6%98%AF%E5%A3%B0%E6%98%8E%E5%A4%B4%E6%96%87%E4%BB%B6%E5%90%A7%23ifndef+setaccount_h%23define+setaccount_hclass+setaccount%7Bpublic%3Asetaccount%28int+nid%2Cint+npsw%2Cd)
2nwp求指导 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(){}