首页
艺搜天下---纯净互联网,让每一个页面都有价值!
取消

资讯系列1:5年期LPR降到3.95

2月20日,下调25个基点,意味着买新房的可以直接享受,老房子要明年1月1日或按合同签订日调整。 交行app里面的利率调整方式为按年,即表示合同签订日才会调整。 长沙是在LPR基础上减20个基点,即3.75

AI系列5:Sora介绍

是一个文字生成视频的模型,可以生成1分钟的高清视频,在 https://en.wikipedia.org/wiki/Sora_(text-to-video_model) 页面有一个生成的视频示例,可以看看效果。 是openai公司开发的,在2024年2月15日发布 其它类似模型有 Meta’s Make-A-Video, Runway’s Gen-2, and Google’s Lumi...

C++系列17:map与pair

pair #include <utility> // std::pair, std::make_pair pair <string,double> product1; // default constructor pair <string,double> product2 ("tomatoes", 2.3...

C++系列16:enable_shared_from_this

是个模板类 template< class T > class enable_shared_from_this; 能让一个对象(假设为t,已被一个std::shared_ptr 对象 pt 管理)安全地生成新的 std::shared_ptr 实例(假设名为 pt1, pt2, ... ) ,它们与 pt 共享对象 t 的所有权。 若一个类T继承 std::enable_s...

一天一个Qt类系列3:QVariant

使用canConvert判断能否转换 QVariant v = 42; v.canConvert<int>(); // returns true v.canConvert<QString>(); // returns true 但要注意canConvert返回true,不一定就能调用convert成功。只有同时为tru...

C++系列15:any

可以保存任意类型的值,类似Qt的QVariant if (a.type() == typeid(std::string)) { std::string s = std::any_cast<std::string>(a);//使用any_cast<该值的类型>来获取值 useString(s); } else if (a.type() == type...

Qt官方示例解析系列11:状态机Ping Pong States

使用了自定义的events 和 transitions 是并行状态,可以各自独立地进行转换。 The pinger state will post the first ping event upon entry; the ponger state will respond by posting a pong event; this will cause the pinger state ...

C++系列14:constexpr

static constexpr QEvent::Type PingEventType = QEvent::Type(QEvent::User + 2); const并未区分出编译期常量和运行期常量 constexpr限定在了编译期常量 All constexpr variables are const const表示的是read only的语义,constexpr才是名符其实的常量...

Qt系列2:状态机框架介绍

分层状态机 大状态机包含小状态机,小状态机里面有各种状态。小状态机作为一个整体。 下面介绍一下Qt状态机框架 状态之间的转换可以由信号触发 相关类: QHistoryState :Means of returning to a previously active substate 返回先前活动子状态的方法 QStateMachine:Hierarchical finite stat...

Docker系列1:常用操作

安装 curl -sSL https://get.daocloud.io/docker | sh #国内 curl -sSL https://get.docker.com/ | sh systemctl enable docker && systemctl start docker 运行 docker run -d -it -p 80:80 --privileged=tru...