码迷,mamicode.com
首页 >  
搜索关键字:initial    ( 4201个结果
C++多线程编程笔记
Windows系统为我们提供了相关API,我们可以使用它们来进行多线程编程。 创建线程的函数: HANDLE CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, // SD SIZE_T dwStackSize, // initial stack size LP...
分类:编程语言   时间:2015-08-07 14:49:31    阅读次数:130
error: ‘for’ loop initial declarations are only allowed in C99 mode
比如写出下面这段程序:for (int i = 0; i < n; ++i) do_something();然后用gcc编译,会报‘for’ loop initial declarations are only allowed in C99 mode的错误。原因是在循环条件中声明变量,只在C99标....
分类:其他好文   时间:2015-08-05 19:58:23    阅读次数:304
Windows API CreateEvent函数用法
CreateEvent是创建windows事件对象,作用主要用在判断线程退出和锁定方面. HANDLE CreateEvent(   LPSECURITY_ATTRIBUTES lpEventAttributes, // SD    BOOL bManualReset, // reset type    BOOL bInitialState, // initial sta...
分类:Windows程序   时间:2015-08-05 18:37:50    阅读次数:175
opengl select
#include #include #include #include #include #include #define PICK_SIZE 32int winWidth = 400, winHeight = 300;void Initial(void){ glClearColo...
分类:其他好文   时间:2015-08-05 14:34:19    阅读次数:109
Lost connection to MySQL server at ‘reading initial communication packet错误解决
今天线上mysql报错,连不上了,报错信息大致为LostconnectiontoMySQLserverat‘readinginitialcommunicationpacket。然后在网上找了些解决办法,这边一个一个来说明,方便以后在遇到这样的问题不知道怎么解决:最后查找到的原因是/var/lib/mysql/下面的mysql.sock不见了,为什么..
分类:数据库   时间:2015-08-05 13:11:46    阅读次数:466
常用Git命令及技巧总结
最近切换到git版本控制来维护代码,记录常用命令如下。另外,推荐git学习的书籍,《Pro Git》。另外,记录一些Git技巧。 1. 常用Git命令 git init git add *.c git add README git commit -m 'initial project version” git clone git://github.com/sch...
分类:其他好文   时间:2015-08-05 13:01:04    阅读次数:170
6、Concurrent-Mark-Sweep
1、cms 主要用于年老代垃圾回收 2、这玩意牺牲通吐量换取最短垃圾回收时间 3、有的地方说是四个阶段,有的地方说五个阶段,还有六个阶段的,真相是————我也不知道 四个阶段: Initial mark Concurrent mark Remark Concurrent Sweep 五个阶段 Ini...
分类:其他好文   时间:2015-08-05 10:18:32    阅读次数:115
实现响应式布局效果
//最大不能超过640px//content="width=device-width指定设备的宽,initial-scale=1按照原比例进行缩放@media screen and (min-width: 600px;) and (max-width: 960px){}//最小600最大960px;
分类:其他好文   时间:2015-08-04 18:36:22    阅读次数:92
通过SqlHelper实现登录
1.建立解决方案:. 首先创建windows窗体应用程序,然后拖出登录界面 2. 写配置文件App.config: 其中的name可以随意去写,没有任何限制。连接字符串中的【Data Source=.】为服务器名称,【Initial Cata...
分类:数据库   时间:2015-08-03 16:38:03    阅读次数:264
LeetCode "Different Ways to Add Parentheses"
My initial thought was recursive (a op b) evaluation, which doesn't work quite well.The correct way is to split by op. And, we can cache calculaton re...
分类:其他好文   时间:2015-08-01 14:12:44    阅读次数:101
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!