2009-07-08から1日間の記事一覧
サッカーリーグの勝ち点を求める問題。 std::stringとcharのキャストにとまどる。 俺アホだな。 #include <string> #include <vector> using namespace std; class SoccerLeagues{ private: int getHome(char s){ string str =""; str += s; if (str == "W"){ return 3; }els</vector></string>…