C++ でのプログラミングに戻りました。私が得るエラー:
送信されたメンバ begin のリクエストは、非クラス タイプの char[30] です
送信されたメンバー end の要求は、非クラス型の char[30] です
char sent[] = "need to break this shiat down";
for(vector<string>::iterator it=sent.begin(); it!=sent.end(); ++it){
if(*it == " ")
cout << "\n";
else
cout << *it << endl;
}
文字を文字列に変更するか、ベクトルを別の方法で定義する必要がありますか?