I made a c++ program but my teacher rejected it because i had used goto function everywhere. she told me that i can use do while instead. so i started replacing goto with do while. after spending so many hours on my desktop when i tried to run it , i got an error ,so strange that i do not even know where the error is as turbo c is not telling where it is .
it says
X#=0D,CS=0A97 IP=000001D1.The NTVDM CPU has encountered an unhandled exception .
plz somebody help me fast . i have spent more than required time on this project and am ending up nowhere. i have to finish it up fast as i have to study for my 12th final exams.

before do while (with goto function) ---working as i desire
http://www.4shared.com/file/0N3_4w4M/_comp_shop_2.html

after do while
http://www.4shared.com/file/Pl5xwxEU/_comp_shop.html

please help me.... Thanks in advance

Attachments
/*
		 
		 & COMPUTER SCIENCE PROJECT  &
		
 
	      SOFTWARE FOR THE USE IN COMPUTERS SHOP
 
		      ***INTRODUCTION***
 
		 /////////////////////////////
		    NAME:- RISHABH HARIT AND 
			DIPANSHI BUDHRAJA
		   CLASS:- XII   SEC:- C
			ROLL NO:- 29,13
		 /////////////////////////////
 
		      #########################
		      # TECH HUB COMPUTERS #
		      #########################
 
/*
		      ### HEADER FILES ###
*/
#include<fstream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>      //for gets and puts function
#include<process.h>    //for exit function
#include<iomanip.h>    //for setw function
#include<dos.h>        //for delay and sleep function

      class consumer
		{
		int cno;
		char cname[20];
		char adress[40];
		double a,b,c;
		float i;
		public:
 
      //FUNCTION TO ENTER THE VALUES
 
		public:
 
      void entry()
		{
		clrscr();
		gotoxy(32,4);
		cout<<"TECH HUB COMPUTERS";
		gotoxy(5,8);
		cout<<"Customer ID :";
		gotoxy(5,10);
		cout<<"Customer name :";
		gotoxy(5,12);
		cout<<"Customer adress :";
		gotoxy(5,14);
		cout<<"Customer Service number :";
		gotoxy(5,16);
		cout<<"Costumer Smart card number :";
		gotoxy(5,18);
		cout<<"Costumer Phone number :";
		gotoxy(5,20);
		cout<<"Customer Bill number :";
		gotoxy(45,8);
		cin>>cno;
		gotoxy(45,10);
		gets(cname);
		gotoxy(45,12);
		gets(adress);
		gotoxy(45,14);
		cin>>a;
		gotoxy(45,16);
		cin>>b;
		gotoxy(45,18);
		cin>>c;
		gotoxy(45,20);
		cin>>i;
		}
 
      //FUNCTION TO DISPLAY THE VALUES
 
      void display()
		    {
		    cout<<"\n\t\t";
		    cout<<"Customer ID :";
		    cout<<cno<<"\n\n\t\t";
		    cout<<"Customer name :";
		    puts(cname);
		    cout<<"\n\n\t\t";
		    cout<<"Customer adress :"<<adress<<"\n\n\t\t";
		    cout<<"Customer Service number :" <<a<<"\n\n\t\t";
		    cout<<"Costumer Smart card number :"<<b<<"\n\n\t\t";
		    cout<<"Costumer Phone number :"<<c<<"\n\n\t\t";
		    cout<<"Customer Bill number :"<<i<<"\n";
		    }
      int rcno()
      {
      return cno;
      }
      }c;
 
      //FUNCTION TO WRITE THE VALUES
 
      void write(consumer &c)
		{
		char ch;
		fstream f1;
		c.entry();
		f1.open("main.dat",ios::app|ios::binary);
		cout<<"\n\n\tDo you want to save the record(y/n)\t";
		cin>>ch;
		if(ch=='y'||ch=='Y')
		{
		f1.write((char*)&c,sizeof(c));
		}
		f1.close();
		}
 
	  //FUNCTION TO READ THE VALUES
 

      //FUNCTION FOR SEARCHING THE RECORD

      void search()
		{
		consumer c;
		int rn ;
		char found='n';
		ifstream f1("main.dat",ios::in);
		cout<<"\n\n Enter Customer ID you want to SEARCH :\t";
		cin>>rn;
		while(!f1.eof())
		{
		f1.read((char*)&c,sizeof(c));
		if(c.rcno()==rn)
		{
		c.display();
		found='y';
		break;
		}
		if (!f1.eof()) 
		break;
		}
		if(found=='n')
		cout<<"\n\n\tRECORD NOT FOUND!!!!!!!!!!!!!\n"<<endl;
		f1.close();
		}
 
      //FUNCTION TO DELELTE THE RECORD
 
      void del()
		{
		ifstream f1("main.dat",ios::in);
		ofstream f2("temp.dat",ios::out);
		int rno;
		char found='f',confirm='n';
		cout<<"\n\n Enter Customer ID you want to DELETE :\t";
		cin>>rno;
		while(!f1.eof())
		{
		f1.read((char*)&c,sizeof(c));
		if(c.rcno()==rno)
		{
		c.display();
		found='t';
		cout<<"\n\n Are you sure you want to DELETE this record ? (y/n)\t";
		cin>>confirm;
		if(confirm=='n')
		f2.write((char*)&c,sizeof(c));
		
		else if(confirm=='y')
		cout<<"\n\n\n\t\tRECORD SUCCESSFULLY DELETED!!";
		getch();
		}
		else
		f2.write((char*)&c,sizeof(c));
		if (!f1.eof()) 
		break;
		}

		if(found=='f')
		cout<<"\n\n\tRECORD NOT FOUND\n";
		f1.close();
		f2.close();
		remove("main.dat");
		rename("temp.dat","main.dat");
		clrscr();
		}
		
 
      //FUNCTION TO MODIFY THE RECORD
 
      void update()
		{
		fstream f1("main.dat",ios::in | ios::out | ios::binary);
		int rno;
		long pos;
		char found='f';
		cout<<"\n\n Enter the Customer ID you want to MODIFY :\t";
		cin>>rno;
		while(!f1.eof())
		{
		pos=f1.tellg();
		f1.read((char*)&c,sizeof(c));
		if(c.rcno()==rno)
		{c.display();
		getch();
		cout<<"\n\tENTER NEW DETAILS\n";
		c.entry();
		f1.seekg(pos);
		f1.write((char*)&c,sizeof(c));
		found='t';
		break;
		}
		if (!f1.eof()) 
		break;
		}
		if(found=='f')
		cout<<"\n\n\tRECORD NOT FOUND\n";
		f1.seekg(0);
		clrscr();
		cout<<"\n Now the file contains\n\n";
		c.display();
		f1.close();
		getch();
		}
 
      //STARTING OF THE VOID MAIN
 
	void main()
		{
		unsigned int sum,add,d,j,e,f,g,h,k,l,w,x,choice;
		int abis=0,apep=0,aden=0,amun=0,aperk=0,acoc=0,atit=0,alux=0;
		unsigned int m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0;
		float pend=0,print=0,graph=0,ram=0,hard=0,win=0,ant=0,p1=0,p2=0,g1=0,r1=0,h1=0,w1=0,mous=0,web=0,aweb=0,asc=0,scan=0,total=0;
		char pu,str[10],yes,et;
		char cond='1';
		clrscr();
 
	// WELCOME SCREEN
 
	clrscr();
	cout<<"\n\n\n\t\tPLEASE WAIT WHILE LOADING THE PROJECT";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(200);
	
	clrscr();
	gotoxy(1,6);
	cout<<"                          COMPUTER SCIENCE PROJECT WORK                         \n";
	cout<<"                                                                                \n";
	cout<<"********************************************************************************";
	cout<<"\n";
	cout<<"                         WELCOME TO THE TECH HUB COMPUTERS                       \n";
	cout<<"********************************************************************************\n";
	cout<<"********************************************************************************\n";
	gotoxy(2,21);
	 cout<<"                   SCHOOL:-VEDA VYASA D.A.V. PUBLIC  SCHOOL                   ";
	 gotoxy(2,22);
	 cout<<"                              D-BLOCK  VIKAS PURI                               ";
	 cout<<"\n";
	cout<<"********************************************************************************\n";
	cout<<"********************************************************************************\n";
	gotoxy(1,37);
	 cout<<"                              BY:- RISHABH HARIT & DIPANSHI BUDHRAJA                              \n";
	 gotoxy(1,39);
	 cout<<"                              CLASS:- XII C                              \n";
	 gotoxy(1,41);
	 cout<<"                              ROLL NO:- 29 , 13                               \n";
	 gotoxy(1,43);
	 cout<<"                              YEAR:- 2010-2011                                 \n";
	 cout<<"\n\n";
	cout<<"********************************************************************************\n";
	cout<<"********************************************************************************\n";
	cout<<"\n\n";
	gotoxy(45,48);
	cout<<"PRESS ENTER TO CONTINUE!!!!!!";
	getch();
	clrscr();
 
		//DETAILS OF THIS PROJECT
 
	gotoxy(25,10);
	cout<<"WELCOME TO THE WORLD OF COMPUTERS .";
	gotoxy(5,15);
	cout<<"THIS PROJECT CONTAINS SOME ITEMS AND SIMPLE THING YOU HAVE TO DO IS:-";
	gotoxy(5,17);
	cout<<"ENTER THE NAME , CUSTOMER ID , SERIAL NUMBER , SMART CARD NUMBER etc.";
	gotoxy(5,19);
	cout<<"THEN PURCHASE THE ITEMS AND REMEMBER THE QUANTITY ITEMS CARRY.";
	gotoxy(5,21);
	cout<<"YOU CAN ALSO MODIFY , DELETE , SEARCH A RECORD.";
	gotoxy(5,23);
	cout<<"YOU CAN ALSO DISPLAY ALL RECORDS YOU HAVE ENTERED IN YOUR COMPUTER.";
	gotoxy(5,27);
	cout<<"WE HOPE THAT YOU WILL BE SATISFIED WITH OUR SERVICE.";
	gotoxy(5,29);
	cout<<"WE ARE NOT RESPONSIBLE FOR ANY DEFECT IN THE PRODUCT YOU PURCHASE.";
	getch();
	clrscr();
 
 //LOADING THE PROJECT
 
	gotoxy(32,13);
	cout<<"********************";
	gotoxy(32,15);
	cout<<"LOADING YOUR PROJECT";
	gotoxy(32,17);
	cout<<"********************";
	gotoxy(32,20);
	cout<<"PLEASE WAIT.........";
	delay(200);
	gotoxy(32,35);
	cout<<"10 % completed..";
	delay(200);
	gotoxy(32,35);
	cout<<"20 % completed...";
	delay(200);
	gotoxy(32,35);
	cout<<"30 % completed....";
	delay(200);
	gotoxy(32,35);
	cout<<"40 % completed.....";
	delay(200);
	gotoxy(32,35);
	cout<<"50 % completed......";
	delay(200);
	gotoxy(32,35);
	cout<<"60 % completed.......";
	delay(200);
	gotoxy(32,35);
	cout<<"70 % completed........";
	delay(200);
	gotoxy(32,35);
	cout<<"80 % completed.........";
	delay(200);
	gotoxy(32,35);
	cout<<"90 % completed..........";
	delay(200);
	gotoxy(32,35);
	cout<<"100 % completed...........";
	delay(500);
 
			// TO PURCHASE ,SEARCH ,MODIFY ,DELETE ,DISPLAY ALL RECORDS ,DETAILS ,NEW CUSTOMER
 
		
		do {			//MAIN MENU LOOP	
			
		cond='0';		
		clrscr();
		cout<<"\n\t\t\t    ^^^^^^^^^^^^^^^^^^^^^^^^^^^";
		cout<<"\n\t\t\t    !=========================!\n";
		cout<<"\n\t\t\t    !****    TECH HUB     ****!\n";
		cout<<"\n\t\t\t    !=========================!";
		cout<<"\n\t\t\t    ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n\n\n";
		cout<<"  \t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$";
		cout<<"\n\n\t\t\t*     1.NEW CUSTOMER              *";
		cout<<"\n\n\t\t\t*     2.DETAILS                   *";
		cout<<"\n\n\t\t\t*     3.SEARCH A RECORD           *";
		cout<<"\n\n\t\t\t*     4.DELETE A RECORD           *";
		cout<<"\n\n\t\t\t*     5.MODIFY A RECORD           *";
		cout<<"\n\n\t\t\t*     6.DISPLAY ALL RECORDS       *";
		cout<<"\n\n\t\t\t*     7.QUANTITY AVAILABLE        *";
		cout<<"\n\n\t\t\t*     0.EXIT                      *\n";
		cout<<"\n\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$";
		cout<<"\n\n\n\n\t Enter your choice :\t";
		cin>>d;
		switch(d)
		{
 
	case 1:
 
		clrscr();
		cout<<"\n\n\n\t\t\t TECH HUB COMPUTERS";
		cout<<"\n\n\n\t\t\t COSUMER INFORMATION";
 
	// TO ENTER THE DETAILS OF THE COSTUMER
 
		write(c);
 
	// ITEMS AND THIER RATES
		cout<<"\n\n\nDO YOU WANT TO PURCHASE(Y/N):\n\n";
		cin>>pu;
		if(pu=='Y'||pu=='y')
		{
		clrscr();
 
	// PURCHASE LIST
 
		
		do{					//LOOP FOR ITEMS LIST
		clrscr();
		cond='0';					
		cout<
/*
		 
		 & COMPUTER SCIENCE PROJECT  &
		
 
	      SOFTWARE FOR THE USE IN COMPUTERS SHOP
 
		      ***INTRODUCTION***
 
		 /////////////////////////////
		    NAME:- RISHABH HARIT AND 
			DIPANSHI BUDHRAJA
		   CLASS:- XII   SEC:- C
			ROLL NO:- 29,13
		 /////////////////////////////
 
		      #########################
		      # TECH HUB COMPUTERS #
		      #########################
 
/*
		      ### HEADER FILES ###
*/
#include<fstream.h>
#include<conio.h>
#include<string.h>
#include<stdio.h>      //for gets and puts function
#include<process.h>    //for exit function
#include<iomanip.h>    //for setw function
#include<dos.h>        //for delay and sleep function

      class consumer
		{
		int cno;
		char cname[20];
		char adress[40];
		double a,b,c;
		float i;
		public:
 
      //FUNCTION TO ENTER THE VALUES
 
		public:
 
      void entry()
		{
		clrscr();
		gotoxy(32,4);
		cout<<"TECH HUB COMPUTERS";
		gotoxy(5,8);
		cout<<"Customer ID :";
		gotoxy(5,10);
		cout<<"Customer name :";
		gotoxy(5,12);
		cout<<"Customer adress :";
		gotoxy(5,14);
		cout<<"Customer Service number :";
		gotoxy(5,16);
		cout<<"Costumer Smart card number :";
		gotoxy(5,18);
		cout<<"Costumer Phone number :";
		gotoxy(5,20);
		cout<<"Customer Bill number :";
		gotoxy(45,8);
		cin>>cno;
		gotoxy(45,10);
		gets(cname);
		gotoxy(45,12);
		gets(adress);
		gotoxy(45,14);
		cin>>a;
		gotoxy(45,16);
		cin>>b;
		gotoxy(45,18);
		cin>>c;
		gotoxy(45,20);
		cin>>i;
		}
 
      //FUNCTION TO DISPLAY THE VALUES
 
      void display()
		    {
		    cout<<"\n\t\t";
		    cout<<"Customer ID :";
		    cout<<cno<<"\n\n\t\t";
		    cout<<"Customer name :";
		    puts(cname);
		    cout<<"\n\n\t\t";
		    cout<<"Customer adress :"<<adress<<"\n\n\t\t";
		    cout<<"Customer Service number :" <<a<<"\n\n\t\t";
		    cout<<"Costumer Smart card number :"<<b<<"\n\n\t\t";
		    cout<<"Costumer Phone number :"<<c<<"\n\n\t\t";
		    cout<<"Customer Bill number :"<<i<<"\n";
		    }
      int rcno()
      {
      return cno;
      }
      }c;
 
      //FUNCTION TO WRITE THE VALUES
 
      void write(consumer &c)
		{
		char ch;
		fstream f1;
		c.entry();
		f1.open("main.dat",ios::app|ios::binary);
		cout<<"\n\n\tDo you want to save the record(y/n)\t";
		cin>>ch;
		if(ch=='y'||ch=='Y')
		{
		f1.write((char*)&c,sizeof(c));
		}
		f1.close();
		}
 
	  //FUNCTION TO READ THE VALUES
 

      //FUNCTION FOR SEARCHING THE RECORD

      void search()
		{
		consumer c;
		int rn ;
		char found='n';
		ifstream f1("main.dat",ios::in);
		cout<<"\n\n Enter Customer ID you want to SEARCH :\t";
		cin>>rn;
		while(!f1.eof())
		{
		f1.read((char*)&c,sizeof(c));
		if(c.rcno()==rn)
		{
		c.display();
		found='y';
		break;
		}
		if (!f1.eof()) 
		break;
		}
		if(found=='n')
		cout<<"\n\n\tRECORD NOT FOUND!!!!!!!!!!!!!\n"<<endl;
		f1.close();
		}
 
      //FUNCTION TO DELELTE THE RECORD
 
      void del()
		{
		ifstream f1("main.dat",ios::in);
		ofstream f2("temp.dat",ios::out);
		int rno;
		char found='f',confirm='n';
		cout<<"\n\n Enter Customer ID you want to DELETE :\t";
		cin>>rno;
		while(!f1.eof())
		{
		f1.read((char*)&c,sizeof(c));
		if(c.rcno()==rno)
		{
		c.display();
		found='t';
		cout<<"\n\n Are you sure you want to DELETE this record ? (y/n)\t";
		cin>>confirm;
		if(confirm=='n')
		f2.write((char*)&c,sizeof(c));
		
		else if(confirm=='y')
		cout<<"\n\n\n\t\tRECORD SUCCESSFULLY DELETED!!";
		getch();
		}
		else
		f2.write((char*)&c,sizeof(c));
		if (!f1.eof()) 
		break;
		}

		if(found=='f')
		cout<<"\n\n\tRECORD NOT FOUND\n";
		f1.close();
		f2.close();
		remove("main.dat");
		rename("temp.dat","main.dat");
		clrscr();
		}
		
 
      //FUNCTION TO MODIFY THE RECORD
 
      void update()
		{
		fstream f1("main.dat",ios::in | ios::out | ios::binary);
		int rno;
		long pos;
		char found='f';
		cout<<"\n\n Enter the Customer ID you want to MODIFY :\t";
		cin>>rno;
		while(!f1.eof())
		{
		pos=f1.tellg();
		f1.read((char*)&c,sizeof(c));
		if(c.rcno()==rno)
		{c.display();
		getch();
		cout<<"\n\tENTER NEW DETAILS\n";
		c.entry();
		f1.seekg(pos);
		f1.write((char*)&c,sizeof(c));
		found='t';
		break;
		}
		if (!f1.eof()) 
		break;
		}
		if(found=='f')
		cout<<"\n\n\tRECORD NOT FOUND\n";
		f1.seekg(0);
		clrscr();
		cout<<"\n Now the file contains\n\n";
		c.display();
		f1.close();
		getch();
		}
 
      //STARTING OF THE VOID MAIN
 
	void main()
		{
		unsigned int sum,add,d,j,e,f,g,h,k,l,w,x,y,z,choice;
		int abis=0,apep=0,aden=0,amun=0,aperk=0,acoc=0,atit=0,alux=0,atid=0,aree=0;
		unsigned int m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=0;
		float pend=0,print=0,graph=0,ram=0,hard=0,win=0,ant=0,p1=0,p2=0,g1=0,r1=0,h1=0,w1=0,an1=0,mo=0,mous=0,web=0,aweb=0,asc=0,scan=0,total=0;
		char pu,str[10],yes,et;
		clrscr();
 
	// WELCOME SCREEN
 
	clrscr();
	lab:;
	clrscr();
	cout<<"\n\n\n\t\tPLEASE WAIT WHILE LOADING THE PROJECT";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(150);
	cout<<".";
	delay(200);
	
	clrscr();
	gotoxy(1,6);
	cout<<"                          COMPUTER SCIENCE PROJECT WORK                         \n";
	cout<<"                                                                                \n";
	cout<<"********************************************************************************";
	cout<<"\n";
	cout<<"                         WELCOME TO THE TECH HUB COMPUTERS                       \n";
	cout<<"********************************************************************************\n";
	cout<<"********************************************************************************\n";
	gotoxy(2,21);
	 cout<<"                   SCHOOL:-VEDA VYASA D.A.V. PUBLIC  SCHOOL                   ";
	 gotoxy(2,22);
	 cout<<"                              D-BLOCK  VIKAS PURI                               ";
	 cout<<"\n";
	cout<<"********************************************************************************\n";
	cout<<"********************************************************************************\n";
	gotoxy(1,37);
	 cout<<"                              BY:- RISHABH HARIT & DIPANSHI BUDHRAJA                              \n";
	 gotoxy(1,39);
	 cout<<"                              CLASS:- XII C                              \n";
	 gotoxy(1,41);
	 cout<<"                              ROLL NO:- 29 , 13                               \n";
	 gotoxy(1,43);
	 cout<<"                              YEAR:- 2010-2011                                 \n";
	 cout<<"\n\n";
	cout<<"********************************************************************************\n";
	cout<<"********************************************************************************\n";
	cout<<"\n\n";
	gotoxy(45,48);
	cout<<"PRESS ENTER TO CONTINUE!!!!!!";
	getch();
	clrscr();
 
		//DETAILS OF THIS PROJECT
 
	gotoxy(25,10);
	cout<<"WELCOME TO THE WORLD OF COMPUTERS .";
	gotoxy(5,15);
	cout<<"THIS PROJECT CONTAINS SOME ITEMS AND SIMPLE THING YOU HAVE TO DO IS:-";
	gotoxy(5,17);
	cout<<"ENTER THE NAME , CUSTOMER ID , SERIAL NUMBER , SMART CARD NUMBER etc.";
	gotoxy(5,19);
	cout<<"THEN PURCHASE THE ITEMS AND REMEMBER THE QUANTITY ITEMS CARRY.";
	gotoxy(5,21);
	cout<<"YOU CAN ALSO MODIFY , DELETE , SEARCH A RECORD.";
	gotoxy(5,23);
	cout<<"YOU CAN ALSO DISPLAY ALL RECORDS YOU HAVE ENTERED IN YOUR COMPUTER.";
	gotoxy(5,27);
	cout<<"WE HOPE THAT YOU WILL BE SATISFIED WITH OUR SERVICE.";
	gotoxy(5,29);
	cout<<"WE ARE NOT RESPONSIBLE FOR ANY DEFECT IN THE PRODUCT YOU PURCHASE.";
	getch();
	clrscr();
 
 //LOADING THE PROJECT
 
	gotoxy(32,13);
	cout<<"********************";
	gotoxy(32,15);
	cout<<"LOADING YOUR PROJECT";
	gotoxy(32,17);
	cout<<"********************";
	gotoxy(32,20);
	cout<<"PLEASE WAIT.........";
	delay(200);
	gotoxy(32,35);
	cout<<"10 % completed..";
	delay(200);
	gotoxy(32,35);
	cout<<"20 % completed...";
	delay(200);
	gotoxy(32,35);
	cout<<"30 % completed....";
	delay(200);
	gotoxy(32,35);
	cout<<"40 % completed.....";
	delay(200);
	gotoxy(32,35);
	cout<<"50 % completed......";
	delay(200);
	gotoxy(32,35);
	cout<<"60 % completed.......";
	delay(200);
	gotoxy(32,35);
	cout<<"70 % completed........";
	delay(200);
	gotoxy(32,35);
	cout<<"80 % completed.........";
	delay(200);
	gotoxy(32,35);
	cout<<"90 % completed..........";
	delay(200);
	gotoxy(32,35);
	cout<<"100 % completed...........";
	delay(500);
 
			// TO PURCHASE ,SEARCH ,MODIFY ,DELETE ,DISPLAY ALL RECORDS ,DETAILS ,NEW CUSTOMER
 
		again:;
		clrscr();
		cout<<"\n\t\t\t    ^^^^^^^^^^^^^^^^^^^^^^^^^^^";
		cout<<"\n\t\t\t    !=========================!\n";
		cout<<"\n\t\t\t    !****    TECH HUB     ****!\n";
		cout<<"\n\t\t\t    !=========================!";
		cout<<"\n\t\t\t    ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\n\n\n\n";
		cout<<"  \t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$";
		cout<<"\n\n\t\t\t*     1.NEW CUSTOMER              *";
		cout<<"\n\n\t\t\t*     2.DETAILS                   *";
		cout<<"\n\n\t\t\t*     3.SEARCH A RECORD           *";
		cout<<"\n\n\t\t\t*     4.DELETE A RECORD           *";
		cout<<"\n\n\t\t\t*     5.MODIFY A RECORD           *";
		cout<<"\n\n\t\t\t*     6.DISPLAY ALL RECORDS       *";
		cout<<"\n\n\t\t\t*     7.QUANTITY AVAILABLE        *";
		cout<<"\n\n\t\t\t*     0.EXIT                      *\n";
		cout<<"\n\t\t\t$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$";
		cout<<"\n\n\n\n\t Enter your choice :\t";
		cin>>d;
		switch(d)
		{
 
	case 1:
 
		clrscr();
		cout<<"\n\n\n\t\t\t TECH HUB COMPUTERS";
		cout<<"\n\n\n\t\t\t COSUMER INFORMATION";
 
	// TO ENTER THE DETAILS OF THE COSTUMER
 
		write(c);
 
	// ITEMS AND THIER RATES
		start:
		cout<<"\n\n\nDO YOU WANT TO PURCHASE(Y/N):\n\n";
		cin>>pu;
		if(pu=='Y'||pu=='y')
		{
		clrscr();
 
	// PURCHASE LIST
 
		items:;
		cout<<"\n\t\t\t\t*************";
		cout<<"\n\t\t\t\tP

Hi,

Even though daviddoria is right (you should post your code on the forum), I understand that you´re in some difficulties, since you´re program is unusually unstructured (I had a quick look at the source code). It would take days for me to find an unidentified error in your code. Therefore I suggest that you start with structuring your code - shortening it down and dividing it into modules.

However, I noticed one thing I´d immediately change - use int instead of void as return value for the main function. Not all compilers support a void return value for the main function - as it´s not in the standard.

Cheers,
Erik

thank you for the quick reply everyone..but the problem is that i hav to study now ...cant give any more time to this.....dont give much time but plz give a look to it ...and suggest me how can this error come...am not even aware of it..........

Edited 5 Years Ago by Rishabh876: n/a

Comments
How is this our problem?

1) Please use real English words - I.e. "please" instead of "plz".

2) You should be able to produce these same errors with about 10 lines of code, we do not want to look at 1200!!

3) These missing header files means your system either does not have those files or your include paths are not setup properly. Which compiler/operating system/IDE are you using?

thank god it is runing at last..........after removing and manupulating whole progrm i ws not even able to compile this not even once. the problem was that i was making the changes on that cpp which i placed in c:\ and i dont know may be because of security reson it didnt run from there.......
and now as it is runing it had not a single error ..thank god....thanks everyone .....problem solved

This question has already been answered. Start a new discussion instead.