Ngày tải lên :
06/11/2013, 01:15
... c ai giúp gấp cho em bài này đư c không, làm wài mà nó chẳng ra như ý c . Chẳng là thuật toán tìm
kiếm nhị phân đó mà.
#include<graphics.h>
#include<conio.h>
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<dos.h>
#include<iostream.h>
int ... tri:"<<mid;
setcolor(random(15));
circle(mid*Step+Step+5,140,16);
itoa(mid,strmid,10);
outtextxy(mid*Step+Step+2,107,strmid);
outtextxy(mid*Step+Step+2,165,tg);
}
getch();
}
return -1;
}
void main()
{
clrscr();
Init_Graph(" ;c: \\borlandc\\BGI");
//Paint(start,n);
int n=15;
setbkcolor(BLUE);
setcolor(YELLOW);
rectangle(2,2,getmaxx()-2,getmaxy()-2);
rectangle(5,5,getmaxx()-5,getmaxy()-5);
KhoiTao_Mang(array,n);
... errorcode;
initgraph(&gdriver, &gmode,duongdan);
errorcode = graphresult();
if (errorcode != grOk)
{
cout<<"Loi Khoi Tao Do Hoa: \n"<< grapherrormsg(errorcode);
getch();
exit(1);
}
}
//...