954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

"File operations in c++"

Sir,
I need ur help in the Following Assignement.
I have to write a program to store the Employee details i.e rollno,Department,salary,name,experience etc using the file operation.
plz help me!
Urs
PriyaJaiGanesh

PriyaJaiGanesh
Newbie Poster
4 posts since Dec 2004
Reputation Points: 10
Solved Threads: 0
 

Hello Priya!
here are some Clue

struct employee
{
int rollno;
int Department;
int salary;
char name[20];
int experience;
};

class FileEmployee
{
employee local;
public:
FileEmployee()
{
//Open file Here
}
void AddData(employee &args)
{
//add data
};
void Showdata()
{
//show data
}

};

this is Skeleton of you program

thatsalok
Newbie Poster
4 posts since Sep 2004
Reputation Points: 10
Solved Threads: 1
 

We don't do your homework here for you. Please read the Announcement.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You