C++
YiYueHuan
这个作者很懒,什么都没留下…
展开
-
std::vector
vector对象的定义和初始化几种初始化vector对象的方式:vector v1vector保存类型为T的对象.默认构造函数V1为空.vector v2(v1)v2是v1的一个副本vector v3(n, i)v3包含n个值为i的元素vector v4(n)v4含有值初始化的元素的n个副本vector作为一种原创 2015-01-27 22:03:59 · 827 阅读 · 0 评论 -
Curiously Recurring Template Pattern
Curiously Recurring Template Pattern原创 2016-10-25 18:33:19 · 699 阅读 · 0 评论 -
_mm_packus_epi16
Microsoft SpecificPacks the 16 signed 16-bit integers from a and b into 8-bit unsigned integers and saturates. __m128i _mm_packus_epi16 (__m128i a, __m128i b)原创 2015-12-07 21:14:06 · 3015 阅读 · 0 评论 -
__cpuid
https://msdn.microsoft.com/en-us/library/hskdteyh(VS.80).aspxGenerates the cpuid instruction available on x86 and x64, which queries the processor for information about the supported features an原创 2015-12-04 22:56:31 · 2667 阅读 · 0 评论 -
Compiler Options Listed by Category
https://msdn.microsoft.com/zh-cn/library/9s7c9wdw.aspxhttps://msdn.microsoft.com/zh-cn/library/fwkeyyhe.aspxhttps://msdn.microsoft.com/zh-cn/library/19z1t1wy.aspx This article contains原创 2015-12-03 12:40:34 · 581 阅读 · 0 评论 -
Inline Functions (C++)
https://msdn.microsoft.com/en-us/library/bw1hbe6y.aspxA function defined in the body of a class declaration is an inline function.In the following class declaration, the Account co原创 2015-11-30 22:23:53 · 765 阅读 · 0 评论 -
MinGW c++ compiler zlib1.dll missing error?
I have just started to learn C++ for school, and I'm trying to download the compiler MinGW to compile my source code. However, every time I try to compile a program an error message shows up saying th原创 2015-11-01 15:00:28 · 5162 阅读 · 0 评论 -
__cpuid, __cpuidex
https://msdn.microsoft.com/zh-cn/library/hskdteyh(v=vs.140).aspxhttps://msdn.microsoft.com/query/dev12.query?appId=Dev12IDEF1&l=ZH-CN&k=k(%22intrin%2F__cpuid%22);k(__cpuid);k(SolutionItemsProject);k原创 2015-11-10 20:22:36 · 3190 阅读 · 0 评论 -
Predefined Macros
https://msdn.microsoft.com/en-us/library/b0084kay.aspxLists the predefined ANSI/ISO C99 and Microsoft C++ implementation preprocessor macros.The compiler recognizes predefined ANSI/ISO原创 2015-11-10 20:17:21 · 1043 阅读 · 0 评论 -
runtime_checks
/RTC (Run-Time Error Checks)Used to enable and disable the run-time error checks feature, in conjunction with the runtime_checks pragma./RTC1/RTCc/RTCs/RTCu原创 2015-09-11 09:24:03 · 1653 阅读 · 0 评论 -
回车、换行、空格的ASCII码值—(附ASCII码表)
原址链接:http://blog.csdn.net/songjinshi/article/details/7868866回车、换行、空格的ASCII码值回车,ASCII码13换行,ASCII码10空格,ASCII码32Return = CR = 13 = '\x0d'NewLine = LF = 10 = '\x0a'转载 2015-02-15 10:05:11 · 5560 阅读 · 0 评论 -
C程序中修改Windows的控制台颜色
原址链接:点击打开链接C程序中修改Windows的控制台颜色 其实,Windows的CMD可以和Linux下的终端一样可以有五颜六色,目前我在网上找到2种方法可以修改Windows的CMD,当然都是在代码中修改的。在“CMD”->“属性”->“颜色”,这种方法就另当别论了。 (1)方法一:调用color命令行程序Windows的转载 2015-03-23 13:45:04 · 2201 阅读 · 0 评论 -
C4996 ---- _CRT_SECURE_NO_WARNINGS
问题:在使用老版本的CRT(C Run-Time)函数,如strcpy、strcat、fopen时就会出现一些警告信息,在vs12中我的出现的如下的错误信息:error C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecati原创 2015-01-31 15:12:08 · 2633 阅读 · 0 评论 -
Dlib相关问题
在 Dlib 自己提供的解决方案 example 中编译各项目一般不会有什么问题,但是如果想用 Dlib 中的示例代码来新建项目那么恐怕就得注意以下几点:假设 Dlib 被解压在目录 ***\Dlib\dlib-19.4\ 下。测试版本:dlib-19.4测试环境:VS 2015、VS 2017将包含 dlib 的目录加入到项目的 附加包含目录 中,即目录 ***\Dlib\dlib-19.4原创 2017-04-25 00:18:44 · 10168 阅读 · 2 评论