出版時間:2010-10 出版社:清華大學出版社 作者:梁雅維 頁數(shù):112
前言
2008年3月,微軟公司取消了對VisualBasic6(簡稱VB6)的支持,并推出了新的VisualBasic2008ExpressEdition免費版(簡稱VB2008),它相當于VB。NETFramework3。5或者VB9。為了使學生更快地適應并使用新版VB學習計算機程序設計,作者根據(jù)在大學教授計算機程序設計基礎課程的材料,特編寫了這部簡練的教材?! nMarch2008,MicrosoftstoppeditssupporttoVisualBasic6(VB6forshort),andithasanewerandfreeversioninplace,i。e。,VisualBasic2008ExpressEdition(VB2008forshort),itisequivalenttoVB。NETFramework3。5orVB9。TohelpstudentsquicklygetusedtothenewerversionofVisualBasic,theauthorpreparesthisconcisetextbook,whichisbasedontheteachingmaterialsofthefirstcomputerprogramminglanguagecourseatuniversitylevel?! 禫isual Basic程序設計基礎教程(雙語版)》可供第一次學習計算機程序設計課程的學生使用,無需其他先導課程。
內容概要
《VisualBasic程序設計基礎教程(雙語版)》以微軟公司公開發(fā)布的免費版VisualBasic2008(簡稱VB2008)為工具,介紹了計算機程序設計的主要內容。第1章描述了VB2008的綜合程序設計環(huán)境和該語言的基礎知識。第2~4章是計算機高級程序設計語言的通用知識。第5章討論如何編寫視窗類人機交互界面的程序。第6章引出事件驅動的程序設計概念。附錄A中給出了《VisualBasic程序設計基礎教程(雙語版)》的習題解答。附錄B中給出了詞匯索引。最新版的VB2010與VB2008大同小異。
書籍目錄
第1章 程序設計基礎Programming Basics 11.1 Visual Basic歷史簡介Brief History of Visual Basic 11.2 VB 2008綜合程序設計環(huán)境VB 2008 Integrated Development Environment (IDE) 21.3 兩個簡單的程序設計實例Two Simple Program Examples 21.4 常量、變量以及命名方法Constants, Variables and Their Naming Rules 61.4.1 命名規(guī)則Naming Rules 71.4.2 常量Constants 71.4.3 保留字Keywords 81.4.4 基本數(shù)據(jù)類型Primitive Data Types 81.4.5 變量Variables 91.5 表達式Expressions 91.5.1 賦值語句Assignment Command 101.5.2 算術運算符Arithmetic Operators 101.5.3 基本數(shù)學函數(shù)Common mathematical functions 111.5.4 布爾表達式Boolean expressions 111.5.5 關系表達式Relational expressions 131.5.6 計算優(yōu)先級Precedence of a mixed expression 131.6 第1章小結Chapter 1 Summary 14習題Exercises 14第2章 常用程序設計語句Common Programming Commands 162.1 賦值語句Assignment Command 162.2 輸入、輸出語句Input and Output Commands 162.3 算術計算語句Arithmetic Calculation Commands 172.4 選擇執(zhí)行語句Selection Commands 182.4.1 If語句If Command 182.4.2 嵌入If指令Nested If Statement 212.4.3 選擇命令Select ... Case 222.5 循環(huán)控制語句Loop Control Commands 242.5.1 For語句For Command 242.5.2 While語句While Command 252.5.3 Do While語句Do While Command 262.5.4 Do Until語句Do Until Command 272.6 第2章小結Chapter 2 Summary 27習題Exercises 27第3章 簡單的數(shù)據(jù)結構:數(shù)組Simple Data Structure:Arrays 293.1 數(shù)組的概念Concept of Arrays 293.2 一維數(shù)組One Dimensional (1D) Arrays 293.3 二維數(shù)組Two Dimensional (2D) Arrays 313.4 多維數(shù)組Multi Dimensional Arrays 323.5 數(shù)組的特殊存儲方法The Special Way to Store an Array 333.6 第3章小結Chapter 3 Summary 34習題Exercises 34第4章 子程序Sub-Programs 364.1 子程序的概念Concept of Sub-Programs 364.2 過程的設計和調用Procedures Design and Calling 364.3 函數(shù)的設計和調用Functions Design and Calling 384.4 嵌套子程序調用和遞歸Nested Sub-program Calling and Recursion 394.5 類型Class 404.6 第4章小結Chapter 4 Summary 42習題Exercises 42第5章 圖形化用戶界面控件Graphical User Interface (GUI) Controls 465.1 輸入、輸出控件Input and Output (I/O) Controls 465.2 選擇控件Selection Controls 485.3 時間控件Timing Controls 515.4 圖形控件Graphical Controls 535.5 網絡控件Web Related Controls 575.6 第5章小結Chapter 5 Summary 58習題Exercises 58第6章 事件驅動的程序設計概念Event Driven Programming Concept 636.1 程序啟動事件Program Loading Event 636.2 輸入內容改變事件Input Content Changing Event 646.3 鼠標單擊事件Mouse Clicking Event 656.4 鼠標移動事件Mouse Moving Event 676.5 時間事件Timing Event 686.6 第6章小結Chapter Summary 70習題Exercises 70附錄A 習題解答Exercises Solutions 73A.1 第1章題解Chapter 1 Exercise Solutions 73A.2 第2章題解Chapter 2 Exercise Solutions 74A.3 第3章題解Chapter 3 Exercise Solutions 77A.4 第4章題解Chapter 4 Exercise Solutions 78A.5 第5章題解Chapter 5 Exercise Solutions 79A.6 第6章題解Chapter 6 Exercise Solutions 86附錄B 詞匯索引Index 110參考文獻
編輯推薦
《VisualBasic程序設計基礎教程(雙語版)》可供第一次學習計算機程序設計的學生使用,無需先導課程?! 〔捎弥杏⑽膶φ盏姆绞竭M行編寫,語言精練、實例豐富。
圖書封面
評論、評分、閱讀與下載