摘要:
首先建立a.c, 为待优化的bin。 //a.c int fun(int x) { if(x>5) return x+1; else return x-1; } int main() { int ans = 0; for(int i=0; i<100000000; i++) ans += fun(i 阅读全文
摘要:
googletest的目录在的官方目录在https://github.com/google/googletest.git。 作为用户,googleTest的库可以认为提供了两个东西,头文件和库: 头文件中有各种宏。如TEST, TEST_F,通过#include "gtest/gtest.h",即可 阅读全文