一个新手问题?
我在学习VC,有个问题我有些不懂,新创建了一个类ChatDialog,在ChatDialog.h中定义了几个函数:
/*这里不明白*/
DWORD exponential(DWORD, DWORD a = 2);
void bit_to_index(DWORD bit, DWORD &index, BOOL count);
DWORD bit_to_index(DWORD bit, BOOL count);
int get_bit_count(DWORD bit, BOOL count);
BOOL get_bit(DWORD bit, DWORD index);
void set_bit(DWORD &bit, DWORD index, BOOL count);
/*为什么这些定义不放在下面的函数中??而这些函数的实现和在下面函数中定义的函数实现是一样的*/
class CChatDlg : public CDialog
{
// Construction
public:
CSecretChatDlg(CWnd* pParent = NULL);
int m_friend_message_version;
BOOL m_bListen;
CConnect m_connectDlg;
UINT m_port;
CString m_IP;
.........
}