上一页 1 ··· 156 157 158 159 160 161 162 163 164 ··· 259 下一页
摘要: import std.stdio; struct C(D){ D d; } void f(alias A,B)(A!B a){ writeln(a.d); }//A,却是可以 void main() { C!int a; C!long b; a.d=20; b.d=10; //f!(C,int)(a 阅读全文
posted @ 2021-03-11 17:39 zjh6 阅读(27) 评论(0) 推荐(0)
摘要: #include <常用> 元<类 A,元<类 A>类 C> 空 测试(C<A>&b){ } 构 A{整 x;}; 空 主(){ 向量<整>a;向量<A>b; //测试(a,b); 测试(b); } 同样有问题: #include <常用> 元<类 T,元<类 B>类 C> 空 测试(){} 元<类 阅读全文
posted @ 2021-03-11 17:17 zjh6 阅读(18) 评论(0) 推荐(0)
摘要: import std.stdio; extern(C++) class C { bool onStack; this(bool onStack) { this.onStack = onStack; } ~this() { writeln("Destroying ", onStack? "stack" 阅读全文
posted @ 2021-03-11 10:48 zjh6 阅读(6) 评论(0) 推荐(0)
摘要: 主要有:1,文件名映射至唯一文件名,不要重名(麻烦). 2,对为0大小,不要翻译. 3,去超传格式. 4,各种整理格式. 5,文件名==>反映射回来. 1个py开始调用.1个crx插件保存.修改js时一定要重新刷新一下. 就是动作太慢.还是不爽. 阅读全文
posted @ 2021-03-10 11:16 zjh6 阅读(15) 评论(0) 推荐(0)
摘要: alias maximumWealth = pipe!(map!sum, maxElement); 上面是d版,下面是rust: pub fn maximum_wealth(accounts: Vec<Vec<i32>>) -> i32 { accounts.iter() .map(|x| x.it 阅读全文
posted @ 2021-03-09 20:26 zjh6 阅读(9) 评论(0) 推荐(0)
摘要: import std.stdio; @safe: extern(D) { abstract class DA { char foo(); } class DB : DA { override char foo() { return 'B'; } } class DC : DA { override 阅读全文
posted @ 2021-03-09 10:21 zjh6 阅读(12) 评论(0) 推荐(0)
摘要: 作者:deadalnix 原地址 dip1040很好的提议.我2019年就给W,A,A发送邮件了,内容见下. 包含微妙而重要的点,特别是: 1,移动后,参数无效,且未析构 2,移动精移(EMO),表明也转移了析构权. emo(精心构造的移动对象,具移动构造与移动赋值函数). 我当时强调了,其对二进口 阅读全文
posted @ 2021-03-07 18:32 zjh6 阅读(13) 评论(0) 推荐(0)
摘要: 如题,罗技的产品都还不错. 但是,有个坑啊,如K120键盘,真是物美价廉. 但,我最近坏了,不得不买个键盘,结果淘了个假K120.打字时,就有感觉,与原来的不一样. 我原来的K120,轻快,轻巧,使力也轻. 而这个键盘,打字沉闷,根本不一样,感觉不爽.后来仔细检查了键盘实物,与K120感觉一样,但包 阅读全文
posted @ 2021-03-07 11:55 zjh6 阅读(96) 评论(0) 推荐(0)
摘要: 开源的意义在哪? 为了别人来评判你的能力?难道,你说几句话,别人还看不出你的能力?要鉴定一个人的能力,难得很? 提高编程能力?提高编程能力,需要开源吗?各种知识点的讲解需要开源吗? 提高知名度?你的知名度有啥意义?打广告?证明自己?没意义啊.就像写程序书一样,不是因为你的开源,我找到你,而是因为你的 阅读全文
posted @ 2021-03-07 11:13 zjh6 阅读(18) 评论(0) 推荐(0)
摘要: 原来配置为: RarelyPhrase =` //改为 RarelyPhrase =禁用 RarelyPhrase =~ //可以试试改为~键,毕竟这个用得少. 这样,以后输入反引就快得多了.实在是爽. 参考地址 在极点中,可以在4个之后还有重复的,通过Ctrl+Shift+序号来设置(切换)该词为 阅读全文
posted @ 2021-03-06 22:11 zjh6 阅读(33) 评论(0) 推荐(0)
上一页 1 ··· 156 157 158 159 160 161 162 163 164 ··· 259 下一页