• 大小: 723KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-02
  • 语言: C/C++
  • 标签: QT  

资源简介

工资管理系统 QT 信息以文件方式写入 C++语言 QT界面

资源截图

代码片段和文件信息

#include “App.h“



QVectorstain;
QVector::iterator iter = stain.begin(); //容器迭代器

int run::num = 0;
/*
职位选择操作
*/
void run::post_select(char *path)
{
int snum;
post_sale psale;
post_tech tech;
post_manager mana;
sale_manager smana;
technical_director tdir;

while(1)
{
cout<<“请选择员工类型:1.销售员 2.技术员 3.经理 4.销售经理 5.技术总监 6.返回上级菜单。“< cout<<“请输入1到5的数字 >> “;
cin>>snum;
switch(snum)
{
case 1:
psale.saleinfo(path);
break;

case 2:
tech.techinfo(path);
break;

case 3:
mana.managerinfo(path);
break;

case 4:
smana.sale_manager_info(path);
break;

case 5:
tdir.tech_dir_info(path);
break;

case 6: //返回上一级
return;
break;
}

cout<<“是否继续添加 y/n >> 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-06-07 15:54  wage2\
     文件        5079  2012-06-06 22:44  wage2\App.cpp
     文件         746  2012-06-06 22:43  wage2\App.h
     文件        7640  2012-06-06 10:11  wage2\frame.cpp
     文件         490  2012-05-31 18:13  wage2\frame.h
     文件        5335  2012-06-07 11:28  wage2\baseinfo.cpp
     文件        1850  2012-06-07 13:13  wage2\baseinfo.h
     文件        3072  2012-06-07 15:44  wage2\dbbase
     文件         355  2012-06-06 13:36  wage2\employee.txt
     文件        1575  2012-06-07 15:46  wage2\main.cpp
     目录           0  2012-06-05 19:31  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\
     文件        8803  2012-06-05 19:31  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\Makefile
     文件        8276  2012-06-05 19:31  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\Makefile.Debug
     文件        8336  2012-06-05 19:31  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\Makefile.Release
     目录           0  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\
     文件       39756  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\main.obj
     文件        2377  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\moc_widget.cpp
     文件       42220  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\moc_widget.obj
     文件       62976  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\newwage.exe
     文件      884372  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\newwage.ilk
     文件         878  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\newwage.intermediate.manifest
     文件     1084416  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\newwage.pdb
     文件      116097  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\debug\widget.obj
     目录           0  2012-06-07 15:54  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\release\
     文件        6540  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\ui_widget.h
     文件      782336  2012-06-05 19:39  wage2\newwage-build-desktop-Qt_4_8_1_for_Desktop_-_MSVC2008__Qt_SDK____\vc90.pdb
     文件        1428  2012-06-05 13:31  wage2\post_manager.cpp
     文件         375  2012-05-28 19:53  wage2\post_manager.h
     文件        1433  2012-06-05 13:31  wage2\post_sale.cpp
     文件         432  2012-05-28 19:38  wage2\post_sale.h
     文件        1409  2012-06-05 13:30  wage2\post_tech.cpp
............此处省略11个文件信息

评论

共有 条评论