摘要:
#include <functional>#include <iostream> void f(int& n1, int& n2, const int& n3){ std::cout << "In function: " << n1 << ' ' << n2 << ' ' << n3 << '\n' 阅读全文
摘要:
转换一个数变成8进制,则为 cout << oct << x << endl; 转换一个数变为16进制,为 cout << hex << x << endl; 阅读全文
摘要:
一个简单的并发编程的举例 #include <iostream> #include <thread> using namespace std; void hello(){ cout << "Hello Concurrent World\n"; } int main(){ thread t(hello 阅读全文