函数版星号图1
来源:互联网 发布:淘宝店铺运营方案ppt 编辑:程序博客网 时间:2024/05/28 05:16
/* * Copyright(c) 2014,烟台大学计算机学院 *All right reserved. *文件名称:text.cpp *作者:杨旭 *完成日期:2014年11月10日 *版本号:v1.0 * *问题描述:通过调用函数输出星号图 *输入描述:无 *程序输出:星号图 */#include <iostream>using namespace std;void printchs(int n,char m);int main(){ int i; for(i=1;i<=7;i++) { printchs(7-i,' '); printchs(2*i-1,'*'); cout<<endl; } return 0;}void printchs(int n,char m){ int j; for(j=1;j<=n;j++) { cout<<m; }}
运行结果:
0 0
- 函数版星号图1
- 函数版星号图
- 函数版星号图
- 函数版星号图
- 函数版星号图
- 函数版星号图
- 1-11-1 - 函数版星号图
- 星号图函数版1
- 函数版星号图(1)
- 星号图函数版2
- 星号图函数声明版
- 编程:函数版星号图
- 函数版星号图二
- 函数版星号图2
- 星号图1(函数)
- 第11周项目1函数版星号图(1填充程序输出星号图)
- 第11周项目1-函数版星号图(4)输出以前的星号
- 编程:函数版星号图 printchs函数
- GDAL源码剖析(七)之GDAL RasterIO使用说明(续)
- IOS硬件信息采集汇总
- java枚举类型enum的使用
- 设计模式学习--适配器
- 【C#】与C及OC的不同点
- 函数版星号图1
- 圆形 圆角ImageView
- Android启动过程深入解析
- error LNK2005; VC6工程引入.lib时链接出错
- [LeetCode] Remove Element
- 超市通:如何实现积分换购现金?
- Tripleo之nova-compute 和Ironic的代码深入分析(一)
- bootstrap 时间控件
- Perforce Can't clobber writable file ************** 解决方法