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.
我一直想知道,当您定义诸如字符串(或与此相关的任何内容)之类的东西时,为什么人们要在定义的名称前加上“k”?
例如#define kHello = @"Hello"
#define kHello = @"Hello"
那个“k”是什么意思?
我很确定“k”是常数的缩写。(不要问我为什么是k。)