随笔分类 -  C/C++

【转】Native Thread for Win32 C- Creating Processes(通俗易懂,非常好)
摘要:http://www.bogotobogo.com/cplusplus/multithreading_win32C.php To create a new process, we need to call CreateProcess(). Syntax: Parameters: The follow 阅读全文

posted @ 2018-03-02 11:10 我来乔23 阅读(329) 评论(0) 推荐(0)

【转】Native Thread for Win32 B-Threads Synchronization(通俗易懂,非常好)
摘要:http://www.bogotobogo.com/cplusplus/multithreading_win32B.php Synchronization Between Threads In the following example, two threads are used to calcul 阅读全文

posted @ 2018-03-02 11:03 我来乔23 阅读(212) 评论(0) 推荐(0)

【转】Native Thread for Win32 A- Create Thread(通俗易懂,非常好)
摘要:http://www.bogotobogo.com/cplusplus/multithreading_win32A.php Microsoft Windows operating system's support for multithreaded programming is almost sim 阅读全文

posted @ 2018-03-02 10:58 我来乔23 阅读(478) 评论(0) 推荐(0)

C++中的const成员函数(函数声明后加const,或称常量成员函数)用法详解
摘要:http://blog.csdn.net/gmstart/article/details/7046140 在C++的类定义里面,可以看到类似下面的定义: 01 class List { 02 private: 03 Node * p_head; 04 int length; 05 …… 06 Pub 阅读全文

posted @ 2018-02-13 10:36 我来乔23 阅读(5924) 评论(0) 推荐(1)

wchat_t与char互转
摘要:C++ Code 1234567891011121314151617181920212223242526 //窄字符转宽字符 void ConvertA2W(wchar_t* the_strw, char* the_str, int len)//注意:默认the_strw和the_str有足够长度的 阅读全文

posted @ 2018-02-09 11:56 我来乔23 阅读(812) 评论(0) 推荐(0)

string与wstring互转
摘要:string与wstring互转 C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 阅读全文

posted @ 2018-01-12 10:39 我来乔23 阅读(2140) 评论(0) 推荐(0)

【转】VC++计算当前时间点间隔N天的时间(不使用CTimeSpan类)
摘要:转自:http://blog.csdn.net/fzuim/article/details/61199351 涉及到有效期的设置,需要计算N天时间间隔的时间。 C++ Code 123456789101112131415 #define QUADPART 10000000i64 SYSTEMTIME 阅读全文

posted @ 2017-11-21 17:03 我来乔23 阅读(753) 评论(0) 推荐(0)

C++ TR1、TR2与boost的关系
摘要:C++ Technical Report 1 (TR1)是ISO/IEC TR 19768, C++ Library Extensions(函式库扩充)的一般名称。TR1是一份文件,内容提出了对C++标准函式库的追加项目。这些追加项目包括了正则表达式、智能指针、哈希表、随机数生成器等。TR1自己并非 阅读全文

posted @ 2017-07-17 10:47 我来乔23 阅读(10070) 评论(0) 推荐(4)

C++关键字之const(整理!)
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-08 10:09 我来乔23 阅读(209) 评论(0) 推荐(0)

C++ 智能指针学习
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-07 17:17 我来乔23 阅读(249) 评论(0) 推荐(0)

C++之拷贝构造函数、深拷贝、浅拷贝
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-07 15:55 我来乔23 阅读(235) 评论(0) 推荐(0)

C++关键字之explicit(显式)
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 /* KeyWord_explic 阅读全文

posted @ 2017-06-07 11:14 我来乔23 阅读(428) 评论(0) 推荐(0)

C++之类模板
摘要:C++之类模板 代码如下: C++ Code 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 阅读全文

posted @ 2017-06-07 10:10 我来乔23 阅读(155) 评论(0) 推荐(0)

C++之函数模板
摘要:C++之函数模板与模版函数 直接上代码: C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646 阅读全文

posted @ 2017-06-07 09:54 我来乔23 阅读(174) 评论(0) 推荐(0)

C++之异常处理
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-06 10:48 我来乔23 阅读(170) 评论(0) 推荐(0)

C++之运行时类型识别RTTI
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-06 10:06 我来乔23 阅读(194) 评论(0) 推荐(0)

C++之运算符重载
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-05 19:24 我来乔23 阅读(188) 评论(0) 推荐(0)

C++之强制类型转换
摘要:C++ Code 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 阅读全文

posted @ 2017-06-05 10:15 我来乔23 阅读(219) 评论(0) 推荐(0)

C++关键字之friend
摘要:原则上, 类的私有(private)和受保护(protected)成员不能从声明它们的同一类外部访问。但是, 此规则不适用于友元 "friends"。 以friend关键字修饰的函数或类称为友元函数或友元类。 友元函数 友元函数是可以直接访问类的私有成员的非成员函数。它是定义在类外的普通函数,它不属 阅读全文

posted @ 2017-05-27 15:56 我来乔23 阅读(17046) 评论(2) 推荐(6)

C/C++ 之static
摘要:/* FileName:TestStatic.cpp Author:Michael Joessy Title: C/C++ Static Date:2017-05-22 */ #include using namespace std; void fn(); static int n; //定义静态全局变量 static void... 阅读全文

posted @ 2017-05-22 21:19 我来乔23 阅读(235) 评论(0) 推荐(0)

导航