摘要:
``` //指定波长转换成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 && ... 阅读全文
摘要:
PRO 文件中加入以下语句即可 阅读全文
摘要:
qt 存储模版路径位置: 在里面随意复制一个模版,修改三项即可在 qt 中显示该模版, 分别是 `description displayname` 随意修改不和以有的项目模版重复即可,然后重新启动 Qt Creator ,即可加载该模版。 更多修改请自行参考 qt 官方模版 VS 创建模版,直接使用 阅读全文
摘要:
属性 》调试 》命令行参数 阅读全文
摘要:
``` 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... 阅读全文
摘要:
``` #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; //格式... 阅读全文
摘要:
``` #include #include class Timer { public: Timer() :running_(false), has_run_at_least_once_(false) { } virtual ~Timer() { } virtual void Start() { if (!running()) { start_cpu_ = ... 阅读全文
摘要:
三部曲 1 数据表导出 表格 2 另存为 格式文件 3 数据库导入 文件 阅读全文
摘要:
``` 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 阅读全文
摘要:
注册表结构? |Keys|Abbreviation|Description|描述| | | | | | |HKEY_CLASSES_ROOT|HKCR|Stores file association and COM object registretion|存储文件关联和COM对象注册| |HKEY_ 阅读全文