摘要: 问题:初次使用命令行genstrings,提示使用的是命令行工具而非xcode,无法直接使用genstrings。 解决方案:命令行输入sudo xcode-select --switch /Applictions/Xcode.app/Contents/Developer 原因:当前xcode-se 阅读全文
posted @ 2018-08-11 12:15 冯耀耀 阅读(277) 评论(0) 推荐(0)
摘要: 1、一个正则表达式,只含有汉字、数字、字母、下划线不能以下划线开头和结尾:^(?!_)(?!.*?_$)[a-zA-Z0-9_/u4e00-/u9fa5]+$ 其中:^ 与字符串开始的地方匹配(?!_) 不能以_开头(?!.*?_$) 不能以_结尾[a-zA-Z0-9_/u4e00-/u9fa5]+ 阅读全文
posted @ 2018-07-16 21:51 冯耀耀 阅读(283) 评论(0) 推荐(0)
摘要: class MyLineEdit : public QLineEdit { Q_OBJECT public: MyLineEdit(QWidget * parent = 0) : QLineEdit(parent) {} ~MyLineEdit(){} protected: virtual void 阅读全文
posted @ 2018-07-06 15:07 冯耀耀 阅读(3902) 评论(0) 推荐(0)
摘要: 对于以下几种选择: (1)点云; (2)线框; (3)网格; 针对以上准备三个函数: (1)获取点和线段最短距离函数; (2)获取线段和线段最短距离函数; (3)获取三角面片和线段最短距离函数; 算法: (1)2D鼠标点转换为远近平面上的鼠标点,获得鼠标线段; (2)通过计算获得所有与鼠标线段距离在 阅读全文
posted @ 2018-07-04 14:08 冯耀耀 阅读(398) 评论(0) 推荐(0)
摘要: pButton->setAutoDefault(false); 阅读全文
posted @ 2018-07-03 17:55 冯耀耀 阅读(680) 评论(0) 推荐(0)
摘要: 设置正则表达式. 类似下面的 QRegExp 这里的用法就是用来检测QString等字符串错误的,例如文件名里面最好就不出现<>|/\:等,所以可以如下定义QRegExp rx("[a-zA-Z0-9\-\\\_]{25}"); 25就是所输入的字符串个数!a-z当然就是a-z,你也可以abcdef 阅读全文
posted @ 2018-07-03 13:52 冯耀耀 阅读(10274) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/qiaoconglovelife/p/5851163.html 阅读全文
posted @ 2018-06-29 18:46 冯耀耀 阅读(299) 评论(0) 推荐(0)
摘要: http://www.mycppquiz.com/list.php http://www.codelect.net/TestDetails/Cplusplus-Senior-Level-Test http://careerride.com/c++-practice-test-quiz.aspx ht 阅读全文
posted @ 2018-06-29 17:13 冯耀耀 阅读(421) 评论(0) 推荐(0)
摘要: #include<iostream> int main(){ char ch; std::cout << "Type, and I shall repeat.\n"; std::cin.get(ch); while (ch != '.') { if (ch == '\n') std::cout << 阅读全文
posted @ 2018-06-27 01:51 冯耀耀 阅读(529) 评论(0) 推荐(0)
摘要: 上:https://www.cnblogs.com/CarpenterLee/p/5503882.html 下:https://www.cnblogs.com/CarpenterLee/p/5525688.html 阅读全文
posted @ 2018-06-25 14:15 冯耀耀 阅读(115) 评论(0) 推荐(0)