biancheng
来源:互联网 发布:成都软件开发 编辑:程序博客网 时间:2024/06/11 17:21
/*编程打印出金字塔图案,其中图案的层数在程序运行时由键盘输入*/#include<stdio.h>void main(){ int i,j,k,m,n; scanf("%d",&n); for(i=1;i<=n;i++) { for(j=1;j<=n-i;j++) printf(" "); for(k=1;k<=i;k++) printf("%d ",k); for(m=i-1;m>=1;m--) printf("%d ",m); printf("\n"); }}
/}
- biancheng
- biancheng
- biancheng
- 保护成员 http://c.biancheng.net/cpp/biancheng/view/229.html
- C++虚析构函数 http://c.biancheng.net/cpp/biancheng/view/247.html
- C++派生类的构造函数 http://c.biancheng.net/cpp/biancheng/view/231.html
- shell学习-转自http://c.biancheng.net/cpp/shell/
- Linux-网桥原理分析 http://biancheng.dnbcw.info/linux/244269.html
- int open(const char * pathname, int flags); http://c.biancheng.net/cpp/html/238.html
- Shell特殊变量:Shell $0, $#, $*, $@, $?, $$和命令行参数 http://c.biancheng.net/cpp/view/2739.html
- 多线程中栈空间的分配 http://biancheng.dnbcw.info/linux/303270.html
- 数组仿真栈
- 指定某一行查询
- Python进阶09 动态类型
- 线上服务经常性死机问题分析总结
- 关于EDM邮件涉及的MX记录、A记录和反向解析
- biancheng
- preview
- 使用guava读取ANSI类型的文件,避免中文乱码
- Hadoop性能分析工具Hitune的安装(centos)
- windows XP查看系统信息
- CABasicAnimation animationWithKeyPath 一些规定的值(Layer层动画)
- Objective C内存管理——如何理解autorelease
- C++ Internals: VC RTTI - 基本数据结构
- JavaScript中的try...catch和异常处理