95 回答
精慕门5413198
TA贡献2条经验 获得超0个赞
231231231223
if (REPLACE == null) { synchronized (GoogleTranslator.class) { if (REPLACE == null) { System.out.println("initial REPLACE"); List<String> s = FileUtil.readLines("D:\\imooc\\mongo-demo\\src\\main\\java\\com\\kit\\mytranslate\\Replace.csv", Charset.defaultCharset()); REPLACE = new HashMap<>(); for (String s1 : s) { String[] split = s1.split("@@@"); REPLACE.put(split[0], split[1]); } } } }
Rain_no_callback
TA贡献2条经验 获得超0个赞
typedef enum{ BEAUTIFUL = 0, NORMAL = 1, UGLY = 2, TOO_UGLY = 3 }UGLI_LEVEL; cout<< "please refer to this website to do face detect:" << endl; cout << " << endl; if (result == BEAUTIFUL) { cout << " You are right for superstars" << endl; } else if (result == NORMAL) { cout << "You are normal, choose what you want except programmer" << endl; } else if (result == UGLY){ cout << "You are right for programming!!!" << endl; } else { // result == TOO_UGLY cout << "该回炉深造了!!!" << endl; }
添加回答
举报
0/150
提交
取消