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