C++ strcmp对比函数

#include <cstring>

char word[5] = "?ate";
for (char ch='a';strcmp(word,"mate");ch++)
{
    cout<<word<<endl;
    word[0]=ch;
}

猜你喜欢

转载自blog.csdn.net/luo809976897/article/details/84563430
今日推荐