10 2012 档案
摘要:#include "stdafx.h"#include <iostream>using namespace std;class Love{public: Love():str(0),agi(0),intel(0){} Love(int a , int b ,int c): str(a), agi(b) , intel(c){}; Love& operator+=(const Love& love) { str += love.str; agi += love.agi; intel += love.intel; re...
阅读全文
摘要:1、FTP连接的函数View Code void CFtpClientDemoDlg::OnBnClickedConnect(){ FILETIME fileTime; CString str,szFile,szFtpInfo; HINTERNET hFind; UpdateData(TRUE); BYTE b1,b2,b3,b4; m_ServerAddr.GetAddress(b1,b2,b3,b4); CString strServerAddr; strServerAddr.Format(_T("%d.%d.%d.%d"),b1,b2,b3...
阅读全文
摘要:1、读取文件,逐行读取的函数View Code 1 void read_line(FILE* fp,char* line) 2 { 3 if (fp == NULL)//判断指针是否为空 4 { 5 return; 6 } 7 int i = 0; 8 9 char ch = fgetc(fp);10 while(ch != '\n' && !feof(fp))11 {12 line[i] = ch;13 i++;14 ch = fgetc(fp);15 }16 ...
阅读全文

浙公网安备 33010602011771号