(1)設計一個人事管理的People(人員)類.考慮到通用性,這里只抽象出所有類型人員都具有的屬性:name(姓名),number(編號), sex(性別),birthday(出生日期),id(身份證號)等等.其中"出生日期"定義為一個"日期"類(具有屬性:year(年),month (月),date(日)內嵌子對象.用成員函數實現對人員信息的錄入和顯示等必要功能操作(自己獨立思考設計).要求包括:構造函數和析構函數,拷貝構造 函數,內聯成員函數.
(2)從People(人員)類派生出student(學生)類,添加屬性:班號char chassNO[7];從People類派生出teacher(教師)類,添加屬性:職務char principalship[11],部門char department[21].從student類中派生出graduate(研究生)類,添加屬性:專業char subject[21],導師teacher adviser(為(教師類內嵌子對象);從graduate類和teacher類派生出TA(助教生)類,注意虛基類的使用,重載相應的成員函數.
(3)對People類重載"=="運算符和"="運算符,"=="運算符判斷兩個People類對象的id屬性是否相等;"="運算符實現People類對象的賦值操作.
(4)定義一個對People類對象數組按編號排序的函數,一個按編號查找people對象的函數.
標簽:
birthday
People
number
name
上傳時間:
2014-01-17
上傳用戶:GHF
OTSU Gray-level image segmentation using Otsu s method.
Iseg = OTSU(I,n) computes a segmented image (Iseg) containing n classes
by means of Otsu s n-thresholding method (Otsu N, A Threshold Selection
Method from Gray-Level Histograms, IEEE Trans. Syst. Man Cybern.
9:62-66 1979). Thresholds are computed to maximize a separability
criterion of the resultant classes in gray levels.
OTSU(I) is equivalent to OTSU(I,2). By default, n=2 and the
corresponding Iseg is therefore a binary image. The pixel values for
Iseg are [0 1] if n=2, [0 0.5 1] if n=3, [0 0.333 0.666 1] if n=4, ...
[Iseg,sep] = OTSU(I,n) returns the value (sep) of the separability
criterion within the range [0 1]. Zero is obtained only with images
having less than n gray level, whereas one (optimal value) is obtained
only with n-valued images.
標簽:
OTSU
segmentation
Gray-level
segmented
上傳時間:
2017-04-24
上傳用戶:yuzsu
Maya Calendar
During his last sabbatical, professor M. A. Ya made a surprising discovery about the old Maya calendar. From an old knotted message, professor discovered that the Maya civilization used a 365 day long year, called Haab, which had 19 months. Each of the first 18 months was 20 days long, and the names of the months were pop, no, zip, zotz, tzec, xul, yoxkin, mol, chen, yax, zac, ceh, mac, kankin, muan, pax, koyab, cumhu. Instead of having names, the days of the months were denoted by numbers starting from 0 to 19. The last month of Haab was called uayet and had 5 days denoted by numbers 0, 1, 2, 3, 4. The Maya believed that this month was unlucky, the court of justice was not in session, the trade stopped, people did not even sweep the floor.
標簽:
A.
M.
sabbatical
surprising
上傳時間:
2014-01-05
上傳用戶:libenshu01