freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語言題-閱讀頁

2024-09-10 10:01本頁面
  

【正文】 (i=0。i++) { printf(a[%d]=,i)。a[i])。 for(i=0。i++) printf(%5d,a[i])。 /*sort ten num*/ for(i=0。i++) {min=i。jN。 tem=a[i]。 a[min]=tem。 for(i=0。i++) printf(%5d,a[i])。 : main() { float a[3][3],sum=0。 printf(please input rectangle element:\n)。i3。j3。a[i][j])。i3。 printf(duijiaoxian he is %,sum)?,F(xiàn)輸入一個(gè)數(shù),要求按原來的規(guī)律將它插入數(shù)組中。 : main() { int a[11]={1,4,6,9,13,16,19,28,40,100}。 printf(original array is:\n)。i10。 printf(\n)。 scanf(%d,amp。 end=a[9]。 else {for(i=0。i++) { if(a[i]number) {temp1=a[i]。 for(j=i+1。j++) {temp2=a[j]。 temp1=temp2。 } } } for(i=0。i++) printf(%6d,a[i])。 :用第一個(gè)與最后一個(gè)交換。 printf(\n original array:\n)。iN。 for(i=0。i++) {temp=a[i]。 a[Ni1]=temp。 for(i=0。i++) printf(%4d,a[i])。 。0=0。1=0。0=0。1=1 : include main() { int a,b。 b=aamp。 printf(\40: The a amp。 bamp。 printf(\40: The a amp。 } ============================================================== 【程序 52】 題目:學(xué)習(xí)使用按位或 | 。 0|1=1。 1|1=1 : include main() { int a,b。 b=a|3。 b(decimal) is %d \n,b)。 printf(\40: The a amp。 } ============================================================== 【程序 53】 題目:學(xué)習(xí)使用按位異或 ^ 。 0^1=1。 1^1=0 : include main() { int a,b。 b=a^3。 b(decimal) is %d \n,b)。 printf(\40: The a amp。 } ============================================================== 【程序 54】 題目:取一個(gè)整數(shù) a從右端開始的 4~ 7位。 (2)設(shè)置一個(gè)低 4位全為 1,其余全為 0的數(shù)。運(yùn)算。 scanf(%o,amp。 b=a4。 d=bamp。 printf(%o\n%o\n,a,d)。 : ~0=1。 : include main() { int a,b。 b=~a。s 1 plement(decimal) is %d \n,b)。 printf(\40: The a39。 } ============================================================== 【程序 56】 題目:畫圖,學(xué)用 circle畫圓形。 float j=1,k=1。mode=VGAHI。driver,amp。 setbkcolor(YELLOW)。i=25。 circle(310,250,k)。 j=j+。 : : include main() {int driver,mode,i。 float j=12,k。mode=VGAHI。driver,amp。 setbkcolor(GREEN)。y0=263。x1=275。i=18。 line(x0,y0,x0,y1)。 y0=y05。 y1=y1+5。 } x0=263。y0=263。i=20。 line(x0,y0,x0,y1)。 y0=y0+5。 } } ============================================================== 【程序 58】 題目:畫圖,學(xué)用 rectangle畫方形。 : include main() {int x0,y0,y1,x1,driver,mode,i。mode=VGAHI。driver,amp。 setbkcolor(YELLOW)。y0=263。x1=275。i=18。 rectangle(x0,y0,x1,y1)。 y0=y05。 y1=y1+5。 作者: zhlei81 2020122 11:31 回復(fù)此發(fā)言 11 回復(fù):經(jīng)典C源程序 100例 outtextxy(150,40,How beautiful it is!)。 setcolor(2)。 } ============================================================== 【程序 59】 題目:畫圖,綜合例子。 float a。mode=CGAC0。driver,amp。 setcolor(3)。 x0=150。 circle(x0,y0,10)。 circle(x0,y0,50)。i16。 x=ceil(x0+48*cos(a))。 setcolor(2)。} setcolor(3)。 /* Make 0 time normal size letters */ settextstyle(DEFAULT_FONT,HORIZ_DIR,0)。 getch()。 floodfill(202,100,WHITE)。 for(k=0。k++) { setcolor(3)。i=16。 x=ceil(x0+48*cos(a))。 setcolor(2)。 } for(j=1。j++) { a=(2*PAI/16)*i+(2*PAI/180)*k1。 y=ceil(y0+48*sin(a)*B)。 } } restorecrtmode()。 : : include define LEFT 0 define TOP 0 define RIGHT 639 define BOTTOM 479 define LINES 400 define MAXCOLOR 15 main() { int driver,mode,error。 int x2,y2。 int count=0。 driver=VGA。 initgraph(amp。mode,)。 dx1=dy1=2。 while(!kbhit()) { line(x1,y1,x2,y2)。y1+=dy1。y2+dy2。 if(y1=TOP||y1=BOTTOM) dy1=dy1。 if(y2=TOP||y2=BOTTOM) dy2=dy2。 color=(color=MAXCOLOR)?0:++color。 } 作者: zhlei81 2020122 11:31 回復(fù)此發(fā)言 12 回復(fù):經(jīng)典C源程序 100例 【程序 61】 題目:打印出楊輝三角形(要求打印出 10行如下圖) : 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 : main() {int i,j。 printf(\n)。i10。 a[i][i]=1。i10。ji。 for(i=0。i++) {for(j=0。j++) printf(%5d,a[i][j])。 } } ============================================================== 【程序 62】 題目:學(xué)習(xí) putpixel畫點(diǎn)。 initgraph(amp。mode,)。 for(i=50。i+=20) for(j=50。j++) putpixel(i,j,1)。j=230。i=230。 } ============================================================== 【程序 63】 題目:畫橢圓 ellipse : : include include include main() { int x=360,y=160,driver=VGA,mode=VGAHI。 int top,bottom。driver,amp。 top=y30。 for(i=0。i++) { ellipse(250,250,0,360,top,bottom)。 bottom+=5。 } ============================================================== 【 程序 64】 題目:利用 ellipse and rectangle 畫圖。 int i,num=15,top=50。 initgraph(amp。mode,)。inum。 ellipse(250,250,0,360,20,top)。 right+=5。 top+=10。 } ============================================================== 【程序 65】 題目:一個(gè)最優(yōu)美的圖案。 }。 void LineToDemo(void) { struct viewporttype vp。 int i, j, h, w, xcenter, ycenter。 double rads。 getviewsettings( amp。 h = 。 xcenter = w / 2。 radius = (h 30) / (AspectRatio * 2)。 /* Determine of increments */ angle = 0。 iMAXPTS 。 /* Convert angle to radians */ points[i].x = xcenter + (int)( cos(rads) * radius )。 angle += step。 /* Draw bounding circle */ 作者: zhlei81 2020122 11:32 回復(fù)此發(fā)言 13 回復(fù):經(jīng)典C源程序 100例 for( i=0 。 ++i ){ /* Draw the cords to the circle */ for( j=i 。 ++j ){ /* For each remaining intersect */ moveto(points[i].x, points[i].y)。 /* Draw the cord */ } } } main() {int driver,mode。mode=CGAC0。driver,amp。 setcolor(3)。 LineToDemo()。 :利用指針方法。 int *pointer1,*pointer2,*pointer3。 scanf(%d,%d,%d,amp。n2,amp。 pointer1=amp。 pointer2=amp。 pointer3=amp。 if(n1n2) swap(pointer1,pointer2)。 if(n2n3) swap(pointer2,pointer3)。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1