You are on page 1of 1

// graphbuff.

cpp
// Auther: Dr. MD Choudhry

#include <windows.graphics.display.h>
#include <iostream>
#include <iomanip.h>
#include <conio.h>
using namespace std;

void INITIAL( int color );

int main (void)


{
int xCenter=12,yCenter=12;

INITIAL(4);

setcolor(1);
rectangle(1,1,23,23);
setcolor(2);
circle(xCenter,yCenter,8);

cout<<endl<<endl;

int pixcolor;
for(int i=0;i<26;i++){
for(int j=0;j<26;j++){
pixcolor=getpixel(i,j);
cout<<setw(2)<<pixcolor;
}
cout<<endl;
}

getch();

closegraph();
return 0;
}

You might also like