摘要: #include <iostream> #include <memory> template <typename T> class Interface { public: using SharedPtr = std::shared_ptr<T>; using WeakPtr = std::weak_ 阅读全文
posted @ 2023-10-08 17:37 爱弹钢琴的卡农 阅读(51) 评论(0) 推荐(0)
摘要: 直接上代码 #include <iostream> #include <map> class Base { public: virtual void hello() const = 0; }; class A : public Base { public: A() { std::cout << "A 阅读全文
posted @ 2023-02-22 10:54 爱弹钢琴的卡农 阅读(42) 评论(0) 推荐(0)
摘要: #include <wchar.h> #include <locale.h> int main() { wchar_t a[] = L"gcc编译然后运行"; wchar_t *b = L"ni"; setlocale(LC_ALL, "zh_CN.UTF-8"); wprintf(L"中文测试:% 阅读全文
posted @ 2022-07-27 10:51 爱弹钢琴的卡农 阅读(351) 评论(0) 推荐(0)
摘要: 原文链接Use RNDIS USB Dongle for WAN connection Use RNDIS USB Dongle for WAN connection RNDIS (Remote Network Driver Interface Specification) is ethernet 阅读全文
posted @ 2022-07-18 14:43 爱弹钢琴的卡农 阅读(1596) 评论(0) 推荐(0)
摘要: 移动光猫账号: CMCCAdmin 密码:aDm8H%MdA 桥接模式 root@CMCC-A1:~# cat /etc/config/network config interface 'loopback' option ifname 'lo' option proto 'static' optio 阅读全文
posted @ 2022-07-18 14:33 爱弹钢琴的卡农 阅读(646) 评论(0) 推荐(0)
摘要: 原文连接OPENWRT自定义挟持域名 - CSDN未验证 安装ebtables 路由器连接上网络 opkg update opkg install kmod-ebtables-ipv4 opkg install ebtables-utils 配置防火墙 使用ebtables将OSI二层数据重定向到O 阅读全文
posted @ 2022-07-18 14:23 爱弹钢琴的卡农 阅读(3843) 评论(0) 推荐(0)
摘要: PRAGMA table_info(TableName) 阅读全文
posted @ 2022-07-18 14:15 爱弹钢琴的卡农 阅读(107) 评论(0) 推荐(0)
摘要: 原文链接IPTV / UDP multicast IPTV / UDP multicast Lots of ISPs provide their users with an IPTV service, usually done via IPv4 UDP multicasting. This docu 阅读全文
posted @ 2022-07-18 14:02 爱弹钢琴的卡农 阅读(440) 评论(0) 推荐(0)
摘要: Pandoc 用法: pandoc -f dokuwiki -t gfm -o w.md -s 网络设置.wiki 阅读全文
posted @ 2022-07-18 13:56 爱弹钢琴的卡农 阅读(38) 评论(0) 推荐(0)
摘要: 原文连接:Network configuration [Old OpenWrt Wiki] 网络设置 OpenWrt的网络配置文件是/etc/config/network,它负责交换芯片VLAN、网络接口和路由的配置。 此文件在编辑和保存之后需要执行 /etc/init.d/network relo 阅读全文
posted @ 2022-07-18 11:56 爱弹钢琴的卡农 阅读(3481) 评论(0) 推荐(0)