上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 259 下一页
摘要: import std.stdio; struct A { static int[string] impl; static this() { impl = [ "a": 1, "b": 2, ]; } int opApply(scope int delegate(string a, int b) dg 阅读全文
posted @ 2022-10-25 10:45 zjh6 阅读(14) 评论(0) 推荐(0)
摘要: 原文 在四个条件下会出错: import std.stdio; import std.datetime; alias T = real; // 必须为'real' enum testCount = 7; // 必须> 6 T foo() { // 必须返回值 return 42; } void ma 阅读全文
posted @ 2022-10-25 09:35 zjh6 阅读(17) 评论(0) 推荐(0)
摘要: 原文 重载路径: struct Path { string value; Path opBinary(string op)(in string path) if(op == "/") { import std.path : buildPath; return Path(buildPath(value 阅读全文
posted @ 2022-10-25 09:26 zjh6 阅读(15) 评论(0) 推荐(0)
摘要: 基类: 元<类 M,类 N=默认并> 构 A{ 空 动作(){ ... N::并(参数); ... } }; 现在,添加个新策略类,也可有默认策略,在N=默认并中.然后,我们目的是实现N::并函数. 这里并函数,为静态函数. 构 C{ 单 串 首,尾; 静 空 切换(串&a,串&b){首=a;尾=b 阅读全文
posted @ 2022-10-24 23:11 zjh6 阅读(17) 评论(0) 推荐(0)
摘要: 元<别名 F,类...T>空 gg(F&f,T&...t){ 断定(f(t)&&...); } C++没有别名,不能实现上面的功能,因为推导不出来!可是,C++会服输吗? 不会!因为C++有万能的宏!一宏在手,天下我有! #define 连与(F) \ 元<类...T>极 多##F(T&&...t) 阅读全文
posted @ 2022-10-24 22:38 zjh6 阅读(18) 评论(0) 推荐(0)
摘要: 导入 标.标口; //整 h(整 I)(串 b){中 I*b.长度;} 整 h(T)(T b){中 b.长度;} 空 g(用 h,T...)(T t){ 每一(p;t)写行(h(p)); } 空 主(){ 串 a="ab",b="cd"; g!h(a,b); } 这里C++版本,是编译不过的.C++ 阅读全文
posted @ 2022-10-24 22:04 zjh6 阅读(14) 评论(0) 推荐(0)
摘要: 就问你怕不怕! 我明明启动的时候就禁止自动更新服务了,可是又启动了! 先,1,组策略禁止自动更新 2,禁止自动安装驱动 这里又有问题,自从点了power tool这个软件,给你更新驱动,解决不完的问题! 这个组策略现在也变成英文的了.真是恶心! 你用别人的软件,永远不知道他的下一个坑在哪里! 这个教 阅读全文
posted @ 2022-10-24 16:52 zjh6 阅读(84) 评论(0) 推荐(0)
摘要: #IfWinActive ahk_exe 360chrome.exe ^LAlt::谷哥翻译() #IfWinActive ;要求屏幕最大, #IfWinActive ahk_exe msedge.exe ^LAlt::腾讯翻译() #IfWinActive 根据不同的应用名,对同一按键实现相同功能 阅读全文
posted @ 2022-10-24 15:27 zjh6 阅读(20) 评论(0) 推荐(0)
摘要: html,body,html h1,html p,html div,span,li a,h2,h3,h4,h5,strong,section{ font-family:simsun!important; //这是新宋,因为楷体对应的英文不好看. } font,.post-text.markdown{ 阅读全文
posted @ 2022-10-24 14:57 zjh6 阅读(13) 评论(0) 推荐(0)
摘要: d复制与原位排序 enum Direction { asc, desc } enum InPlace : bool { no, yes } ref Arr sort(ref Arr arr, Direction dir, InPlace inPlace = InPlace.no) { if (inP 阅读全文
posted @ 2022-10-24 14:29 zjh6 阅读(43) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 259 下一页