windows use the "\r\n" as the endline mark of one line. However linux just use the "\n" as the endline mark. So in the program sometimes we need to define the different end line mark according to the target platform.
#if defined(WIN32) || defined(_WIN32_WCE)
#define ENDLINE "\r\n"
#else
#define ENDLINE "\n"
#endif
沒有留言:
張貼留言