apt install valgrind. Compile C++ program: g++ -std=c++11 main.cpp foo.cpp -g. 一定要加 -g flag !!!否則看不到哪行問題@.@. 執行Valgrind:.
確定! 回上一頁