上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页
摘要: ``` //指定波长转换成RGBA颜色 std::vector lambdaToColor(double lambda,double gamma = 0.8,double intensityMax = 255.0) { double r, g, b, alpha; if (lambda >= 380.0 && lambda = 440.0 && lambda = 490.0 && ... 阅读全文
posted @ 2018-06-14 09:20 學海無涯 阅读(2985) 评论(0) 推荐(1) 编辑
摘要: PRO 文件中加入以下语句即可 阅读全文
posted @ 2018-06-12 15:56 學海無涯 阅读(645) 评论(0) 推荐(0) 编辑
摘要: qt 存储模版路径位置: 在里面随意复制一个模版,修改三项即可在 qt 中显示该模版, 分别是 `description displayname` 随意修改不和以有的项目模版重复即可,然后重新启动 Qt Creator ,即可加载该模版。 更多修改请自行参考 qt 官方模版 VS 创建模版,直接使用 阅读全文
posted @ 2018-06-12 09:10 學海無涯 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 属性 》调试 》命令行参数 阅读全文
posted @ 2018-05-29 21:35 學海無涯 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: ``` package main import ( "fmt" "net/http" "log" "html/template" ) func main () { //实例化一个 HTTP app := http.NewServeMux(); app.HandleFunc("/",func(w http.ResponseWriter,r *http.Request){ sw... 阅读全文
posted @ 2018-05-28 15:17 學海無涯 阅读(324) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include #include #include #include #include static void dbg(const char *fmt, ...) { //获取时间并减去 8 小时时差 struct timespec ts; timespec_get(&ts, TIME_UTC); ts.tv_sec += 28800; //格式... 阅读全文
posted @ 2018-05-26 13:32 學海無涯 阅读(523) 评论(0) 推荐(0) 编辑
摘要: ``` #include #include class Timer { public: Timer() :running_(false), has_run_at_least_once_(false) { } virtual ~Timer() { } virtual void Start() { if (!running()) { start_cpu_ = ... 阅读全文
posted @ 2018-05-25 11:30 學海無涯 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 三部曲 1 数据表导出 表格 2 另存为 格式文件 3 数据库导入 文件 阅读全文
posted @ 2018-05-24 14:59 學海無涯 阅读(466) 评论(0) 推荐(0) 编辑
摘要: ``` cv::Mat longMap(std::vector &set) { int matNumber = set.size(); int width = set[0].cols; int height = set[0].rows; cv::Mat bigMap(height,width mat 阅读全文
posted @ 2018-05-22 19:02 學海無涯 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 注册表结构? |Keys|Abbreviation|Description|描述| | | | | | |HKEY_CLASSES_ROOT|HKCR|Stores file association and COM object registretion|存储文件关联和COM对象注册| |HKEY_ 阅读全文
posted @ 2018-05-07 16:23 學海無涯 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 21 下一页