本题考察换行的应用:可用转义字符\n,或者endl.
#include<iostream> using namespace std; int main() { cout<<"zhe\n"<<"shi\n"<<"yi\n"<<"dao\n"<<"qian\n"<<"dao\n"<<"ti"; }
#include<iostream> using namespace std; int main() { cout<<"zhe"<<endl<<"shi"<<endl<<"yi"<<endl<<"dao"<<endl<<"qian"<<endl<<"dao"<<endl<<"ti"; }