91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 6.24MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2024-01-27
  • 語言: C/C++
  • 標簽: MFC;VC++??

資源簡介

用vc++的mfc界面制作選課系統。有虛函數。類。靜態成員等等,,功能齊全,還有計算學分和選課限制。。計算學費的功能,,

資源截圖

代碼片段和文件信息

//?denglu.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“xuankexitong.h“
#include?“denglu.h“
#include?“xuankexitongDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

//---------------課程類-------------------
class?Course
{
public:
char?*strType*strName*professor*score;
int?count;
// static?int?count_sum;???//選課總人數

Course(){}
Course(char?*sTchar?*sNchar?*prochar?*sc)
{
strType=sT;strName=sN;professor=pro;score=sc;
count=0;
}
};
//---------------課程初始化--------------------
Course?cour[]={Course(“學科基礎““英語口語““趙老師““4“)
????Course(“學科基礎““高等數學““張老師““2“)
Course(“學科基礎““大學物理““李老師““1“)
Course(“學科基礎““政治經濟學““錢老師““1“)
Course(“專業基礎““程序設計““王老師““2“)
Course(“專業基礎““數據結構““陳老師““2“)
Course(“專業基礎““計算機原理““章老師““3“)
Course(“專業基礎““匯編語言““石老師““3“)
Course(“專業核心““OOP程序設計““劉老師““2“)
Course(“專業核心““編譯原理““顧老師““2“)
Course(“專業核心““微機原理““許老師““3“)
Course(“專業核心““計算機網絡““謝老師““3“)
};
//---------------學生類-------------------
class?Student2
{
public:
char?*xuehao;
char?*name*teacher;
int?x_numberscore_sumcost_sum;
bool?x_course[12];


Student2(){}
Student2(char?*xhchar?*nachar?*tea)//構造函數
{
xuehao=xh;name=na;teacher=tea;
x_number=0;score_sum=0;cost_sum=0;
for(int?k=0;k<12;k++)
x_course[k]=false;
}

int?Sum_score()//計算總學分
{
score_sum=0;
for?(int?k=0;k<12;k++)
{
if(x_course[k]==TRUE)
{
score_sum=atoi(cour[k].score)+score_sum;
}
}
return?score_sum;
}

virtual?int?Sum_cost()//計算總學費
{
cost_sum=0;
for?(int?kx=0;kx<12;kx++)
{
if(x_course[kx]==TRUE)
{
if(kx<4)
cost_sum=atoi(cour[kx].score)*200+cost_sum;
else?if(kx<8)
cost_sum=atoi(cour[kx].score)*150+cost_sum;
else
cost_sum=atoi(cour[kx].score)*100+cost_sum;
}
}
return?cost_sum;
}
};
//---------------本科生類-------------------
class?Ustudent2:public?Student2
{
public:
Ustudent2():Student2(){}
Ustudent2(char?*xhchar?*nachar?*tea):Student2(xhnatea){}

????int?Sum_cost()//計算總學費
{
cost_sum=0;
for?(int?kx=0;kx<12;kx++)
{
if(x_course[kx]==TRUE)
{
if(kx<4)
cost_sum=atoi(cour[kx].score)*200+cost_sum;
else?if(kx<8)
cost_sum=atoi(cour[kx].score)*150+cost_sum;
else
cost_sum=atoi(cour[kx].score)*100+cost_sum;
}
}
return?cost_sum;
}
};
//---------------研究生類-------------------
class?Gstudent2:public?Student2
{
public:????
Gstudent2():Student2(){}
Gstudent2(char?*xhchar?*nachar?*tea):Student2(xhnatea){}

int?Sum_cost()//計算總學費
{
cost_sum=0;
for?(int?kx=0;kx<12;kx++)
{
if(x_course[kx]==TRUE)
{
if(kx<4)
cost_sum=atoi(cour[kx].score)*200+cost_sum;
else?if(kx<8)
cost_sum=atoi(cour[kx].score)*180+cost_sum;
else
cost_sum=atoi(cour[kx].score)*150+cost_sum;
}
}
return?cost_sum;
}
};
//-------------初始

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-05-20?22:25??xuankexitong\
?????目錄???????????0??2015-05-20?22:22??xuankexitong\Debug\
?????文件????????9449??2015-05-20?19:28??xuankexitong\Debug\cpage.obj
?????文件???????75011??2015-05-20?22:19??xuankexitong\Debug\denglu.obj
?????文件??????105917??2015-05-20?19:28??xuankexitong\Debug\StdAfx.obj
?????文件??????246784??2015-05-20?22:23??xuankexitong\Debug\vc60.idb
?????文件??????380928??2015-05-20?22:19??xuankexitong\Debug\vc60.pdb
?????文件???????15665??2015-05-20?19:28??xuankexitong\Debug\xuanke.obj
?????文件?????2928725??2015-05-20?22:22??xuankexitong\Debug\xuankexitong.exe
?????文件?????2549728??2015-05-20?22:22??xuankexitong\Debug\xuankexitong.ilk
?????文件???????14118??2015-05-20?19:35??xuankexitong\Debug\xuankexitong.obj
?????文件?????5585248??2015-05-20?19:29??xuankexitong\Debug\xuankexitong.pch
?????文件?????4187136??2015-05-20?22:22??xuankexitong\Debug\xuankexitong.pdb
?????文件??????631948??2015-05-20?22:22??xuankexitong\Debug\xuankexitong.res
?????文件???????57190??2015-05-20?22:19??xuankexitong\Debug\xuankexitongDlg.obj
?????文件???????15269??2015-05-20?22:19??xuankexitong\denglu.cpp
?????文件????????1739??2015-05-20?22:17??xuankexitong\denglu.h
?????文件????????3687??2015-05-20?19:28??xuankexitong\ReadMe.txt
?????目錄???????????0??2015-05-20?22:09??xuankexitong\res\
?????文件????????1745??2015-05-20?22:09??xuankexitong\resource.h
?????文件????????1078??2015-05-20?19:28??xuankexitong\res\xuankexitong.ico
?????文件?????????404??2015-05-20?19:28??xuankexitong\res\xuankexitong.rc2
?????文件??????406674??2015-05-20?21:59??xuankexitong\res\上海大學.bmp
?????文件??????215654??2015-05-20?22:09??xuankexitong\res\校園.bmp
?????文件?????????257??2015-05-20?19:28??xuankexitong\StdAfx.cpp
?????文件????????1094??2015-05-20?19:28??xuankexitong\StdAfx.h
?????文件??????660964??2015-05-20?22:22??xuankexitong\xuankexitong.aps
?????文件????????2722??2015-05-20?22:25??xuankexitong\xuankexitong.clw
?????文件????????2147??2015-05-20?19:28??xuankexitong\xuankexitong.cpp
?????文件????????4422??2015-05-20?22:25??xuankexitong\xuankexitong.dsp
?????文件?????????532??2015-05-20?19:28??xuankexitong\xuankexitong.dsw
............此處省略8個文件信息

評論

共有 條評論

相關資源