a004
C++考試以 zerojudge 實作方式進行
C++上機實作 (非 open book) 即不可帶講義
但會提供常用的英文字及程式基本架構,例
#include <iostream>
using namespace std;
int main()
{
return 0;
}
int
string
cin
cout
while
if
else
|
(1)起訖符號
|
(2)決策符號
|
(3) 處理符號
|
(4)列印符號
|
|
題號
|
說明
|
|
英文選項
|
|
1
|
VB表單
|
Form
|
A)
ALGOL
B)
ANSI
C)
AutoSize
D)
BackColor
E)
BorderStyle
F)
Button
G)
COBOL
H)
Compiler
I)
Enabled
J)
Font
K)
ForeColor
L)
Form
M)
FORTAN
N)
FrameLine
O)
Interpreter
P)
Interval
Q)
Java
R)
Label
S)
Location
T)
Size
U)
Text
V)
Timer
|
|
2
|
VB常用控制項-按鈕
|
Button
|
|
|
3
|
VB常用控制項-標籤
|
Label
|
|
|
4
|
VB常用屬性-字顏色
|
BackColor
|
|
|
5
|
VB常用屬性-顯示的文字
|
ForeColor
|
|
|
6
|
VB常用屬性-自動調整大小
|
AutoSize
|
|
|
7
|
VB常用屬性-外框線
|
BorderStyle
|
|
|
8
|
VB常用屬性-字型
|
Text
|
|
|
9
|
程式編譯器的英文
|
Font
|
|
|
10
|
VB常用屬性-物件位置
|
Location
|
|
|
11
|
VB常用屬性-物件大小
|
Size
|
|
|
12
|
主要用於科學與工程應用的程式語言
|
Compiler
|
|
|
13
|
1960年制定的通用商業語言
|
COBOL
|
|
|
14
|
VB常用控制項-定時器
|
Timer
|
|
|
15
|
VB常用屬性-是否啟動
|
Enabled
|
序號
|
程式敘述
|
說明
|
1
|
# include < iostream >
|
引入與輸入輸出有關的標頭檔
|
2
|
using namespace std ;
|
宣告 命名空間 std
|
3
|
int main()
|
主程式的開始
|
4
|
{
|
程式區塊的頭
|
5
|
cout <<
“Hello C++!” << endl ;
|
輸出字串及換行
|
…
|
||
-2
|
return 0 ;
|
成功執行,傳回主函式
|
-1
|
}
|
程式區塊的尾
|
序號
|
程式敘述
|
說明
|
5
|
int n ;
|
宣告整數變數n
|
6
|
string s;
|
宣告字串變數s
|
7
|
cin >> n >> s;
|
輸入整數值n及字串s
|
8
|
cout << 5*n+2 << endl ;
|
輸出整數的5倍加2
|
9
|
cout << “ex2:” << s << endl ;
|
輸出字串及換行
|
提示區:有出現的指令會列出,但需自行組合
include
iostream using namespace
int string main
cin cout endl
return
|