当前位置:编程学习 > C/C++ >>

strcmp in C++

char AgentID[256];

sprintf(AgentID,"deng");

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

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

作者loveheronly
补充:软件开发 , C++ ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,