Thursday, September 22, 2011

Colourful Circles in C, C++

/* Sample program to draw multiple circle*/
#include
#include
main()
{
int gd=DETECT,gm;
clrscr();
initgraph(&gd,&gm,"C:\\TC\\BGI"); /* initialization of graphic mode */

for(int i=0, j=0; i<100; i++, j++)
{
setcolor(j);
circle(150,150,(i+10)); // Last argument is for radius
i= i+5;
}
getch();
closegraph(); /* Restore orignal screen mode */

return 0;
}
/* End of program */

Friday, January 30, 2009

Unable 2 install Windows XP: Setup did not find any hard disk drives installed in your computer

I got this problem in hp's 540 notebook when I was trying to install a fresh copy of Windows XP




To tranquilize this problem follow the steps given below:-

1. Enter into set up by pressing F10 key.

2. Goto -

System Configuration > Device Configuration

3. Goto- SATA Native Mode
Now u will see it is set Enable so change it to Disable.

4. Press F10 to Accept change.

5. Save and Exit. Now it should work.