dev-c++ - 为何我C++中'\0'在控制台输出的时候变成a了?
巴扎黑
巴扎黑 2017-04-17 14:55:32
0
3
402
巴扎黑
巴扎黑

reply all(3)
左手右手慢动作

Your code is fine, just close another file. Also don’t use DEVCPP, change to VS or use Linux+GCC directly.

大家讲道理

devcpp is very suitable for algorithm questions. It is much smaller and can be used with the latest gcc version. I used to use it often. The vs2015 community is too big. It takes more than 20G to install the hard disk.
Can you try printf("%c",a) first?
It may be related to the code page set by your system. You right-click the title bar of the cmd window and go in to see what the system encoding is. Or open a command line window, type chcp and press Enter, and post the results

Peter_Zhu

If such an unscientific thing happens, post L1-011.cpp as well.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template