#include <iostream>#include<cstring>using namespace std;
int main(){
string word="?ate";
for(char ch='a';word!="mate";ch++) 这一句 的char换成了string后就提示错误了????是怎么回事啊?
{
cout<<word<<endl;
word[0]=ch; }
cout<<"After loop ends,word is "<<word<<endl; return 0;}