how can i do i stack, queu and postfix, prefix ,infix demonstration program using Turbo C++ 3.0's graphical interface. Can you help me or can you give me some hints about combining graphic functions and program functions(pop,push..)
Code:
#include <graphics.h>
#include <mouse.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include "stack.h"
#include "queue.h"
void ekran();

main()
{
int gdriver = DETECT, gmode, errorcode;

initgraph(&gdriver, &gmode, "");

errorcode = graphresult();

if (errorcode != grOk) 
{
   printf("Graphic error: %s\n", grapherrormsg(errorcode));
   printf("˜Press any key:");
   getch();
   exit(1);           
}

setcolor(YELLOW);
rectangle(0,0,getmaxx(),getmaxy());
SetMousePosition(getmaxx()/2,getmaxy()/2);
ShowMouse(); ekran();
return 0;
}



void ekran()
{
setbkcolor(9);
circle(400,40,5);
outtextxy(410,40,"YI¦IN");
circle(400,60,5);
outtextxy(410,60,"KUYRUK");
circle(400,80,5);
outtextxy(410,80,"POSTFIX,PREFIX,INFIX");
getch();
}