Queue

Please help me w/ my programme

i'm using turbo-c compiler
here's a part of my program:

my error is when i insert, it says call of nonfunction
i hope anyone can help^^


#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#include<ctype.h>
//#difine MAX 5

main()
{
//printf(chr(178));


float loop;
float queue[5],insert;
float x=9,N=30;
char choice;



clrscr();


gotoxy(30,15);
cout<<"==========================";
gotoxy(30,17);
cout<<"==========================";
gotoxy(N,16);
cout<<"|";
gotoxy(N+5,16);
cout<<"|";
gotoxy(N+10,16);
cout<<"|";
gotoxy(N+15,16);
cout<<"|";
gotoxy(N+20,16);
cout<<"|";
gotoxy(N+25,16);
cout<<"|";


gotoxy(25,5);
cout<<"Please select Between A-D!! <QUEUE> ";
gotoxy(25,6);
cout<<"===================================";
gotoxy(25,7);
cout<<"A. Insert";
gotoxy(25,8);
cout<<"B. Remove";
gotoxy(25,9);
cout<<"C. Empty?";
gotoxy(25,10);
cout<<"D. STOP/EXIT";
gotoxy(40,7);
cout<<"Select : ";

choice=toupper(getche());

switch(choice)
{

case 'A':
// insert(queue,insert);



for(loop=0;loop<=4;loop=loop+1)
{
gotoxy(40,x);
cout<<"insert : ";cin>>insert;
// insert(queue[loop],insert);

x=x+1;
}
break;

case 'B':

gotoxy(40,9);
cout<<"remove : "<<"[";gotoxy(51,9);cout<<"]";
cout<<"<slot number>";
gotoxy(50,9);
cin>>insert;

break;

case 'C':





break;



}






/* for(x=1;x<=256;x++)
{
printf("%f %s",x,x);
}
*/
getche();
return 0;
}




and i can't just want to delete any of my code^^
im just making them comments^^
i hope anyone can help^^
Last edited on
my error is when i insert, it says call of nonfunction
That's because you haven't defined anything called insert, the compiler doesn't know what to do with it.
sorry ,, its somebody said to me that insert(,); is a function :

its supposed to be algorithm/pseudo code , and i thought it was a function;

im so newbe, sorry
i fell so dumb:(
anyway thanks,
Topic archived. No new replies allowed.