| OS X - Apps and Games Discussion of applications and games available for Mac OS X. |
| Post Reply | New Thread | Subscribe |
|
|
Thread Tools |
![]() Member Since: May 06, 2010
Posts: 2
![]() |
Hey i have snow leopard 10.6.
I want to use graphics.h and device.h header in xcode 3.2.2 for my project so please can anyone tell me the way how to use these libraries in my project. </code> #include "stdafx.h" #include <graphics.h> #include <conio.h> void main() { int gd=DETECT, gm; initgraph(&gd,&gm,""); int x,y, j=250 ; setbkcolor(WHITE); setcolor(LIGHTBLUE); outtextxy(3,5," I am so stupid hyong I am so stupid sorry sorry !!! "); // output "line" text x = getmaxx(); y = getmaxy(); x=j; line(j,0,x,y); x = getmaxx(); y = getmaxy(); y=j; line(0,j,x,y); /*void line(int x0, int y0, int x1, int y1) { POINT line[2]; line[0].x = x0; line[0].y = y0; line[1].x = x1; line[1].y = y1; drawpoly(2, (int*)&line); } */ getch(); closegraph(); // escape graphic mode } </code> I want to use this library only as it is in my coarse. Last edited by Pritha Gupta; 07-28-2010 at 09:01 AM. |
| QUOTE Thanks | |
| Post Reply | New Thread | Subscribe |
| Thread Tools | |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|
|||||||
All times are GMT -4. The time now is 08:34 PM.
Powered by vBulletin