new类的问题,帮帮忙看看
#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;
}
劳烦大家指点下,谢谢啦!
不知道看明白了没