yiGmMk / comment_blog

the comments of www_programnotes_cn
0 stars 0 forks source link

docs/Qt/ | ProgramNotes #25

Open yiGmMk opened 4 years ago

yiGmMk commented 4 years ago

https://www.programnotes.cn/docs/Qt/

OpenCV;Halcon;Qt;tensorflow

yiGmMk commented 4 years ago

https://www.cryfeifei.cn/652.html 记录一下

yiGmMk commented 4 years ago

(-1或一个数(0也一样)还是-1,int类型-1 二进制是FFFF FFFF)

yiGmMk commented 4 years ago

无法定位序数XX于XXXX.DLL: 1.dll中函数未导出 2.使用的dll不是最新版本,重新生成dll可解决

yiGmMk commented 4 years ago

auto key=[](int x) -> int{return -x;}; int i=key(1);

BinarySearch: int binary_search(MountainArray &mountain, int target, int l, int r, int key(int)) { std::cout<<"target="<<target<<std::endl; target = key(target); std::cout<<"key target="<<target<<std::endl;

    while (l <= r) {
        int mid = (l + r) / 2;
        int cur = key(mountain.get(mid));
        if (cur == target)
            return mid;
        else if (cur < target)
            l = mid + 1;
        else
            r = mid - 1;
    }
    return -1;
}
yiGmMk commented 4 years ago

动态布局:应先等界面都创建完再去获取窗口的位置=>再次布局,OnSize消息

yiGmMk commented 4 years ago

类成员列表初始化,子类初始化父类非静态成员,

yiGmMk commented 4 years ago

Class CDerive:public CBase { CDerive(unsigned int i); } CDerive::CDerive(unsigned int i):CBase(i) {

}

yiGmMk commented 4 years ago

俄罗斯方块告诉我们,成功会消失,错误会积累。贪吃蛇告诉我们,越到后面越危险,最大的敌人是自己。愤怒的小鸟告诉我们,当我们失败的时候,嘲笑我们的,都是猪!

yiGmMk commented 4 years ago

主程序中的头文件和界面相关时不要在其他模块中引用,尽量单独封装成dll使用