高分悬赏:急需用C语言或C++语言编写的文件系统,要求源文件,并且编译没有错误

来源:百度知道 编辑:UC知道 时间:2024/06/17 00:42:50
需要用的C的底层函数实现:login ,dir,create,delete,open,close,read,write等功能。

我自己写了一个在TC+ +下编译成功了,要想在VC下编译成功,只要把#include<conio.h>和clrscr();删除就行了,你自己看看

#include<fstream.h>
#include<conio.h>
#include<iostream.h>
#include<string.h>
#include<process.h>
#include<stdlib.h>

class employee
{
public:
char empname[20];
char empid[20];
char age[20];
char salary[20];
char dept[20];
char post[20];
public:
void get();

};

void employee::get()
{
cout<<"enter employee name\n";
cin>>empname;
cout<<"enter employee id\n";
cin>>empid;
cout<<"enter employee age \n";
cin>>age;
cout<<"enter employee salary\n";
cin>>salary;
cout<<"enter employee department \n";
cin>>dept;
cout<<&q