
示例
fqbqrr
这个作者很懒,什么都没留下…
展开
-
d整提升示例1
d整提升示例1原创 2022-10-27 09:20:05 · 105 阅读 · 0 评论 -
d重载操作符示例
d重载操作符示例原创 2022-10-25 09:26:04 · 115 阅读 · 0 评论 -
c++简单多线程示例
#include <常用> #include "列当目.cpp" 空 并(向量<线程>&们){对(动&p:们)p.加入();} 类 测试当前目录:单文件行处理{ 串 名{"当前目录.txt"}; 向量<线程>们; 公: 显 测试当前目录(){处理(名);} 空 行处理(串&行){ 线程 t(列当目,行);压(们,移动(t)); }//这个线程不支持多个重载 空 后处理(){并(们);原创 2020-11-15 14:37:02 · 305 阅读 · 0 评论 -
c++还不能串作为模板参数,d还不会搞.
void f(B...)(B b){ import std.stdio; foreach(i;b)writeln(i); } void main(){ string a="ggggggggbgg",b="bgg",c="gggg"; f(a,b,c); } //d语言不虚串为模板参数,c++还差点. 目前的c++还不行: 元<串...B>空 多查(B&...b){ 打印(b...); }//如果串能当模板参数 空 主(){ 串 a{"gg原创 2020-11-16 16:57:56 · 225 阅读 · 0 评论 -
windows协程示例
#include <iostream> #include <thread> #include <chrono> using namespace std::chrono_literals; #include <string> #include <future> std::future<std::string> remote_query(uint32_t query_index) { return std::async([query_原创 2020-11-17 16:05:12 · 479 阅读 · 0 评论