上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 44 下一页
摘要: SMTP.h SMTP.cpp main.cpp 阅读全文
posted @ 2019-06-02 15:20 gd_沐辰 阅读(346) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include using namespace std; #pragma comment(lib,"ws2_32.lib") #define _WINSOCK_DEPRECATED_NO_WARNINGS struct Base64Date6 { unsigned int d4 : 6; ... 阅读全文
posted @ 2019-06-02 15:13 gd_沐辰 阅读(472) 评论(0) 推荐(0) 编辑
摘要: 邮件的发送和接收过程——STMP、POP、IMAP、MIME 电子邮件发送协议 是一种基于“ 推 ”的协议,主要包括 SMTP ; 邮件接收协议 则是一种基于“ 拉 ”的协议,主要包括 POP协议 和 IMAP协议 ,在正式介绍这些协议之前,我们先给出邮件收发的体系结构: 从上图可以看出邮件收发的整 阅读全文
posted @ 2019-06-02 15:10 gd_沐辰 阅读(10226) 评论(2) 推荐(1) 编辑
摘要: #include <iostream>#include <fstream>#define JSON_IS_AMALGAMATION#include "json/json.h"using std::cout;using std::endl; int main(int argc, char** argv 阅读全文
posted @ 2019-06-02 15:00 gd_沐辰 阅读(345) 评论(0) 推荐(0) 编辑
摘要: jsoncpp 主要包含三个class:Value、Reader、Writer。注意Json::Value 只能处理 ANSI 类型的字符串,如果 C++ 程序是用 Unicode 编码的,最好加一个 Adapt 类来适配。 Json内部类和方法: Reader<是用于读取的,说的确切点,是用于将字 阅读全文
posted @ 2019-06-02 14:59 gd_沐辰 阅读(217) 评论(0) 推荐(0) 编辑
摘要: [class] Json::Reader [public] [将字符串或者输入流转换为JSON的Value对象] bool parse( const std::string &document, Value &root, bool collectComments = true ); bool par 阅读全文
posted @ 2019-06-02 14:59 gd_沐辰 阅读(754) 评论(0) 推荐(0) 编辑
摘要: 字符串的ASCII和UNICODE之间的转换 1)Win32提供了API函数MultiByteToWideChar和WideCharToMultiByte来提供这种功能。 2)ATL还提供了另一套转换宏——CA2W、CA2T、CA2WEX、CA2CT、CW2T、CW2A、CW2AWXCW2A将宽字符 阅读全文
posted @ 2019-06-02 14:56 gd_沐辰 阅读(9016) 评论(0) 推荐(0) 编辑
摘要: GetPrivateProfile系列函数 1)写入.ini文件: BOOL WritePrivateProfileString( LPCTSTR lpAppName, // INI文件中的一个字段名[节名]可以有很多个节名 LPCTSTR lpKeyName, // lpAppName 下的一个键 阅读全文
posted @ 2019-06-02 14:55 gd_沐辰 阅读(227) 评论(0) 推荐(0) 编辑
摘要: BOOL PathRemoveFileSpec( LPTSTR pszPath); 功能:删除路径后面的文件名和’/’符号。该函数可以分析出一个文件的路径。 例:char szpath[MAX_PATH]=”d://test//111.txt”; 调用PathRemoveFileSpec( szpa 阅读全文
posted @ 2019-06-02 14:53 gd_沐辰 阅读(809) 评论(0) 推荐(0) 编辑
摘要: // C++11Demo.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <iostream> using namespace std; // QueryKey - Enumerates the subkeys of key and its 阅读全文
posted @ 2019-06-02 14:51 gd_沐辰 阅读(1467) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 44 下一页