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";
(しかし、実際には、グーグル...)