if声明看起来太尴尬,因为我需要增加常数的可能性.很抱歉让你因为"常数"而不是我的意思而陷入妄想.
if
c++ string compare constants
当我试图在.h文件中声明一个带有字符串参数的函数时,会发生错误.我没有忘记包含string.h =)当我使用char []时,一切都很好,但我希望参数是一个字符串.
c++ declaration function
c++ ×2
compare ×1
constants ×1
declaration ×1
function ×1
string ×1