Linux??c/c++???????????????????
???????????? ???????[ 2013/10/10 11:21:50 ] ????????
?????????????е???????????????????????淶??????????????????????????????????????c/c++?????????Щ???????????????????????????? Java??.Net??php/python/perl/shell????????????Щ??????????????????????????????????????????????????Щ?????????????C++?????????β???????????????????????????????
?????????????÷???
??????Linux???c/c++??????????gcc/g++????????????????????????????????????????Makefile????Scons????????????????????????
???????????????? -fprofile-arcs -ftest-coverage ???? –coverage;
???????????????? -fprofile-arcs ???? –lgcov;
??????–g3 ??????-O2?????????????????;??????????????????Щ??????????к???????????и???????;
?????????????????????????????飬?????????????????????ò????????????????(???????????????????Ч??)???????makefile??????????????????????????????????makefile????????????
????ifeq ($(coverage)?? yes)
????CXXFLAGS += -fprofile-arcs -ftest-coverage
????LINKERCXX += -fprofile-arcs -ftest-coverage
????OPT_FLAGS = -g3
????endif
????????????????? make coverage=yes ????????Щ????????????????????????(scons???)??
?????????????
????????д???????????????????????????????????Rectangle.cpp?? RectangleTest.cpp?? Makefile??
????1)Rectangle.cpp ???????????漲?????????????Rectangle(??????)??????????????????
????set_values()?????ó????ζ????????;
????area()???????ε????;
????lenth()???????ε????;
????2)RectangleTest.cpp ??????????????????demo????????????cppunit/gtest???????????????????????main()??????????Rectangle????????;
????Rectangle.cpp??RectangleTest.cpp????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11