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.
让
const char cstring[] = "cstringline";
如何更改上述代码,以在编译时附加 CRLF 即声明?
Unix 行尾:
const char str[] = "foobarbaz\n";
旧版 Mac 行尾:
const char str[] = "foobarbaz\r";
Windows 行尾:
const char str[] = "foobarbaz\r\n";
(但实际上,谷歌......)