![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
我的小程序
TushengjiN
工程大学学生
展开
-
打印杨辉三角的另一种简单方法
#includeusing namespace std;int main(){ int k,a[100][100],m=1,n=1,s,x; a[1][0]=1; cout cin>>k; for(int i=0;i a[0][i]=1; cout cout for(int y=3;y { x=1; cout while(x { s=0; for(int j=0;j s=s原创 2010-01-19 11:45:00 · 465 阅读 · 0 评论 -
将任意二项式展开的小程序
#includeusing namespace std;int main(){ int k,a[100][100],m=1,n=1,s,x,p=1,f_1,f_2; char x_1,x_2,x_3,x_4,x_5,x_6; a[1][0]=1; cout cin>>x_1>>x_2>>x_3>>x_4>>x_5>>x_6>>k; f_1=k-1; f_2=k+1; for(int i=0;原创 2010-01-19 11:50:00 · 578 阅读 · 0 评论 -
没事时用最简单的C++语言编一些小程序可以回顾知识点,增加熟练度
打印非实心三角形的小程序#include using namespace std;void han(int x);int main(){ int n,p=1,m; cout cout cin>>n; cout han(n-1); cout m=n-2; for(int i=1;i { h原创 2010-01-28 13:48:00 · 693 阅读 · 0 评论 -
哎!无奈啊
都知道网络存在着很多不安全因素,存在着很多腐蚀人类思想的信息。这一点我确实有很多感触。 当自己本来想查一下自己想查的资料时,一打开网页弹出来一些乱七八招的广告,黄色图片等,特烦人,心情变一下子没了! 还有前几天我本想克隆一个同学的博客,系统说在五六个小时后完成系统迁移,但结果令我惊讶!竟然无缘无故多了几篇日志!还有一个黄色游戏!气死我了!我真想告诉该网站原创 2010-01-28 13:54:00 · 453 阅读 · 0 评论 -
在C++控制台自由控制小坦克
在C++控制台控制一个小坦克自由移动(在真正的游戏中并不适用,因为每次将页面刷新效率会很低) #includeusing namespace std;void became_a_new_page(int x);void blank(int x);void walk_forth(int x,int y);void walk_behind(int x,int y);void walk_up(i原创 2010-04-11 16:02:00 · 758 阅读 · 0 评论