Gautam029

CODE WITH DEBUG PAGE

Jan 15th, 2012
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 29.11 KB | None | 0 0
  1. code:
  2. #include<iostream>
  3. #include<conio.h>
  4. #include<string.h>
  5. #include<dos.h>
  6. #include<stdio.h>
  7. #include<fstream>
  8. #include<process.h>
  9. #include<stdlib.h>
  10. using namespace std;
  11.  
  12. class train
  13.   {
  14.    private :
  15.    int trainno,nofafseat,nofasseat,noffsseat,nofacseat,nofssseat;
  16.    char trainname[60],startingpoint[60],destination[60];
  17.    public :
  18.    train()
  19.      {
  20.       trainno=0;
  21.       nofafseat=0;
  22.       nofasseat=0;
  23.       noffsseat=0;
  24.       nofacseat=0;
  25.       nofssseat=0;
  26.       strcpy(trainname,"/0");
  27.       strcpy(startingpoint,"/0");
  28.       strcpy(destination,"/0");
  29.      }
  30.    void input();            //To input the details
  31.    void display();          //To display the details
  32.    int returntr();
  33.    int returnaf();
  34.    int returnas();
  35.    int returnfs();
  36.    int returnac();
  37.    int returnss();
  38.   }tr;
  39.  
  40. int train::returntr()
  41.   {
  42.    return trainno;
  43.   }
  44.  
  45. int train::returnaf()
  46.   {
  47.    return nofafseat;
  48.   }
  49.  
  50. int train::returnas()
  51.   {
  52.    return nofasseat;
  53.   }
  54.  
  55. int train::returnfs()
  56.   {
  57.    return noffsseat;
  58.   }
  59.  
  60. int train::returnac()
  61.   {
  62.    return nofacseat;
  63.   }
  64.  
  65. int train::returnss()
  66.   {
  67.    return nofssseat;
  68.   }
  69.  
  70. void train::input()
  71.   {
  72. //   //clrscr();
  73.   // ////gotoxy(10,10);
  74.    cout<<"ENTER THE TRAIN NUMBER ";
  75.    //////gotoxy(57,10);
  76.    cin>>trainno;
  77.    //////gotoxy(10,12);
  78.    cout<<"ENTER THE NUMBER OF A/C FIRST CLASS SEATS";
  79.    //////gotoxy(57,12);
  80.    cin>>nofafseat;
  81.    //////gotoxy(10,14);
  82.    cout<<"ENTER THE NUMBER OF A/C SECOND CLASS SEATS";
  83.    ////gotoxy(57,14);
  84.    cin>>nofasseat;
  85.    ////gotoxy(10,16);
  86.    cout<<"ENTER THE NUMBER OF FIRST CLASS SLEEPER SEATS";
  87.    ////gotoxy(57,16);
  88.    cin>>noffsseat;
  89.    ////gotoxy(10,18);
  90.    cout<<"ENTER THE NUMBER OF A/C CHAIR CAR SEATS";
  91.    ////gotoxy(57,18);
  92.    cin>>nofacseat;
  93.    ////gotoxy(10,20);
  94.    cout<<"ENTER THE NUMBER OF SECOND CLASS SLEEPER SEATS";
  95.    ////gotoxy(57,20);
  96.    cin>>nofssseat;
  97.    ////gotoxy(10,22);
  98.    cout<<"ENTER THE TRAIN NAME";
  99.    ////gotoxy(57,22);
  100.    gets(trainname);
  101.    ////gotoxy(10,24);
  102.    cout<<"ENTER THE STARTING POINT ";
  103.    ////gotoxy(57,24);
  104.    gets(startingpoint);
  105.    ////gotoxy(10,26);
  106.    cout<<"ENTER THE DESTINATION ";
  107.    ////gotoxy(57,26);
  108.    gets(destination);
  109.   }
  110.  
  111. void train::display ()
  112.   {
  113.    //clrscr();
  114.    ////gotoxy(10,10);
  115.    cout<<"TRAIN NUMBER ";
  116.    ////gotoxy(47,10);
  117.    cout<<trainno;
  118.    ////gotoxy(10,12);
  119.    cout<<"TRAIN NAME ";
  120.    ////gotoxy(47,12);
  121.    puts(trainname);
  122.    ////gotoxy(10,14);
  123.    cout<<"NO OF A/C FIRST CLASS SEATS ";
  124.    ////gotoxy(47,14);
  125.    cout<<nofafseat;
  126.    ////gotoxy(10,16);
  127.    cout<<"NO OF A/C SECOND CLASS SEATS ";
  128.    ////gotoxy(47,16);
  129.    cout<<nofasseat;
  130.    ////gotoxy(10,18);
  131.    cout<<"NO OF FIRST CLASS SLEEPER SEATS ";
  132.    ////gotoxy(47,18);
  133.    cout<<noffsseat;
  134.    ////gotoxy(10,20);
  135.    cout<<"NO OF A/C CHAIR CLASS SEATS ";
  136.    ////gotoxy(47,20);
  137.    cout<<nofacseat;
  138.    ////gotoxy(10,22);
  139.    cout<<"NO OF SECOND CLASS SLEEPER SEATS ";
  140.    ////gotoxy(47,22);
  141.    cout<<nofssseat;
  142.    ////gotoxy(10,24);
  143.    cout<<"STARTING POINT ";
  144.    ////gotoxy(47,24);
  145.    puts(startingpoint);
  146.    ////gotoxy(10,26);
  147.    cout<<"DESTINATION ";
  148.    ////gotoxy(47,26);
  149.    puts(destination);
  150.    ////gotoxy(10,28);
  151.    cout<<"PRESS ANY KEY TO CONTINUE ";
  152.    getch();
  153.   }
  154.  
  155. class tickets
  156.   {
  157.    int resno,toaf,nofaf,toas,nofas,tofs,noffs,toac,nofac,toss,nofss,age;
  158.    char status[40],name[40];
  159.    public:
  160.    tickets();
  161.    void reservation();              //For ticket reservation
  162.    void cancellation();             //For ticket cancellation
  163.    int ret();
  164.    void display();                  //To display reservation details
  165.   }tick;
  166.  
  167. tickets::tickets()
  168.   {
  169.    resno=0;
  170.    toaf=0;
  171.    nofaf=0;
  172.    toas=0;
  173.    nofas=0;
  174.    tofs=0;
  175.    noffs=0;
  176.    toac=0;
  177.    nofac=0;
  178.    toss=0;
  179.    nofss=0;
  180.    age=0;
  181.    strcpy(status,"/0");
  182.    strcpy(name,"/0");
  183.   }
  184.  
  185. int tickets::ret()
  186.   {
  187.    return resno;
  188.   }
  189.  
  190. void tickets::display()
  191.   {
  192.    int f=0;
  193.    //clrscr();
  194.    ifstream fn("Ticket1.dat",ios::out);
  195.    fn.seekg(0);
  196.    if(!fn)
  197.      {
  198.       cout<<"ERROR IN THE FILE ";
  199.      }
  200.    X:
  201.    ////gotoxy(10,10);
  202.    cout<<"ENTER THE RESERVATION NO ";
  203.    ////gotoxy(10,12);
  204.    int n;
  205.    cin>>n;
  206.    while(!fn.eof())
  207.      {
  208.       fn.read((char*)&tick,sizeof(tick));
  209.       ////gotoxy(10,10);
  210.       if(n==resno)
  211.     {
  212.      //clrscr();
  213.      f=1;
  214.      ////gotoxy(10,10);
  215.      cout<<"NAME ";
  216.      ////gotoxy(30,10) ;
  217.      cout<<name;
  218.      ////gotoxy(10,12);
  219.      cout<<"AGE ";
  220.      ////gotoxy(30,12);
  221.      cout<<age;
  222.      ////gotoxy(10,14);
  223.      cout<<"PRESENT STATUS ";
  224.      ////gotoxy(30,14);
  225.      cout<<status;
  226.      ////gotoxy(10,16);
  227.      cout<<"RESERVATION NUMBER ";
  228.      ////gotoxy(30,16);
  229.      cout<<resno;
  230.      ////gotoxy(10,18);
  231.      cout<<"PRESS ANY KEY TO CONTINUE ";
  232.      getch();
  233.     }
  234.      }
  235.    if(f==0)
  236.      {
  237.       //clrscr();
  238.       ////gotoxy(10,10);
  239.       cout<<"UNRECOGINIZED RESERVATION NO !!! WANNA RETRY ?(Y/N) ";
  240.       char a;
  241.       ////gotoxy(10,12);
  242.       cin>>a;
  243.       if(a=='y'||a=='Y')
  244.     {
  245.      //clrscr();
  246.      goto X;
  247.     }
  248.       else
  249.     {
  250.      ////gotoxy(10,12);
  251.      cout<<"PRESS ANY KEY TO CONTINUE";
  252.      getch();
  253.     }
  254.      }
  255.    fn.close();
  256.   }
  257. void tickets::reservation()
  258.   {
  259.    //clrscr();
  260.    ////gotoxy(10,10);
  261.    cout<<"RESERVATION ";
  262.    ////gotoxy(10,12);
  263.    cout<<"ENTER THE TRAIN NO: ";
  264.    int tno,f=0;
  265.    cin>>tno;
  266.    ofstream file;
  267.    ifstream fin("Train1.dat",ios::out);
  268.    fin.seekg(0);
  269.    if(!fin)
  270.      {
  271.       //clrscr();
  272.       ////gotoxy(10,10);
  273.       cout<<"ERROR IN THE FILE ";
  274.      }
  275.    else
  276.      {
  277.       //clrscr();
  278.       while(!fin.eof())
  279.     {
  280.      fin.read((char*)&tr,sizeof(tr));
  281.      int z;
  282.      z=tr.returntr();
  283.      if(tno==z)
  284.        {
  285.         f=1;
  286.         nofaf=tr.returnaf();
  287.         nofas=tr.returnas();
  288.         noffs=tr.returnfs();
  289.         nofac=tr.returnac();
  290.         nofss=tr.returnss();
  291.        }
  292.     }
  293.       if(f==1)
  294.     {
  295.      file.open("Ticket1.dat",ios::app);
  296.      S:
  297.      //clrscr();
  298.      ////gotoxy(10,10);
  299.      cout<<"NAME:";
  300.      gets(name);
  301.      ////gotoxy(10,12);
  302.      cout<<"AGE:";
  303.      cin>>age;
  304.      //clrscr();
  305.      ////gotoxy(10,10);
  306.      cout<<"SELECT THE CLASS WHICH YOU WISH TO TRAVEL";
  307.      ////gotoxy(10,12);
  308.      cout<<"1.A/C FIRST CLASS " ;
  309.      ////gotoxy(10,14);
  310.      cout<<"2.A/C SECOND CLASS " ;
  311.      ////gotoxy(10,16);
  312.      cout<<"3.FIRST CLASS SLEEPER " ;
  313.      ////gotoxy(10,18);
  314.      cout<<"4.A/C CHAIR CAR " ;
  315.      ////gotoxy(10,20);
  316.      cout<<"5.SECOND CLASS SLEEPER ";
  317.      ////gotoxy(10,22);
  318.      int c;
  319.      cin>>c;
  320.      switch(c)
  321.        {
  322.         case 1:toaf++;
  323.            resno=rand();
  324.            if((nofaf-toaf)>0)
  325.              {
  326.               strcpy(status,"confirmed");
  327.               ////gotoxy(10,24) ;
  328.               cout<<"STATUS";
  329.               ////gotoxy(30,24);
  330.               puts(status);
  331.               ////gotoxy(10,26);
  332.               cout<<"RESERVATION NO";
  333.               ////gotoxy(30,26);
  334.               cout<<resno;
  335.               getch();
  336.               file.write((char*)&tick,sizeof(tick));
  337.               break;
  338.              }
  339.            else
  340.              {
  341.               strcpy(status,"pending");
  342.               ////gotoxy(10,24);
  343.               cout<<"STATUS";
  344.               ////gotoxy(30,24);
  345.               puts(status);
  346.               ////gotoxy(10,26);
  347.               cout<<"RESERVATION NO";
  348.               ////gotoxy(30,26);
  349.               cout<<resno;
  350.               getch();
  351.               file.write((char*)&tick,sizeof(tick));
  352.               break;
  353.              }
  354.         case 2:toas++;
  355.            resno=rand();
  356.            if((nofas-toas)>0)
  357.              {
  358.               strcpy(status,"confirmed");
  359.               ////gotoxy(10,24) ;
  360.               cout<<"STATUS";
  361.               ////gotoxy(30,24);
  362.               puts(status);
  363.               ////gotoxy(10,26);
  364.               cout<<"RESERVATION NO";
  365.               ////gotoxy(30,26);
  366.               cout<<resno;
  367.               getch();
  368.               file.write((char*)&tick,sizeof(tick));
  369.               break;
  370.              }
  371.            else
  372.              {
  373.               strcpy(status,"pending");
  374.               ////gotoxy(10,24);
  375.               cout<<"STATUS";
  376.               ////gotoxy(30,24);
  377.               puts(status);
  378.               ////gotoxy(10,26);
  379.               cout<<"RESERVATION NO";
  380.               ////gotoxy(30,26);
  381.               cout<<resno;
  382.               getch();
  383.               file.write((char*)&tick,sizeof(tick));
  384.               break;
  385.              }
  386.         case 3:tofs++;
  387.            resno=rand();
  388.            if((noffs-tofs)>0)
  389.              {
  390.               strcpy(status,"confirmed");
  391.               ////gotoxy(10,24) ;
  392.               cout<<"STATUS";
  393.               ////gotoxy(30,24);
  394.               puts(status);
  395.               ////gotoxy(10,26);
  396.               cout<<"RESERVATION NO";
  397.               ////gotoxy(30,26);
  398.               cout<<resno;
  399.               getch();
  400.               file.write((char*)&tick,sizeof(tick));
  401.               break;
  402.              }
  403.            else
  404.              {
  405.               strcpy(status,"pending");
  406.               ////gotoxy(10,24);
  407.               cout<<"STATUS";
  408.               ////gotoxy(30,24);
  409.               puts(status);
  410.               ////gotoxy(10,26);
  411.               cout<<"RESERVATION NO";
  412.               ////gotoxy(30,26);
  413.               cout<<resno;
  414.               getch();
  415.               file.write((char*)&tick,sizeof(tick));
  416.               break;
  417.              }
  418.         case 4:toac++;
  419.            resno=rand();
  420.            if((nofac-toac)>0)
  421.              {
  422.               strcpy(status,"confirmed");
  423.               ////gotoxy(10,24) ;
  424.               cout<<"STATUS";
  425.               ////gotoxy(30,24);
  426.               puts(status);
  427.               ////gotoxy(10,26);
  428.               cout<<"RESERVATION NO";
  429.               ////gotoxy(30,26);
  430.               cout<<resno;
  431.               getch();
  432.               file.write((char*)&tick,sizeof(tick));
  433.               break;
  434.              }
  435.            else
  436.              {
  437.               strcpy(status,"pending");
  438.               ////gotoxy(10,24);
  439.               cout<<"STATUS";
  440.               ////gotoxy(30,24);
  441.               puts(status);
  442.               ////gotoxy(10,26);
  443.               cout<<"RESERVATION NO";
  444.               ////gotoxy(30,26);
  445.               cout<<resno;
  446.               getch();
  447.               file.write((char*)&tick,sizeof(tick));
  448.               break;
  449.              }
  450.         case 5:toss++;
  451.            resno=rand();
  452.            if((nofss-toss)>0)
  453.              {
  454.               strcpy(status,"confirmed");
  455.               ////gotoxy(10,24) ;
  456.               cout<<"STATUS";
  457.               ////gotoxy(30,24);
  458.               puts(status);
  459.               ////gotoxy(10,26);
  460.               cout<<"RESERVATION NO";
  461.               ////gotoxy(30,26);
  462.               cout<<resno;
  463.               getch();
  464.               file.write((char*)&tick,sizeof(tick));
  465.               break;
  466.              }
  467.            else
  468.              {
  469.               strcpy(status,"pending");
  470.               ////gotoxy(10,24);
  471.               cout<<"STATUS";
  472.               ////gotoxy(30,24);
  473.               puts(status);
  474.               ////gotoxy(10,26);
  475.               cout<<"RESERVATION NO";
  476.               ////gotoxy(30,26);
  477.               cout<<resno;
  478.               getch();
  479.               file.write((char*)&tick,sizeof(tick));
  480.               break;
  481.              }
  482.        }
  483.      ////gotoxy(10,28);
  484.      cout<<"DO YOU WISH TO CONTINUE BOOKING TICKETS (Y/N) ? ";
  485.      ////gotoxy(10,30);
  486.      char n;
  487.      cin>>n;
  488.      if(n=='y'||n=='Y')
  489.        {
  490.         goto S;
  491.        }
  492.     }
  493.      }
  494.    if(f==0)
  495.      {//clrscr();
  496.       ////gotoxy(10,10);
  497.       //delay(1000);
  498.       cout<<"ERROR IN THE TRAIN NUMBER ENTERED !!!";
  499.       getch();
  500.      }
  501.    file.close();
  502.   }
  503. void tickets::cancellation()
  504.   {//clrscr();
  505.    ifstream fin;
  506.    fin.open("Ticket1.dat",ios::out);
  507.    ofstream file;
  508.    file.open("Temp1.dat",ios::app);
  509.    fin.seekg(0);
  510.    ////gotoxy(10,10);
  511.    cout<<"ENTER THE RESERVATION NO ";
  512.    int r,f=0;
  513.    cin>>r;
  514.    if(!fin)
  515.      {
  516.       cout<<"ERROR IN THE FILE !!!";
  517.      }
  518.    while(!fin.eof())
  519.      {
  520.       fin.read((char*)&tick,sizeof(tick));
  521.       int z;
  522.       z=ret();
  523.       if(z!=r)
  524.     {
  525.      file.write((char*)&tick,sizeof(tick));
  526.     }
  527.       if(z==r)
  528.     {
  529.      f=1;
  530.     }
  531.      }
  532.    file.close();
  533.    fin.close();
  534.    remove("Ticket1.dat");
  535.    rename("Temp1.dat","Ticket1.dat");
  536.    if(f==0)
  537.      {////gotoxy(10,12);
  538.       cout<<"NO SUCH RESERVATION IS MADE !!! PLEASE RETRY....";
  539.       getch();
  540.      }
  541.    else
  542.      {
  543.       ////gotoxy(10,12);
  544.       cout<<"RESERVATION CANCELLED";
  545.       getch();
  546.      }
  547.   }
  548.  
  549. void main()
  550.   {
  551.    int ch,no,i,r=1000,j;
  552.    //clrscr();
  553.    ////gotoxy(33,22);
  554.    cout<<"WELCOME";
  555.    //delay(1500);
  556.    //delay(1000);
  557.    Z:
  558.    //clrscr();
  559.    ////gotoxy(25,8) ;
  560.    cout<<"RAILWAY TICKET RESERVATION";
  561.    ////gotoxy(25,9);
  562.    cout<<"==========================";
  563.    ////gotoxy(20,15) ;
  564.    cout<<"1.TRAIN DETAILS";
  565.    ////gotoxy(20,17);
  566.    cout<<"2.UPDATE TRAIN DETAILS ";
  567.    ////gotoxy(20,19);
  568.    cout<<"3.RESERVING A TICKET ";
  569.    ////gotoxy(20,21);
  570.    cout<<"4.CANCELLING A TICKET";
  571.    ////gotoxy(20,23);
  572.    cout<<"5.DISPLAY THE PRESENT TICKET STATUS ";
  573.    ////gotoxy(20,25);
  574.    cout<<"6.EXIT";
  575.    
  576.    ////gotoxy(20,27);
  577.    cout<<"ENTER YOUR CHOICE: ";
  578.    cin>>ch;
  579.    char n;
  580.    switch(ch)
  581.      {
  582.       case 1:ifstream fin("Train1.dat",ios::out);
  583.          fin.seekg(0);
  584.          //clrscr();
  585.          if(!fin)
  586.            {
  587.         //clrscr();
  588.         ////gotoxy(10,10);
  589.         cout<<"ERROR IN THE FILE !!!";
  590.            }
  591.          else
  592.            {//clrscr();
  593.         while(!fin.eof())
  594.           {
  595.            fin.read((char*)&tr,sizeof(tr));
  596.            tr.display();
  597.           }
  598.            }
  599.          fin.close();
  600.          goto Z;
  601.       case 2://clrscr();
  602.          ////gotoxy(20,10);
  603.          
  604.          cout<<"ENTER THE PASSWORD " ;
  605.          cin>>j;
  606.          ////gotoxy(20,30);
  607.          cout<<"CHECKING  PLEASE WAIT.....................";
  608.          //delay(2000);
  609.          if(j==r)
  610.            {
  611.         Y:
  612.         ofstream fout("Train1.dat",ios::app);
  613.         tr.input();
  614.         fout.write((char*)&tr,sizeof(tr));
  615.         fout.close();
  616.         ////gotoxy(10,30);
  617.         cout<<"DO YOU WISH TO CONTINUE UPDATING ?(Y/N)";
  618.         cin>>n;
  619.        
  620.         if(n=='y'||n=='Y')
  621.            goto Y;
  622.         goto Z;
  623.            }
  624.          else
  625.            goto Z;
  626.          
  627.       case 3:
  628.          
  629.           tick.reservation();
  630.        
  631.          goto Z;
  632.       case 4:
  633.           tick.cancellation();
  634.          goto Z;
  635.       case 5:
  636.           tick.display();
  637.          goto Z;
  638.       case 6:
  639.           exit(0);
  640.      }
  641.    getch();
  642. }
  643.  
  644.  
  645. debug page:
  646.  
  647. 1>------ Build started: Project: project, Configuration: Debug Win32 ------
  648. 1>Compiling...
  649. 1>train.cpp
  650. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(25) : warning C4996: 'strcpy' was declared deprecated
  651. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  652. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  653. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(26) : warning C4996: 'strcpy' was declared deprecated
  654. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  655. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  656. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(27) : warning C4996: 'strcpy' was declared deprecated
  657. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  658. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  659. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(99) : warning C4996: 'gets' was declared deprecated
  660. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(270) : see declaration of 'gets'
  661. 1>        Message: 'This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  662. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(103) : warning C4996: 'gets' was declared deprecated
  663. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(270) : see declaration of 'gets'
  664. 1>        Message: 'This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  665. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(107) : warning C4996: 'gets' was declared deprecated
  666. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(270) : see declaration of 'gets'
  667. 1>        Message: 'This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  668. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(151) : warning C4996: 'getch' was declared deprecated
  669. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  670. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  671. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(180) : warning C4996: 'strcpy' was declared deprecated
  672. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  673. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  674. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(181) : warning C4996: 'strcpy' was declared deprecated
  675. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  676. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  677. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(231) : warning C4996: 'getch' was declared deprecated
  678. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  679. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  680. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(251) : warning C4996: 'getch' was declared deprecated
  681. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  682. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  683. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(299) : warning C4996: 'gets' was declared deprecated
  684. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\stdio.h(270) : see declaration of 'gets'
  685. 1>        Message: 'This function or variable may be unsafe. Consider using gets_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  686. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(325) : warning C4996: 'strcpy' was declared deprecated
  687. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  688. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  689. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(334) : warning C4996: 'getch' was declared deprecated
  690. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  691. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  692. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(340) : warning C4996: 'strcpy' was declared deprecated
  693. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  694. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  695. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(349) : warning C4996: 'getch' was declared deprecated
  696. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  697. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  698. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(357) : warning C4996: 'strcpy' was declared deprecated
  699. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  700. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  701. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(366) : warning C4996: 'getch' was declared deprecated
  702. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  703. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  704. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(372) : warning C4996: 'strcpy' was declared deprecated
  705. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  706. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  707. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(381) : warning C4996: 'getch' was declared deprecated
  708. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  709. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  710. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(389) : warning C4996: 'strcpy' was declared deprecated
  711. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  712. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  713. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(398) : warning C4996: 'getch' was declared deprecated
  714. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  715. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  716. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(404) : warning C4996: 'strcpy' was declared deprecated
  717. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  718. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  719. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(413) : warning C4996: 'getch' was declared deprecated
  720. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  721. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  722. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(421) : warning C4996: 'strcpy' was declared deprecated
  723. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  724. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  725. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(430) : warning C4996: 'getch' was declared deprecated
  726. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  727. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  728. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(436) : warning C4996: 'strcpy' was declared deprecated
  729. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  730. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  731. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(445) : warning C4996: 'getch' was declared deprecated
  732. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  733. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  734. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(453) : warning C4996: 'strcpy' was declared deprecated
  735. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  736. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  737. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(462) : warning C4996: 'getch' was declared deprecated
  738. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  739. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  740. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(468) : warning C4996: 'strcpy' was declared deprecated
  741. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
  742. 1>        Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
  743. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(477) : warning C4996: 'getch' was declared deprecated
  744. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  745. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  746. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(498) : warning C4996: 'getch' was declared deprecated
  747. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  748. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  749. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(538) : warning C4996: 'getch' was declared deprecated
  750. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  751. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  752. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(544) : warning C4996: 'getch' was declared deprecated
  753. 1>        c:\program files (x86)\microsoft visual studio 8\vc\include\conio.h(145) : see declaration of 'getch'
  754. 1>        Message: 'The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getch. See online help for details.'
  755. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(600) : error C2360: initialization of 'fin' is skipped by 'case' label
  756. 1>        c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(581) : see declaration of 'fin'
  757. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(626) : error C2360: initialization of 'fin' is skipped by 'case' label
  758. 1>        c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(581) : see declaration of 'fin'
  759. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(631) : error C2360: initialization of 'fin' is skipped by 'case' label
  760. 1>        c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(581) : see declaration of 'fin'
  761. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(634) : error C2360: initialization of 'fin' is skipped by 'case' label
  762. 1>        c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(581) : see declaration of 'fin'
  763. 1>c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(637) : error C2360: initialization of 'fin' is skipped by 'case' label
  764. 1>        c:\users\gautam\documents\visual studio 2005\projects\project\project\train.cpp(581) : see declaration of 'fin'
  765. 1>Build log was saved at "file://c:\Users\Gautam\Documents\Visual Studio 2005\Projects\project\project\Debug\BuildLog.htm"
  766. 1>project - 5 error(s), 35 warning(s)
  767. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Advertisement
Add Comment
Please, Sign In to add comment