没有合适的资源?快使用搜索试试~ 我知道了~
C#大学教程how to program课后答案
需积分: 33 8 下载量 52 浏览量
2018-06-16
10:10:42
上传
评论
收藏 16.73MB PDF 举报
温馨提示
试读
600页
Visual C# 2010 how to program 4th EditionDeitel-This book focuses on software engineering best practices. At the heart of the book is the Deitel signature “live-code approach.” Concepts are presented in the context of working programs, rather than in code snippets. Each code example is accompanied by sample exe- cutions. All the source code is available at www.deitel.com/books/vcsharp2010htp/ and at the book’s Companion Website at www.pearsonhighered.com/deitel/.
资源推荐
资源详情
资源评论
Welcometothe Visual C#
®
2010 programming language andthe world of Microsoft
®
Windows
®
andInternetprogramming with Microsoft’s.NETplatform!
This book focusesonsoftwareengineeringbestpractices.Atthe heartofthe book is
theDeitelsignature“live-code approach.”Conceptsare presentedinthe contextofworking
programs,rather than in code snippets.Eachcodeexampleisaccompanied by sampleexe-
cutions. Allthe source code is availableatwww.deitel.com/books/vcsharp2010htp/ and
at thebook’sCompanion Websiteatwww.pearsonhighered.com/deitel/.
As youreadthe book,ifyou have questions, send an e-mailtodeitel@deitel.com;
we’ll respond promptly.For updatesonthis book andits supportingVisualC#software,
visit www.deitel.com/books/vcsharp2010htp/,followusonTwitter(@deitel)and
Facebook(www.deitel.com/deitelfan), andsubscribetothe Deitel
®
Buzz Online news-
letter(www.deitel.com/newsletter/subscribe.html).
Newand UpdatedFeatures
Here arethe updateswe’ve made for Visual C#
®
2010 How to Program,4/e:
• Printedbookcontainscor econtent;advancedchaptersare online. Theprinted book
contains sufficient co re content for mostintroductory VisualC#coursesequences.
Several online chapters areincludedfor more advanced courses andfor profession-
als. Theseare availableinsearchable PDFformat on thebook’s password-protected
Companion Website—see theaccess card in thefront of this book.
•The book’s CompanionWebsite includes extensive VideoNotes in which co-
author Paul Deitel explains in detailmostofthe programs in thecore cha pters.
• MakingaDifferenceexercises set. We encourage youtouse computers andthe
Internet to research andsolve significant socialproblems.These newexercisesare
meanttoincreaseawareness anddiscussion of importantissuesthe worldisfac-
ing. We hope you’ll approach them with your ownvalues, politics andbeliefs.
• Up-to-date with Visual C# 2010, C# 4, theVisualStudio2010IDE and.NET
4. TheC#languagehas been standardized internationally by ECMA andISO.
Thelatestversion of that language is referredtoasC#4.Microsoft’s implemen-
tation of this standard is referredtoasVisualC#2010.
• Newlanguagefeatures. We covernew C# features,suchasoptional parameters,
namedparameters, covarianceand contravariance.
• Databases. We useMicrosoft’s free SQLServerExpress (which installs with the
free Visual C# Express) to teachthe fundamentalsofdatabase programming.
Chapters 18,19, 27 and28use databaseand LINQ fundamentalsinthe context
of an address-book desktopapplication,aweb-basedguestbook,abookstore and
an airlinereservation system.
Preface
Download at www.pin5i.com
xviii Preface
• ASP.NET 4. Microsoft’s.NETserver-sidetechnology,ASP.NET,enables youto
create robust, scalable web-basedapplications. In Chapter19, you’ll buildseveral
applications, including aweb-based guestbookapplication that uses AS P. NET,
LINQ andaLinqDataSource to store data in adatabase anddisplay da ta in aweb
page.The chapter also discusses theASP.NET DevelopmentServerfor testing
your webapplicationsonyourlocalcomputer.
• We removedgeneric methods from Chapter9to make thecode easier to under-
stand.
•The code will runonWindows7,WindowsVista and WindowsXP.We’ll post
anyissuesonwww.deitel.com/books/vcsharp2010htp/.
• We introduce exception handling much earlier (Chapter8)and integrateditin
subsequent chapters in which it hadnot been usedpreviously. We also now
throw exceptionsfor invaliddatareceived in the set accessors of properties.
• Newdesign. Thebook hasanewint erior design that graphicallyorganizes, clari-
fies andhighlights theinformation,and enhancesthe book’s pedagogy.Weused
italics extensivelytoemphasize importantwords,phrases andpoints in thetext.
• We titledthe programming exercises to help instructorstailorassignments.
OtherfeaturesofVisual C# 2010 HowtoProgram,4/e include:
•We’ve provide instructors with solutionstothe vast majority of theexercises.There
areafewlarge exercises marked “Project”for which solutionsare notprovided.
• We useLINQ(LanguageIntegrated Query) to query files, databases,XML and
collections. TheintroductoryLINQchapter,Chapter 9, in thecore printedbook
is intentionally brieftoencourage instructorstocover this importanttechnology
early.The onlinechapterscontinuethe discussion of LINQ.
• Localtypeinference. Whenyou initializealocalvariableinits declaration,you
cannow omit thevariable’stype—the compiler infers it from theinitializervalue.
• Object initializers. For new objects, youcan useobjectinitializersyntax(similar
to arrayinitializersyntax) to assign values to thenew object’s public properties
and public in stance variables.
• We emphasizethe IDE’s IntelliSense feature that helpsyou writecode fasterand
with fewererrors.
OurText+Digital Approach to Content
We surveyed hundreds of instructors teachingVisual C# courses andlearned that most
want abook with contentfocusedontheir introductory courses.Withthatinmind, we
movedvariousintermediate and advancedchapters to theweb.Having this cont entindig-
ital format makesiteasilysearchable,and gives us theability to fixerrataand addnew con-
tent as appropriate.The book’s CompanionWebsite at
(see theaccess card at thefrontofthe book)contains thefollowing chapters in searchable
PDFformat:
www.pearsonhighered.com/deitel/
Download at www.pin5i.com
Dependency Charts xix
• WPF(WindowsPresentationFoundation)GUI,graphicsand multimedia. We ex-
tend thecore book’s GUIcoverageinChapters 24–25 with an introduction to
WindowsPresentation Foundation (WPF)—Microsoft’snew framework that in-
tegratesGUI,graphicsand multimedia capabilities. We implementapainting ap-
plication,atexteditor, acolor chooser,abook-cover viewer,atelevision video
player, various animations, andspeechsynthesis andrecognitionapplications.
• ASP.NET 4and ASP.NET AJAX. Chapter27extends Chapter19’sASP.NET
discussion with acasestudy on building apassword-protected, web-basedbook-
store application.Wealsointroduce ASP.NET AJAX controls anduse them to
addAJAXfunctionality to webapplicationstoimprovetheir responsiveness.
• WCF(WindowsCommunication Foundation) WebServices. Webservicesen-
able youtopackage application functionality in amannerthatturns the webinto
alib rary of reusableservices. In Chapter28, we includecasestudiesonbuilding
an airlinereservation webservice,ablackjackweb service andamath question
generatorweb service that’s called by amathtutor application.
• Silverlight. Chapter29introducesSilverlight, which enablesyou to create visu-
ally stunning,multimedia-intensive user interfaces forweb applications. The
chapter presents powerful multimedia applications, including aweather viewer,
Flickrphotovie wer, deep zoom book-cover collage andvideoviewer.
• Visual C# XMLcapabilities. Use of theExtensible MarkupLanguage(XML)isex-
ploding in thesoftware-development industry andine-business,and is pervasive
throughout the.NETplatform.InChapter 26,weuse show howtoprogrammat-
icallymanipulatethe elements of an XML documentusing LINQ to XML.
• Optional Case Study: Usingthe UML to DevelopanObject-Oriented Design and
C# ImplementationofanATM. TheUML™(UnifiedModeling Language™)is
thepreferred graphicalmodeling languagefor designing object-oriented systems.
This edition includes an optional online case studyonobject-oriented design using
theUML (Chapters 30–31).Wedesign andimplementthe software forasimple
automatedtellermachine (ATM). We analyzeatypicalrequirements document
that specifiesthe system to be built. We determinethe classesneededtoimplement
that system,the attributesthe classesneedtohave,the behaviorsthe classesneedto
exhibitand specifyhow theclassesmustinteractwithone anothertomeetthe sys-
temrequirements.Fromthe design we produceaworkingVisualC#implementa-
tion.We’ve presentedthiscasestudy to professional audiences in C#,Java,Visual
Basicand C++. Afterseeing thecase-studypresentation, students report having a
“light-bulbmoment”—thecasestudy“tiesitall together”for them andhelps them
understand howobjects in alargersystemcommunicate with oneanother.
• Index. Theonline index includes thecontentfrom theprintedbook and theon-
line content.The printed book indexcoversonlythe printedmaterial.
Dependency Charts
ThechartsinFigs.1–2 show thedependenciesamong the chapters to help instructors plan
theirsyllabi.The printed book focusesonintroductory coursesequences(Fig. 1).The online
chapters includeintermediate andadvanced content formore advanced courses(Fig. 2).
Download at www.pin5i.com
xx Preface
Fig.1 | Chapter dependencychart forthe chaptersinthe printedbook.
1IntroductiontoComputers,the
Internet andVisual C#
3Introduction to C# Applications
5Control Statements: Part 1
6Control Statements: Part 2
7Methods:ADeeper Look
8Arrays
2
2DiveInto® Visual C# 2010 Express
11 OOP: Inheritance
10 Classesand Objects:
ADeeperLook
12 OOP: Polymorphism,Interfaces
13 ExceptionHandling:
ADeeper look
14 GUI with Windows
Forms: Pa rt 1
16 Strings
andCharacters
17 Filesand Streams
3
20 Searching and Sorting
18 Databases
andLINQ
5
19 WebApp Development
with ASP.NET
6
15 GUIwithWindows
Forms: Pa rt 2
21 Data Structures
4
22 Generics
23 Collections
4Introduction to Classes,
Objects, Methods and strings
IntroductiontoVisual C#
Fundamentalsand
Object-Oriented Programming
Object-Oriented Programming:
ADeeper Look
Strings,Files and
Data Structures
Graphical UserInterfaces
Databaseand Web
AppDevelopment
9IntroductiontoLINQand
the List Collection
1. SeeFig.2for theonlinechapters.
2. Chapter 8introducesexception handling.
3. Requires Sections 14.1–14.5.
4. Requires Sections 14.1–14.5 and 15.6.
5. Requires Sections 14.1–14.6 and 15.8.
6. Requires generalGUI and event-handling knowledge(Sections 14.1–14.3).
Dependency Chart
forPrint Chapters
1
Download at www.pin5i.com
剩余599页未读,继续阅读
资源评论
weixinqqq
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功