?? prg7_2.cpp
字號:
#include <iostream.h>
#pragma hdrstop
#include "store.h"
#include "student.h"
void main(void)
{
Student graduate = {1000, 23};
Store<int> A, B;
Store<Student> S;
Store<double> D;
A.PutElement(3);
B.PutElement(-7);
cout << A.GetElement() << " " << B.GetElement() << endl;
S.PutElement(graduate);
cout << "The student id is " << S.GetElement().studID
<< endl;
// D is not initialized
cout << "Retrieving object D " << D.GetElement() << endl;
}
/*
<Run of Program 7.2>
3 -7
The student id is 1000
Retrieving object D No item present!
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -