一星为基础题,五星为工业应用题;星级越高,难度越大;不一定要做完所有题,差不多就可以进入下一章,反复迭代
共 1 条结果 ( 每页 10条 )
章节:
第1章 C++语言入门
难度: ★ 1
题目:
答案
难度: ★ 1
题目:
画出心菱形和和爱心描述:
*
***
*****
*******
*****
***
*
** **
* * * *
* * *
* *
* *
* *
* *
*
提示
用cout及相应的空格
#include <iostream>
using namespace std;
int main()
{
cout<<" *"<<endl;
cout<<" ***"<<endl;
cout<<" *****"<<endl;
cout<<" *******"<<endl;
cout<<" *****"<<endl;
cout<<" ***"<<endl;
cout<<" *"<<endl;
cout<<endl;
cout<<endl;
cout<<" ** **"<<endl;
cout<<" * * * *"<<endl;
cout<<" * * *"<<endl;
cout<<" * *"<<endl;
cout<<" * *"<<endl;
cout<<" * *"<<endl;
cout<<" * * "<<endl;
cout<<" *"<<endl;
return 0;
}