瀏覽代碼

README.md

Ian 10 年之前
父節點
當前提交
e2c645a30a
共有 1 個檔案被更改,包括 23 行新增19 行删除
  1. 23
    19
      README.md

+ 23
- 19
README.md 查看文件

10
 
10
 
11
 The program that you will be editing is a Basketball Statistics Tracker.
11
 The program that you will be editing is a Basketball Statistics Tracker.
12
 To understand the program you will need to learn basketball point system.
12
 To understand the program you will need to learn basketball point system.
13
-*Free throw - counts 1 point
14
-*Field goal - counts 2 points
15
-*Three point - counts 3 points
16
-*Rebounds - add 1
17
-*Assist - add 1
18
-*Steals - add 1
19
-*Blocks - add 1
20
-*Fouls - add 1
21
-*Turnovers - add 1
13
+
14
+* Free throw - counts 1 point
15
+* Field goal - counts 2 points
16
+* Three point - counts 3 points
17
+* Rebounds - add 1
18
+* Assist - add 1
19
+* Steals - add 1
20
+* Blocks - add 1
21
+* Fouls - add 1
22
+* Turnovers - add 1
22
 
23
 
23
 Note that these variables are declared private, and they are unsigned short.
24
 Note that these variables are declared private, and they are unsigned short.
24
 Remember that unsigned short does not have negative numbers.
25
 Remember that unsigned short does not have negative numbers.
27
 
28
 
28
 **Instructions**
29
 **Instructions**
29
 1. In `BPlayer.cpp`, add input validation in:
30
 1. In `BPlayer.cpp`, add input validation in:
30
-	*`void remPoints();`
31
-	*`void remReb();`
32
-	*`void remAst();`
33
-	*`void remStl();`
34
-	*`void remBlock();`
35
-	*`void remFoul();`
36
-	*`void remTurnover();`
31
+
32
+	* void remPoints()
33
+	* void remReb()
34
+	* void remAst()
35
+	* void remStl()
36
+	* void remBlock()
37
+	* void remFoul()
38
+	* void remTurnover()
39
+
37
 2. Run and verify that it works.
40
 2. Run and verify that it works.
38
 3. In `BPlayerClient.cpp`,
41
 3. In `BPlayerClient.cpp`,
39
-	*In the function `void options(vector<BPlayer> &team, int &game)`, add input validation
40
-	*Validate that the user never enters negative numbers
41
-	*Validate that the user selects a team between 1 and 15.
42
+
43
+	* In the function `void options(vector<BPlayer> &team, int &game)`, add input validation
44
+	* Validate that the user never enters negative numbers
45
+	* Validate that the user selects a team between 1 and 15.
42
 
46
 
43
 ---
47
 ---
44
 
48