调用函数printchs输出星号图
来源:互联网 发布:app美图软件 编辑:程序博客网 时间:2024/06/05 12:35
. * Copyright (c) 2012, 烟台大学计算机学院 * All rights reserved. * 作 者: 李蒙 * 完成日期:2012 年 11 月 12 日 * 版 本 号:v1.0 * 输入描述: 调用函数输出星号图 * 问题描述:利用printchs()输出星号图 * 程序输出: * 问题分析: 略*算法设计:#include <iostream>using namespace std;void printchs(char c,int m){for(int j=1;j<=m;++j)cout<<c;}int main(){int n=6,i;for(i=1;i<=n;++i){printchs(' ',n-i);printchs('*',2*i-1);cout<<endl;}return 0;}
输出结果:
心得体会:趁热打铁!!!
- 调用函数printchs输出星号图
- 调用函数printchs输出星号图
- 调用函数printchs输出星号图。
- 调用函数printchs输出星号图
- 调用函数printchs输出星号图(2)
- 调用函数printchs输出锥形递增星号图
- 调用printchs函数输出星号图
- 调用函数printchs递增星号图
- 根据main函数中对printchs函数的调用,以及printchs的功能要求,编写printchs函数,使下面的程序能输出星号图:
- 第11周项目1(2)-printchs函数的调用(输出星号图)
- 第11周项目1-2调用函数printchs输出星号图
- 第十一周 项目一(2)调用函数printchs输出星号
- 编程:函数版星号图 printchs函数
- 第11周项目1-函数版星号图(2)调用printchs函数
- 第11周项目1 函数版星号图(2printchs函数的调用)
- 十二周上机任务二---用printchs函数输出星号图
- 第11周项目1-4用printchs函数输出学过的星号图
- 调用函数输出星号图。
- C#--第11周实验--任务1(建立Windows窗体应用程序)--设计一个窗体--单击按钮时,在标签上显示当前系统时间 .
- How to Find which Session is Holding a Particular Library Cache Lock [ID 122793.1]【每日一译】--2012-11-13
- JSP技术 起源
- CentOS编译安装Lighttpd1.4.28
- libeio 安装
- 调用函数printchs输出星号图
- Library Cache Lock Held For Long Time For Queries Involving Too Many Binds [ID 1315929.1]【每日一译】-1114
- Diary in 20121112
- C++学习1
- directshow写的transform filter,不能注册ax文件,提示没有找到DllRegisterServer输入点
- 机器学习和计算机视觉有关的数学
- 文本比较程序
- Qt安装
- JSP指令