2005-12-26 構造体のコンストラクタ C++ struct card { char rank; char suit; card(char r, char s): rank(r), suit(s) { } }; card c = card('K', 'H');便利。