Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
文字列型の typedef 項目がある場合、cout を使用してどのように出力できますか? 「 typedefItemTypeから文字列に変換できません」というメッセージが表示され続けます。
typedef string MyStrings[2]; ... MyStrings names = { "Brandon", "Programmer" }; for(int i = 0; i < sizeof(names) / sizeof(string); i++) { cout << names[i] << endl; }