strcmp in C++

来源:岁月联盟 编辑:exp 时间:2012-07-20
char AgentID[256];

sprintf(AgentID,"deng");

int strcpm=strcmp(AgentID,""); //The result is 1

strcpm=strcmp(AgentID,"deng");//The result is 0

作者loveheronly