It's often useful to avoid stepping into some common code like constructors or overloaded operators. Many times when you debug the code you probably step into functions you would like to step over, whether it's constructors, assignment operators or o…
https://msdn.microsoft.com/en-us/library/xz7ttk5s.aspx   Optimizing Your Code Visual Studio 2015 The latest version of this topic can be found at Optimizing Your Code. By optimizing an executable, you can achieve a balance between fast execution spee…
箭头函数=>无疑是ES6中最受关注的一个新特性了,通过它可以简写 function 函数表达式,你也可以在各种提及箭头函数的地方看到这样的观点——“=> 就是一个新的 function”. 箭头函数的句法规则甚至早已延伸到各项标准和技术文档中去了,虽然它早已不稀奇,却给我们一种刚刚发现的新鲜感.  粉我的人都知道俺因为某些原因不怎么喜欢 => 的语法,不过别担心,本文并非讲述我为何不喜欢它,如果你对这个观点感兴趣,可以查看我<YDKJS:ES6 & Beyonf>一书…
怎么查看CI的版本信息?想看某个项目中使用的CI具体是哪个版本,怎么查看?system\core\codeigniter.php中可以查看版本常量/** * CodeIgniter Version * * @var string * */ define('CI_VERSION', '3.1.4'); CodeIgniter 主要有 3 个版本:CodeIgniter 3(稳定版).CodeIgniter 4(开发版)和 CodeIgniter 2(旧版)CodeIgniter 3.xCodeIg…
问题: 第一个函数中用到了变量a:第二个函数也想使用变量a. 解决方法: 在第一个函数中将变量a定义为全局变量,然后在第二个函数中,也写上global a即可. 示例: def func1(): global a a = 1 print "a in func1 is %d" % (a) def func2(): global a print "a in func2 is %d" % (a) func1() func2() 运行结果: a in func1 is 1…
要想在for语句中直接  定义一个变量  (如下的代码) 1 for(uint16_t i=0;i<10;i++); 2 if( GPIO_ReadInputDataBit(GPIOA, GPIO_Pin_8)==0&&KeyFlag==0) 3 { 4 Key=1; 5 6 } 需要  c99编译mode 在   KEIL5  中可以直接这样配置:…
字节填充 VC++在Debug编译方式下,new的内存用0xcd(助记词为Cleared Data)填充,防止未初始化: delete后,内存用0xdd(Dead Data)填充,防止再次被使用. 这样有利于调试内存错误.之所以选择这样的填充模式,是因为: A 大数,若被当成指针就会越界: B 奇数,指针通常指向偶数地址: C 非0,这样不会和NULL混淆. 在Release编译方式下不会用这些字节填充.…
非常早就想写关于C++ UI开发的一系列博文,博客专栏刚审核通过,就立即開始刷博文,不能辜负自己的一番热血,我并非写界面的高手,仅仅想通过写博文提高我自己的技术积累,也顺便帮助大家解决界面开发的瓶颈. 能来到这里看我写文章, 第一说明你是windows下开发的程序猿! 第二你对美丽软件界面开发感兴趣! 第三也许你也像我当初一样对C++软件界面开发 无所适从!也许我写的不专业,可是我仅仅想让利用C++编写client界面的新手程序猿们对C++界面开发没有误区 . 我是从windows开发出身,深知…
It is possible to instruct the debugger to break when an exception occurs, before a handler is invoked. That allows you to debug your application immediately after the exception occurs. Navigating the Call Stack should allow you to figure the root ca…
Memory Values If you're using the debug heap, memory is initialized and cleared with special values. Typically MFC automatically adds something like the following to your .cpp files to enable it: #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE s…