2011-04-13から1日間の記事一覧

ポインタ(多次元配列)の復習

char *p[4] = {"hogehiu", "jijkan", "ahbcd", "oiutui"} //OK 要素数が4になっていさえすれば、後は自動的に空間を確保してくれる. char (*p)[4] = {"hiu", "abv", "bin", "kon", "ggg", "zzn", "con", "com"}; // string *str[4] = {"aaa", "bbb", "ccc",…

SRM161 div2 500

Problem Statement You will be given a vector cars containing a list of strings that will participate in the Train. The Train is a string that will be built using the given strings. The building process works as follows: Train is initialize…