C++ 内联函数 inline
摘要:
宏定义实现和普通函数实现: - 宏定义是直接在实现的时候进行代码替换,可能产生结果异常问题。 - 普通函数实现:调用函数进出函数体的时候时间开销可能过大。 1 #include <iostream> 2 using namespace std; 3 //宏实现 4 #define GETMAX(a, 阅读全文
posted @ 2023-12-04 17:03 廿陆 阅读(12) 评论(0) 推荐(0) 编辑