定义不一定在相应的cpp里

来源:互联网 发布:mysql 导出文件格式 编辑:程序博客网 时间:2024/06/05 07:42

 

看以下代码:

CDialog.h

//

#ifndef CDialog_H_
#define CDialog_H_

void Set();


#endif

//CDialog.cpp


#include "CDialog.h"

int  fun( )

{
 Set();
 return 0;
}

 

// CMain.cpp

void Set( )
{
 

}

 

 

以上代码可以通过

就是说 定义不一定在相应的cpp里

原创粉丝点击