转载于https://geng.cz/archives/124.html,作者:纯真。 如果使用cout,加上<< endl就能在“终端”选项卡输出; 如果使用printf,在格式串末尾加上\n就能在“终端”选项卡输出;