windows 的换行符是 '\n\r'
by Trinitrotoluene @ 2020-04-14 12:39:22
你在IDE里面运行就知道了
by Trinitrotoluene @ 2020-04-14 12:40:46
Windows是'\n'
Linus才是'\n\r'
![](![](https://cdn.luogu.com.cn/upload/image_hosting/0y2b12in.png))
by cp152 @ 2020-04-14 16:07:23
![](https://cdn.luogu.com.cn/upload/image_hosting/0y2b12in.png)
by cp152 @ 2020-04-14 16:07:54
@[Trinitrotoluene](/user/141555) 哦哦 谢谢
by liyuxuanzzz @ 2020-04-14 21:42:51
@[123陈皮](/user/171544) 知道了 谢谢
by liyuxuanzzz @ 2020-04-14 21:43:11
以后c++用到换行就使用endl,编译器会自动帮你目标环境的换行符
by 21wang12 @ 2020-04-16 18:09:35