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.
このコードのどこが間違っていますか? コレクションやベクターなどではなく、string* を使用して動的文字列配列を作成したいと考えています。
int abc = 4; string* abcdef = new string[abc]; for (int i = 0; i < abc; i++) { cin >> abcdef[i]; }
エラーは発生しませんが、入力したデータが VS2012 のローカル ボックスに表示されません。
よろしく