调用函数printchs输出星号图
来源:互联网 发布:网络歌手好听的歌2015 编辑:程序博客网 时间:2024/06/05 11:30
/* * 程序的版权和版本声明部分 * Copyright (c)2012, 烟台大学计算机学院学生 * All rightsreserved. * 文件名称: fun.cpp * 作 者:董慧* 完成日期:2012 年11 月 19日 * 版本号: v1.0 * 对任务及求解方法的描述部分:略* 输入描述:略 * 问题描述:略 * 程序输出: */ #include<iostream>using namespace std;void printchs(char c,int m){for(int j=1;j<=m;++j)cout<<c;cout<<endl;}int main(){int n=6,i;for(i=1;i<=n;i++){printchs('*',2*i-1);}return 0;}
输出结果:
心得体会:运用printchs()函数,更方便了
- 调用函数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函数输出学过的星号图
- 调用函数输出星号图。
- 软件工程
- BSD socket
- 越狱iOS设备利用itms-services协议,实现Safari一键安装IPA
- 创建 Windows8 应用 Part I: Hello, world!
- jQueryMobile开发时,遇到的一些问题记录
- 调用函数printchs输出星号图
- 版权符号--如何在页面完美显示版权符号,版权符号字体
- 异常等待事件 kksfbc child completion
- poj 1797 Heavy Transportation
- jQuery选择器全解
- vs2008 ATL 连接点
- 读本山胜宽《我这样考上东大和哈佛》
- Java环境下SOE—Rest开发之1(初识)
- Do not show out of stock products in Magento