constructors not allowed a return type 这个错误是什么意思?
seatu 2003-02-26 06:05:00 很简单的
Channel.h中
#include "winsock.h"
class CChannel
{
public:
CChannel();
~CChannel();
int m_serverPort; //服务器的Socket端口
}
Channel.cpp中
CChannel::CChannel()
{
m_serverPort=0;
}
CChannel::~CChannel()
{
}
为什么会出现 指出在 CChannel::CChannel()处有
constructors not allowed a return type 的错误