{int i,j;
int a[10][10];
printf("\n");
for(i=0;i<10;i++)
{a[i][0]=1;
a[i][i]=1;}
for(i=2;i<10;i++)
for(j=1;j<i;j++)
a[i][j]=a[i-1][j-1]+a[i-1][j];
for(i=0;i<10;i++)
{for(j=0;j<=i;j++)
printf("%5d",a[i][j]);
printf("\n");
}
}
-----------------------------------------------------------------------------
【程序62】
题目:学习putpixel画点。
1.程序分析:
2.程序源代码:
#include "stdio.h"
#include "graphics.h"
main()
{
int i,j,driver=VGA,mode=VGAHI;
initgraph(&driver,&mode,"");
setbkcolor(YELLOW);
for(i=50;i<=230;i+=20)
for(j=50;j<=230;j++)
putpixel(i,j,1);
for(j=50;j<=230;j+=20)
for(i=50;i<=230;i++)
putpixel(i,j,1);
}
--------------------
http://www.changsha.cn/bj/bj/zxzx/2014/0401/526668.html
http://www.js0573.com/yx/dzdy/3766009.html
http://www.fengone.com/bj/jsqy/2014/0401/453661.html
http://www.lfxww.com/2014/shichangshangxun/2014/0401/762467.html
http://www.lfxww.com/2014/shichangshangxun/2014/0401/762546.html
http://zx.zynews.com/hyzx/yskt/5261974188.html
http://www.js0573.com/yx/dzdy/3766058.html
http://www.changsha.cn/bj/yl/zxjs/2014/0401/526676.html
http://www.changsha.cn/bj/yl/xywy/2014/0401/526677.html
http://zx.zynews.com/hyzx/yskt/5261975668.html
http://www.fengone.com/bj/zxzx/2014/0401/453662.html
http://www.changsha.cn/bj/bj/zxzx/2014/0401/526681.html
http://www.fengone.com/bj/zxzx/2014/0401/453663.html
http://www.changsha.cn/bj/yl/zxjs/2014/0401/526685.html
http://www.js0573.com/yx/dzdy/3766005.html
http://www.qdxw.com.cn/yx/dwwf/2039419.html
http://www.qdxw.com.cn/yx/dwwf/2039297.html
http://www.fengone.com/bj/zxzx/2014/0401/453674.html
http://www.js0573.com/yx/dzdy/3766019.html
http://www.changsha.cn/bj/yl/xywy/2014/0401/526705.html
http://www.changsha.cn/bj/bj/zxzx/2014/0401/528195.html
http://www.js0573.com/yx/sjbm/3770865.html
http://www.fengone.com/bj/jsqy/2014/0401/454911.html
http://www.qdxw.com.cn/yx/dwwf/2045925.html
http://www.js0573.com/yx/sjbm/3770828.html
http://www.changsha.cn/bj/yl/xywy/2014/0401/528196.html
http://www.changsha.cn/bj/bj/zxzx/2014/0401/528197.html
http://www.qdxw.com.cn/yx/dwwf/2045899.html
http://www.changsha.cn/bj/yl/zxjs/2014/0401/528198.html
http://www.fengone.com/bj/zxzx/2014/0401/454914.html