如果我們使用的編譯器是GCC 或者Clang,我們能以 -Wimplicit-fallthrough 開啟警告:. $ g++ -std=c++17 fallthrough_example.cpp ...
確定! 回上一頁