freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

mfc聊天軟件課程設(shè)計(jì)-資料下載頁

2025-06-25 21:07本頁面
  

【正文】 ket(this)。 if (m_pSocketAccept(*pSocket)) {//將該套節(jié)字保存起來 (pSocket)。 } else { delete pSocket。 }}void CChatServerDlg::UpdateClients(char *buffer, int nBufferSize) //通知所有客戶端更新消息{ for(POSITION pos = ()。pos != NULL。) {//將新信息發(fā)送給每個(gè)客戶端 CClientSocket* pSocket= (CClientSocket*)(pos)。 if (buffer != NULL) pSocketSend(buffer,nBufferSize,0)。 }}void CChatServerDlg::Onsiliao() {//將數(shù)據(jù)發(fā)送給指定客戶 int Position=()。 if(Position==1) { AfxMessageBox(沒有選中聯(lián)系人!,NULL,MB_OK)。 return 。 } int t=0。 CString name,temp。 (Position,name)。 //得到選中人的姓名 for(POSITION pos = ()。pos != NULL。 ++t) {//將新信息發(fā)送給指定客戶端 CClientSocket* pSocket= (CClientSocket*)(pos)。 (t,temp)。 if(temp==name) { pSocketSend((0),(),0)。 break。 } } UpdateData(1)。 //將數(shù)據(jù)在列表框中顯示出來 (m_strMsg)。 ()。////清空編輯區(qū) UpdateData(0)。}void CChatServerDlg::OnSave() {ofstream outfile。(,ios::out|ios::app)。//以追加打開文件if(!outfile){ MessageBox(保存失敗!,NULL,MB_OK)。 return 。}CString str。 string s。int i,n。for(i=0。i()。i++) //遍歷ListBox{ n=(i)。 (i,(n))。 s=str。 //把CString轉(zhuǎn)換string,否則亂碼 outfilesendl。}()。}void CChatServerDlg::OnRead() {ifstream infile()。 //讀取文件if(!infile){ MessageBox(親,木有聊天記錄哦!,NULL,MB_OK)。 return 。}char s[1005]。CString temp。while((s,1000,39。\n39。)){ string str(s)。 (%s,())。 ((CChatServerDlg*)(AfxGetApp()m_pMainWnd))(temp)。 ((CChatServerDlg *)(AfxGetApp()m_pMainWnd))(0)。}()。
點(diǎn)擊復(fù)制文檔內(nèi)容
職業(yè)教育相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1