会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
余生以学
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
36
下一页
2020年3月4日
VC++判断文件夹是否存在,不存在则创建文件夹
摘要: 方法挺多的,_access和_mkdir算是比较古典了,不过很好用。 #include <io.h> #include <direct.h> // 判断文件夹是否存在 bool IsDirExist(const char *pszDir) { if (pszDir == NULL) return f
阅读全文
posted @ 2020-03-04 14:06 余生以学
阅读(1400)
评论(0)
推荐(0)
2020年2月28日
没有可用的复制构造函数或复制构造函数声明为“explicit”
摘要: 没有可用的复制构造函数或复制构造函数声明为“explicit” std::vector<comInfo> vecComInfo; vecComInfo.push_back(comInfo); 在构造函数形参前加上const 社区中找到的例子: comInfo( const comInfo& copy
阅读全文
posted @ 2020-02-28 18:03 余生以学
阅读(1447)
评论(0)
推荐(0)
2020年2月26日
父窗口与拥有者窗口(Parent VS Owner)
摘要: Owner 在窗口创建时指定,以后不能更改。“一旦拥有,一直拥有”。 Parent 可以再创建时指定,以后可以更改。“父亲可以是继父”。 下面文字转自:http://www.cnblogs.com/cswuyg/archive/2012/07/09/2582186.html 一、 窗口的Parent
阅读全文
posted @ 2020-02-26 11:58 余生以学
阅读(2769)
评论(1)
推荐(1)
2020年2月24日
CProgressCtrl 显示
摘要: https://blog.csdn.net/milanleon/article/details/49705763 https://blog.csdn.net/weixin_42189863/article/details/84112555
阅读全文
posted @ 2020-02-24 11:11 余生以学
阅读(133)
评论(0)
推荐(0)
2020年2月21日
图片控件显示延迟
摘要: 图片控件,移动光标,选中效果有延迟; 原因:图片过大,显示位置过小,图片需要压缩处理,导致延迟,预先处理图片,使其与显示的位置一致,问题解决。
阅读全文
posted @ 2020-02-21 15:05 余生以学
阅读(151)
评论(0)
推荐(0)
2020年2月20日
OSG测试gl.h编译出错
摘要: 在测试OSG程序时, #include<osgViewer/Viewer> #include<osgDB/ReadFile>int main(){osgViewer::Viewer viewer;viewer.setSceneData(osgDB::readNodeFile("cow.osg"));
阅读全文
posted @ 2020-02-20 18:01 余生以学
阅读(853)
评论(0)
推荐(0)
谈谈C++中vector的删除
摘要: 在vector中有三种涉及删除的方法,第一种是vector::clear(),第二种是vector::erase(),第三种是vector::pop_back()。clear用来清空整个vector,同时将size变成0,无返回值;erase通过传入迭代器进行删除,既可以删除单个元素,也可以删除某一
阅读全文
posted @ 2020-02-20 10:54 余生以学
阅读(8752)
评论(0)
推荐(0)
2020年2月14日
fstream ifstream ofstream分块读写文件
摘要: fstream ifstream ofstream分块读写文件 #include <fstream> #include <algorithm> #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[])
阅读全文
posted @ 2020-02-14 14:37 余生以学
阅读(588)
评论(0)
推荐(0)
2020年2月12日
Reading Qt configuration (ERROR: Qt install dir not found\bin\qmake.exe)
摘要: Qt属性设置: Qt VS Tools 添加编译器: 1.打开Qt VS Tools 选择Qt Options: 2.点击Add: 3.version name处,填写编译器版本名字, Path填写路径: 4.点击OK, 完成!
阅读全文
posted @ 2020-02-12 12:40 余生以学
阅读(1687)
评论(0)
推荐(1)
2020年2月10日
问题集合
摘要: 1.如何保证分配内存失败时,不崩溃;
阅读全文
posted @ 2020-02-10 14:54 余生以学
阅读(84)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
36
下一页
公告