2017年12月20日

摘要: 我用git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决办法如下: git init就可以了! 阅读全文
posted @ 2017-12-20 00:20 lydstory 阅读(263) 评论(0) 推荐(0) 编辑

2017年12月19日

摘要: 删除文件夹下的文件 rm CMakeCache.txt 重新编译即可 安装g++ yum install gcc-c++ 阅读全文
posted @ 2017-12-19 23:59 lydstory 阅读(1169) 评论(0) 推荐(0) 编辑

2017年12月13日

摘要: #include <stdio.h>#include <time.h>int main(void){ time_t tick; struct tm tm; char s[100]; tick = time(NULL); tm = *localtime(&tick); strftime(s, size 阅读全文
posted @ 2017-12-13 17:59 lydstory 阅读(195) 评论(0) 推荐(0) 编辑
摘要: afx_msg LRESULT OnMyIconNotify(WPARAM wParam,LPARAM lParam); vc6 可以是void vs2015不可以 ON_MESSAGE(MYWM_NOTIFYICON, CMtextDlg::OnMyIconNotify) 前面必须加类名 阅读全文
posted @ 2017-12-13 16:01 lydstory 阅读(147) 评论(0) 推荐(0) 编辑
摘要: sqr::IDatabase *db=NULL;IDbConnection *conn = NULL;int main(int argc, char* argv[]) { db = GetDatabase(); conn =db->CreateConnection(); conn->execute( 阅读全文
posted @ 2017-12-13 11:12 lydstory 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 线程 和 事件中 变量 not captured 把变量定义为 static 或者添加为全局变量(放在main之前) 阅读全文
posted @ 2017-12-13 11:09 lydstory 阅读(76) 评论(0) 推荐(0) 编辑

2017年12月11日

摘要: #include <stdio.h>#include <stdlib.h>int main(){ char ch = 'a'; int tmp =(int)ch; if( ch == *(char*)&tmp) printf("little end"); else printf("big end") 阅读全文
posted @ 2017-12-11 13:18 lydstory 阅读(74) 评论(0) 推荐(0) 编辑

2017年12月8日

摘要: 选择捕获--》选中本地连接 输入协议端口 例如udp port 909 阅读全文
posted @ 2017-12-08 18:14 lydstory 阅读(59) 评论(0) 推荐(0) 编辑
摘要: mstsc 可以把本地驱动器 挂载到服务器上 阅读全文
posted @ 2017-12-08 17:55 lydstory 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/binbinjx/p/5626916.html 1. 添加头文件目录INCLUDE_DIRECTORIES 语法: 它相当于g++选项中的-I参数的作用,也相当于环境变量中增加路径到CPLUS_INCLUDE_PATH变量的作用。 2. 添加需 阅读全文
posted @ 2017-12-08 14:24 lydstory 阅读(440) 评论(0) 推荐(0) 编辑

导航