new类的问题,帮帮忙看看

zxx_0405 zxx_0405 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#ifndef aaH
#define aaH

class a
{
publice:
bool a::fun(int t1,int t2);
}

——————————————

#include <vcl.h>
#pragma hdrstop

#include "BPStudy.h"
#include "aa.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TBPstudyForm *BPstudyForm;
……
void __fastcall TBPstudyForm::Button1Click(TObject *Sender)
{
Taa* f=new Taa();//错误提示:[C++ Error] ICR_BPStudy.cpp(52): E2285 Could not find a match for 'Taa::Taa()'
f->fun(……)
delete f;
}

劳烦大家指点下,谢谢啦!
不知道看明白了没
...全文
评论 21
收藏 已收藏
分享
返回顶部
zxx_0405
C++ Builder 13,871 成员 102,696 内容