Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
if(c.get_name(&name) && name && !strcmp(name, contName))
有人可以告诉我这条线在 C++ 中的含义吗
如果c有一个名字并且它等于contName然后......
c
contName
如果c有名字 - c.get_name(&name) && name- 获取c名字并确保它存在。 它等于contName - && !strcmp(name, contName)-strcmp返回 0 表示相等。
c.get_name(&name) && name
&& !strcmp(name, contName)
strcmp