1 在c++中 回车无法被print出来 想要print必须使用endl
#include using namespace std; int main() { cout << " ** "<< endl << " ** "<< endl << "" <<endl << "" <<endl << " * *" <<endl << " * * " <<endl; return 0; }
并且需要注意上下<<的对齐 以正确地输出正确的形式
1 在c++中 回车无法被print出来 想要print必须使用endl
#include using namespace std; int main() { cout << " ** "<< endl << " ** "<< endl << "" <<endl << "" <<endl << " * *" <<endl << " * * " <<endl; return 0; }
并且需要注意上下<<的对齐 以正确地输出正确的形式