摘要: #include <functional>#include <iostream> void f(int& n1, int& n2, const int& n3){ std::cout << "In function: " << n1 << ' ' << n2 << ' ' << n3 << '\n' 阅读全文
posted @ 2017-11-14 21:27 戴怪兽 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 转换一个数变成8进制,则为 cout << oct << x << endl; 转换一个数变为16进制,为 cout << hex << x << endl; 阅读全文
posted @ 2017-11-14 21:10 戴怪兽 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 一个简单的并发编程的举例 #include <iostream> #include <thread> using namespace std; void hello(){ cout << "Hello Concurrent World\n"; } int main(){ thread t(hello 阅读全文
posted @ 2017-11-14 20:05 戴怪兽 阅读(176) 评论(0) 推荐(0) 编辑