摘要: 函数指针可以将函数作为函数的参数,对函数的参数设置想要的操作 void PrintValue(int value){ std::cout<<value<<std::endl; } void ForEarch(const std::vector<int>& v,void(*funtion)(int)) 阅读全文
posted @ 2023-09-20 20:57 iu本u 阅读(10) 评论(0) 推荐(0)
摘要: #define LOG(x) std::cout<<"Hello"<<std::endl; 在项目属性的c++->Preprocesser(预处理)->Preprocesser Define中添加DR_MODULE,将configuration模式调为release #ifdef DR_MODULE 阅读全文
posted @ 2023-09-20 17:06 iu本u 阅读(131) 评论(0) 推荐(0)
摘要: 元组tuple;#include<tuple> std::tuple<std::string,istd::string,nt>sources; std::get<0>sources,std::get<1>sources; pair std::pair<std::string,std::string> 阅读全文
posted @ 2023-09-20 15:43 iu本u 阅读(19) 评论(0) 推荐(0)