
-----------------------------------
HolyDude
Sat Nov 08, 2008 10:09 pm

I cant find one error in my program
-----------------------------------
Hi,

I am new to this board,
this is a small program of mine 
and I compiled it in turbo c++,
my dev wasnt working. 

I was resulted in 3 errors,
2 of which I correced by putting a curly bracked and ';' in the end.

I am left with one more error which says 
Line Number 67 : Declaration syntax error

#include
#include
#include

class Student{ int rollno;
               char name[30];
               float marks;
              public:
               void gdata();
	       void pdata();
	       void read_namemarks();
               int getrollno();
             };

void Student::gdata()
{
 coutrollno;
 cout rollno;
    cout  marks;
}

void Student::pdata() {
    cout  rn;
                       Search(rn);
                       break;
                       case 3 :
                       cout > rn;
                       Delete(rn);
                       break;
                       case 4 :
                       cout > rn;
                       Modify(rn);
                       break;
                       case 5 :
                       Display_Studentfile();
                       break;
                   }
                   getch();
               } while (choice >= 1 && choice 