我需要爲Qt中的C++字符串創建switch/case語句的等價物。我相信最簡單的方法就是這樣(僞代碼) enum colours { red, green, blue }; QString array[] colour_names = {
確定! 回上一頁