1. 程式人生 > >C++ strcmp對比函式

C++ strcmp對比函式

#include <cstring>

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