#include <fstream.h>
class Person
{
char emp_name[40];
int Tel;
public:
void ShowData()
{cout<<"Name: "<<emp_name<<endl<<"tel: "<<Tel;}
};
void main()
{
Person s1;
ifstream file("c:\\mydocuments\\db_add_tel.mdb");
file.read((char*)&s1,sizeof(s1));
s1.ShowData();
}
can anyone telme whats really happening aftet opening the add_tel file.
actually i don't know how to makethe screen stay because when i run the program(any)it just runs and exits without showin' whatse ever results.in this forum it was suggested sometime back to use system pause statement even that didn't worked so plz do reply..
secondally when i have to enter anything(string)i have to click at that pt(cursur) and then it takes input and that too only characters(no numbers).where's the problem???
am using borland 5.02