相關主題
商品描述
本書以培養技能為根本,以就業為導向,以職業能力為著力點,全面講解了 C#語言程序設計的相關知識和應用技能,著重強調 C#語言應用能力的培養。全書共分 13 個單元,以任務的形式展開講解,每個任務分為任務描述、任務分析、基礎知識、任務實施、任務拓展 5 個環節,便於學生在實踐中學習。
目錄大綱
單元一C#開發環境............................................. .................................................. .. 1
任務一安裝Visual Studio 2013 ......................................... ............................... 1
任務二創建簡單C#程序............ .................................................. .................... 9
小結............................ .................................................. .....................................16
習題........... .................................................. .................................................. ....16
單元二C#語法基礎........................................ .................................................. ......18
任務一計算圓的周長和麵積......................................... ..................................18
任務二溫度轉換........... .................................................. ................................27
任務三三位數求和.......... .................................................. ..............................30
任務四求大值.............. .................................................. .............................35
任務五已知三邊,求三角形面積.......... .................................................. ........37
小結........................................ .................................................. .........................39
習題....................... .................................................. ..........................................39
單元三程序控制結構............................................. ................................................41
任務一輸出兩個輸入整數的和.......................................... .............................41
任務二求兩個整數的大值........... .................................................. ..............44
任務三成績轉換(五分制轉百分制) ........................ ....................................50
任務四求1+2+…+100的和. .................................................. .........................53
任務五求素數.................... .................................................. ...........................58
任務六輸出100 ~ 200之間的全部素數........... ...............................................61
小結................................................. .................................................. ................65
習題................................ .................................................. .................................65
單元四數組............. .................................................. .............................................68
任務一依次輸出10個數............................................... .................................68
任務二求數組中的大的元素....... .................................................. ..............75
任務三數組元素排序.............................. .................................................. ......78
小結.......................................... .................................................. .......................83
習題................................................. .................................................. ................83
單元五類與對象............................ .................................................. ......................85
任務一輸出學生信息...................... .................................................. ..............85
任務二查詢學生信息.............................. .................................................. ......89
任務三輸入學生信息...................................... ................................................98
小結.................................................. .................................................. ............. 105
習題................................................. .................................................. .............. 105
C#應用程序設計教程2
單元六繼承與多態....................... .................................................. ...................... 107
任務一定義具有特性的學生類................... .................................................. 107
任務二實現學生和教師相同操作不同效果....................................... ............ 114
任務三實現兩個數的加減乘除運算.......................... .................................... 120
小結............ .................................................. .................................................. . 127
習題............................................... .................................................. ................ 128
單元七接口與抽像類............................................ ............................................... 129
任務一實現學生不同方式的自我介紹........................................... ............... 129
任務二正方形和圓形的繪製與旋轉........................ ...................................... 138
任務三實現小貓“喵喵喵…… ”與汽車“滴滴滴……” ............................... 144
小結....... .................................................. .................................................. ...... 150
習題.......................................... .................................................. ..................... 150
單元八常用類........................ .................................................. ............................ 152
任務一實現數據的插入、刪除與排序........................................ .................. 152
任務二實現加減乘除的計算器...................... ............................................... 159
任務三繪製線條................................................ ........................................... 167
小結..... .................................................. .................................................. ........ 172
習題........................................ .................................................. ....................... 172
單元九異常處理...................... .................................................. .......................... 174
任務判斷輸入的年齡信息是否超出範圍.............. ......................................... 174
小結................................................. .................................................. .............. 182
習題.................................. .................................................. ............................. 182
單元十窗體和控件.............. .................................................. ............................... 184
任務一顯示窗體的尺寸與位置......... .................................................. .......... 184
任務二設置字體格式.................................. .................................................. 189
任務三輸入個人信息............................................ ........................................ 195
小結........ .................................................. .................................................. ..... 211
習題................................................. .................................................. .............. 212
單元十一界面設計.............................. .................................................. ............... 213
任務一設計登錄界面............................. .................................................. ..... 213
任務二創建與實現簡單菜單..................................... .................................... 218
任務三設計簡易文本編輯器...... .................................................. ................. 228
小結............................... .................................................. ................................ 241
習題................ .................................................. ............................................... 241
單元十二文件操作............................................. .................................................. 243
任務一輸出文件信息............................................ ........................................ 243
任務二輸入/輸出文件... .................................................. .............................. 250
小結.................. .................................................. ............................................. 258
習題... .................................................. .................................................. .......... 258
目錄3
單元十三數據庫編程................................ .................................................. ......... 259
任務一管理學生信息................................... ................................................. 259
任務二使用數據適配器實現學生信息管理......................................... .......... 272
任務三使用數據源綁定展示學生信息............................. ............................. 280
小結................... .................................................. ............................................ 286
習題.... .................................................. .................................................. ......... 286
參考文獻...................................... .................................................. ......................... 288