
建议用HD Tune Pro 35重新检测一次,如果仍是这个结果,那么有如下建议:
你的硬盘型号在西数官方网站上是查不到的,甚至在网上也查不到该型硬盘的数据。而且其名称也不符合西数硬盘的命名规范。你可以看看西数的产品列表:
所以无论怎么说,这块硬盘都是有问题的。
首先,看看的硬盘标签上的型号,应该不会是WL500GSA1672,应该是WD500XXX样子的。然后找商家吧,让他去给你搞,怎么也该识别为盘体标签上的型号。搞不出来,让他换,或退货。
终于全部完成 录入的时候要注意销售员上司的名称要和他所属销售经理的名称对应。系统会自己生成4个记录文件,在生成的时候会又提示。
#include<iostreamh>
#include<stdlibh>
#include<stdioh>
#include<stringh>
#define ManagerFile "ManagerFiletxt"
#define TechnicianFile "TechnicianFiletxt"
#define SellerFile "SellerFiletxt"
#define SellManagerFile "SellManagerFiletxt"
///////////////////////////////////////////////////////
/////////////////////////////////////////////////////// 文件 *** 作模块
FILE fpManager,fpTechnician,fpSeller,fpSellManager; //经理、技术员、销售员、销售经理文件指针
FILE FileOpen(char FileName[]) //文件打开函数
{
FILE fp;
if((fp=fopen(FileName,"r"))==NULL)
{
fp=fopen(FileName,"w");
cout<<"文件打开失败重新创建记录文件";
return fp;
}
fp=fopen(FileName,"r+");
return fp;
}
void FileClose(FILE fp) // 文件关闭函数
{
if(fclose(fp)==0);
else
cout<<"文件关闭失败"<<endl;
}
////////////////////////////////////////////////////////
//////////////////////////////////////////////////////// 类型定义模块
class Staff //职工节本信息
{
public:
char Staff_num[10]; //职工号
char Staff_name[10]; //姓名
int Staff_age; //年龄
float Staff_wages; //月工资
char Staff_sex[2]; //性别
char Staff_department[20]; //部门职位
Staff()
{
cout<<endl<<"请输入职工号:";
cin>>Staff_num;
cout<<endl<<"请输入姓名:";
cin>>Staff_name;
cout<<endl<<"请输入年龄:";
cin>>Staff_age;
cout<<endl<<"请输入性别:";
cin>>Staff_sex;
cout<<endl<<"请输入职位:";
cin>>Staff_department;
}
void StaffOutput()
{
cout<<endl<<"职工号:"<<Staff_num<<" "<<endl;
cout<<"姓名:"<<Staff_name<<endl;
cout<<"年龄:"<<Staff_age<<endl;
cout<<"性别:"<<Staff_sex<<endl;
cout<<"职位部门:"<<Staff_department;
}
};
class Manager:public Staff //经理
{
public:
Manager()
{
cout<<endl<<"输入经理月工资:";
cin>>Staff_wages;
}
void ManagerOutput()
{
StaffOutput();
cout<<endl<<"经理月工资为:"<<Staff_wages<<endl;
}
};
class Technician:public Staff //技术员类
{
public:
float hour; //工作时间
float wph; //每小时工资
int day; //每月工作天数
Technician()
{
cout<<endl<<"请输入每天工作时间:";
cin>>hour;
cout<<endl<<"请输入每小时工资:";
cin>>wph;
cout<<endl<<"请输入每月工作天数:";
cin>>day;
Staff_wages=hourwphday;
}
void TechnicianOutput()
{
StaffOutput();
cout<<endl<<"技术员工资为:"<<Staff_wages<<endl;
}
};
class Seller:public Staff //销售员类
{
public:
float proportion; //提成比例
float volume; //销售额
char Boss[10];
Seller()
{
cout<<endl<<"请输入提成比例(如:004):";
cin>>proportion;
cout<<endl<<"请输入销售额:";
cin>>volume;
Staff_wages=proportionvolume;
cout<<"请输入上司名称"<<endl;
cin>>Boss;
}
void SellerOutput()
{
StaffOutput();
cout<<endl<<"销售员工资为:"<<Staff_wages<<endl;
cout<<"提成比例为:"<<proportion<<endl;
cout<<"销售额为:"<<volume<<endl;
cout<<"上司为:"<<Boss<<endl;
}
};
class SellManager:public Staff //销售经理类
{
public:
float BasicSalary; //底薪
float Proportion; //比例
SellManager()
{
cout<<endl<<"请输入销售经理底薪:"<<endl;
cin>>BasicSalary;
cout<<"请输入销售经理提成比例(如05):"<<endl;
cin>>Proportion;
fpSeller=FileOpen(SellerFile);
Seller temp;
temp=(Seller )malloc(sizeof(Seller));
float sum=0;
while(fread(temp,sizeof(Seller),1,fpSeller)==1)
{
if(strcmp(Staff_name,temp->Boss)==0)
{
sum=sum+temp->volume;
}
}
Staff_wages=sumProportion+BasicSalary;
FileClose(fpSeller);
}
SellManagerOutput()
{
StaffOutput();
cout<<endl<<"底薪为:"<<BasicSalary<<endl;
cout<<"提成比例为:"<<Proportion<<endl;
cout<<"工资为:"<<Staff_wages<<endl;
}
};
/////////////////////////////////////////////////////////// 数据录入模块
////////////////////////////////////////////////////////
int InputManager() //录入经理数据
{
fpManager=FileOpen(ManagerFile); //打开经理数据文件
fseek(fpManager,0,2); //指针移动到末尾
int choose=1;
while(1)
{
Manager temp;
fwrite(&temp,sizeof(Manager),1,fpManager);
cout<<"是否继续(1、继续 0、退出)?";
cin>>choose;
if(choose==0)
{
FileClose(fpManager);
return 1;
}
}
}
int InputTechnician() //录入经理数据
{
fpTechnician=FileOpen(TechnicianFile); //打开经理数据文件
fseek(fpTechnician,0,2); //指针移动到末尾
int choose=1;
while(1)
{
Technician temp;
fwrite(&temp,sizeof(Technician),1,fpTechnician);
cout<<"是否继续(1、继续 0、退出)?";
cin>>choose;
if(choose==0)
{
FileClose(fpTechnician);
return 1;
}
}
}
int InputSeller() //录入经理数据
{
fpSeller=FileOpen(SellerFile); //打开经理数据文件
fseek(fpSeller,0,2); //指针移动到末尾
int choose=1;
while(1)
{
Seller temp;
fwrite(&temp,sizeof(Seller),1,fpSeller);
cout<<"是否继续(1、继续 0、退出)?";
cin>>choose;
if(choose==0)
{
FileClose(fpSeller);
return 1;
}
}
}
int InputSellManager()
{
fpSellManager=FileOpen(SellManagerFile);
fseek(fpSellManager,0,2);
int choose=1;
while(1)
{
SellManager temp;
fwrite(&temp,sizeof(SellManager),1,fpSellManager);
cout<<"是否继续(1、继续 0、退出)?";
cin>>choose;
if(choose==0)
{
FileClose(fpSellManager);
return 1;
}
}
}
////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////// 数据打印模块
void printManager()
{
fpManager=FileOpen(ManagerFile);
Manager temp;
temp=(Manager )malloc(sizeof(Manager));
while(fread(temp,sizeof(Manager),1,fpManager)==1)
{
temp->ManagerOutput();
}
}
void printTechnician()
{
fpTechnician=FileOpen(TechnicianFile);
Technician temp;
temp=(Technician )malloc(sizeof(Technician));
while(fread(temp,sizeof(Technician),1,fpTechnician)==1)
{
temp->TechnicianOutput();
}
}
void printSeller()
{
fpSeller=FileOpen(SellerFile);
Seller temp;
temp=(Seller )malloc(sizeof(Seller));
while(fread(temp,sizeof(Seller),1,fpSeller)==1)
{
temp->SellerOutput();
}
}
void printSellManager()
{
fpSellManager=FileOpen(SellManagerFile);
SellManager temp;
temp=(SellManager )malloc(sizeof(SellManager));
while(fread(temp,sizeof(SellManager),1,fpSellManager)==1)
{
temp->SellManagerOutput();
}
}
/////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////统计模块
void SellerStatistic() //按销售员统计
{
fpSellManager=FileOpen(SellManagerFile);
fpSeller=FileOpen(SellerFile);
SellManager SMtemp;
Seller Stemp;
SMtemp=(SellManager )malloc(sizeof(SellManager));
Stemp=(Seller )malloc(sizeof(Seller));
while(fread(SMtemp,sizeof(SellManager),1,fpSellManager)==1)
{ float sum=0;
cout<<endl<<SMtemp->Staff_name<<"下属销售员的销售情况:"<<endl;
while(fread(Stemp,sizeof(Seller),1,fpSeller)==1)
{
if(strcmp(SMtemp->Staff_name,Stemp->Boss)==0)
{ cout<<endl;
cout<<"姓名:"<<Stemp->Staff_name<<endl;
cout<<"销售额:"<<Stemp->volume<<endl;
cout<<endl;
sum=sum+Stemp->volume;
}
}
cout<<SMtemp->Staff_name<<"下属销售员的销售总金额为:"<<sum<<endl;
}
FileClose(fpSellManager);
FileClose(fpSeller);
}
void SellManagerStatistic()
{
struct Rank
{
char name[10];
float wages;
}rank[20];
int num=0;
fpSellManager=FileOpen(SellManagerFile);
SellManager temp;
temp=(SellManager )malloc(sizeof(SellManager));
while(fread(temp,sizeof(SellManager),1,fpSellManager)==1)
{
strcpy(rank[num]name,temp->Staff_name);
rank[num]wages=temp->Staff_wages;
num++;
}
Rank Rtemp;
for(int i=0;i<num-1;i++)
{
for(int j=1;j<num-i;j++)
{
if(rank[j]wages<rank[j+1]wages)
{
strcpy(Rtempname,rank[j]name);
Rtempwages=rank[j]wages;
strcpy(rank[j]name,rank[j+1]name);
rank[j]wages=rank[j+1]wages;
strcpy(rank[j+1]name,Rtempname);
rank[j+1]wages=Rtempwages;
}
}
}
cout<<"排序以后为(从大到小):"<<endl;
for(int k=0;k<num;k++)
{
cout<<endl;
cout<<"姓名"<<rank[k]name<<endl;
cout<<"工资:"<<rank[k]wages<<endl;
}
}
////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////// 目录模块
int StatisticMenu() //统计目录
{
int choose=0;
while(1)
{
cout<<endl;
cout<<"1、按销售员统计。"<<endl;
cout<<"2、按销售经理统计。"<<endl;
cout<<"0、返回上级目录。"<<endl;
cout<<"选择服务类型:";
cin>>choose;
switch(choose)
{
case 1:SellerStatistic();break;
case 2:SellManagerStatistic();break;
case 0:return 1;break;
}
}
}
int InputMenu() //数据目录
{
int choose=0;
while(1)
{
cout<<endl;
cout<<"1、录入经理数据。"<<endl;
cout<<"2、录入技术员数据。"<<endl;
cout<<"3、录入销售员数据。"<<endl;
cout<<"4、录入销售经理数据"<<endl;
cout<<"0、返回上级目录。"<<endl;
cout<<"请选择服务类型:";
cin>>choose;
switch(choose)
{
case 1:InputManager();break;
case 2:InputTechnician();break;
case 3:InputSeller();break;
case 4:InputSellManager();break;
case 0:return 0;break;
}
}
}
int PrintMenu() //打印目录
{
int choose=0;
while(1)
{
cout<<endl;
cout<<"1、显示经理数据。"<<endl;
cout<<"2、显示技术员数据。"<<endl;
cout<<"3、显示销售员数据"<<endl;
cout<<"4、显示销售经理数据"<<endl;
cout<<"0、返回上级目录"<<endl;
cout<<"请选择服务类型:";
cin>>choose;
switch(choose)
{
case 1:printManager();break;
case 2:printTechnician();break;
case 3:printSeller();break;
case 4:printSellManager();break;
case 0:return 0;break;
}
}
}
void ShowMenu() //主目录
{
int choose=0;
while(1)
{
cout<<endl;
cout<<"欢迎使用小型公司系统"<<endl;
cout<<"1、数据录入"<<endl;
cout<<"2、数据统计"<<endl;
cout<<"3、数据打印"<<endl;
cout<<"4、数据备份"<<endl;
cout<<"0、退出系统"<<endl;
cout<<"请输入服务类型:";
cin>>choose;
switch(choose)
{
case 1:InputMenu();break;
case 2:StatisticMenu();break;
case 3:PrintMenu();break;
case 4:cout<<endl<<"数据即时备份完成"<<endl;break;
case 0:exit(0);break;
}
}
}
///////////////////////////////////////////////////////////
void main()
{
ShowMenu();
}
这是Dell的光驱,光驱本身是不错的。驱动程序也没问题。
光驱只要能用,驱动程序程序就是好的,用得不爽跟驱动没关系。
碟读不出来有两种可能,要么是碟片有损伤,要么是光驱光头脏了。
如果喜欢DIY的话,可以自己把光驱拆下来,用酒精棉擦洗光头。自己弄不了,还是拿到维修商那儿去清洗一下。
你好 给你个简单解决方法
在电脑安装打开《驱动人生2012》 点驱动-驱动管理 - 驱动卸载 - 卸载显卡驱动- 后重启
(或手动删掉目前电脑上的所有显卡驱动及文件,一定要先删完)
重启如果系统提示要安装显卡驱动 你就点驱动人生一键更新安装该驱动就好了。
主要显卡驱动冲突导致
如果清理更新没解决 就多换几个驱动试。
打开驱动人生2012 点驱动-驱动管理 - 驱动更新 - 显卡驱动-
里面有不同日期版本的驱动可选 自己多试几个,总会有合适自己电脑的
1刷主板BIOS 改善
2电源供电问题
3桌面右键-N控制面板-3D设置-管理3D设置-程序设置-
1添加导致问题的程序-2电源管理模式,选择 最高性能优
以上就是关于tms320lf2406烧录故障,读写程序的时候总是写到一半就提示故障,继续不下去了。到底是怎么回事呢全部的内容,包括:tms320lf2406烧录故障,读写程序的时候总是写到一半就提示故障,继续不下去了。到底是怎么回事呢、悬赏C++源程序代码、HL-DT-ST DVD+-RW GSA-T21N 光驱等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)