原创 C/C++ / string 字符串去掉左右空格

以下代碼摘抄CSDN論壇: 源文連接在:http://topic.csdn.net/u/20110620/10/1e0e91f0-1440-45db-aa29-6ce618fec2da.html 本人目的

原创 C++ string對象讀文件

#include <iostream> #include <fstream> #include <iterator> #include <string> using namespace std; int main(int argc,

原创 用Openssl API製作證書

Openssl中形成X509證書的函數集中在genrsa.c,req.c,ca.c,x509.c等中,但是這些文件中的函數過於複雜,不太容易理解。下載了中國信息安全組織webmaster的CISOCA後受益非淺,思路清晰,真是非常感謝zr

原创 UDP 通訊

// Udp_20130322.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <WinSock2.h

原创 十六進制字符串轉換成整形

    本文摘自:http://www.chineselinuxuniversity.net/articles/40274.shtml    方法1: sscanf()  函數名: sscanf  功  能: 從字符串格式化輸入  用 

原创 string數組合並

#include <iostream> #include <vector> #include <string> using namespace std; int main(int argc, char* argv[]) { vec