C# 学习历程——Hello World

本文记录了作者在大学期间学习C#的过程,包括控制台文本输出、命令行参数设置及调试技巧等内容。

  大二下学期,通过在学校C#课堂上的学习,初步了解了一些关于C#的基础应用。下面是按照老师上课的讲解进行的一些相关的练习。
  首先,运用System.Console.WriteLine (" ");在C#控制台运用程序进行简单文本的输出。

  之后,利用在项目-属性-调试-启动选项中设置命令行参数,对数组args进行了赋值。

  接着,通过设置断点,按F5键,程序会编译并运行至断点处,此时它会停下,有一个黄箭头指向下一步要执行的语句。

  到达断点后,将光标放在数组上,就可以清晰地看到它的值。

  利用Console.WriteLine(args[0] + " " + args[1] + " " + args[2]);我们可以对参数列表中的单词进行输出。

  通过下面语句,我们可以调整输出文本的前景色和背景色。

  通过这次学习,我熟悉并掌握了一些关于C#文本输出的语句。

转载于:https://www.cnblogs.com/tjuwx/p/4343135.html

C#学习路线图之《C#必须知道的300个问题》扫描版 ============================================================ 基本信息 作者:明日科技 丛书名:C#学习路线图 出版社:清华大学出版社 ISBN:978-7-302-27656-2 出版日期:2012年1月 开本:16开 页码:424页 版次:1-1 定价:¥49.80 所属分类:计算机 > 软件与程序设计 > C# ============================================================ 内容简介 本书以C#基础知识为框架,介绍了各部分知识所对应的常用开发疑难问题,并进行透彻地解析。本书内容包括C#语言及其开发环境、掌握C#语言基础、流程控制语句、字符与字符串、数组和集合、C#面向对象程序设计、异常处理和程序调试、Windows窗体、Windows应用程序常用控件、Windows应用程序高级控件、C#面向对象高级技术、ADO.NET数据访问技术、水晶报表与打印、文件及数据流技术、GDI+绘图、多线程技术、网络编程技术、注册表技术、C#语言新技术和Windows应用程序打包部署。 本书所涉及的疑难问题都是一线开发人员在实际项目中遇到的,书中针对这些问题给出了解决方案,并进行了技术上的解析。读者通过对本书的学习,能够提高实际解决问题的能力。 本书提供了大量的源程序、素材,提供了相关的模块库、案例库、素材库、题库等多种形式的辅助学习资料,还提供迅速及时的微博、QQ、论坛等技术支持。 本书内容详尽,非常适合作为C#开发人员的学习用书和必备参考手册,也适合作为相关培训机构的师生和软件开发人员的参考资料。
#学习的101个经典例子,例子个个经典,涵盖C#的方方面面,带有说详尽的注释 Advanced - Multithreading - How-To Async Calls Advanced - Remoting - How-To TCP Remoting Advanced - Serialization - How-To Serializing Objects Advanced .NET Framework (GDI+) - Animation with GDI+ Advanced .NET Framework (GDI+) - Create a Screensaver with GDI+ Advanced .NET Framework (GDI+) - Use GDI+ to manipulate images Advanced .NET Framework (GDI+) - Working with GDI+ Brushes Advanced .NET Framework (GDI+) - Working with GDI+ Text Advanced .NET Framework (Localization) - Work with Resource Files Advanced .NET Framework (Networking) - Use Sockets Advanced .NET Framework (Threading) -- Thread Pooling Advanced .NET Framework (Windows Services) - Create a Windows Service Advanced .NET Framework - Interacting Windows Service Advanced .NET Framework - Make WIn32 API Calls Data Access - Bind Data in a ComboBox Data Access - Build a Master-Detail Windows Form Data Access - Create an Offline Application Data Access - Custom Data Binding Format Handlers Data Access - Data Entry Form Data Access - How-To Create a Database Data Access - N-Tier Data Form and Data Layer Data Access - Read and Write Images from a Database Data Access - Retreive and Process data with a SQL Data Reader Data Access - Sort and Filter with a DataView Data Access - Use ADO 2.6 Data Access - Use Stored Procedures Data Access - Using Typed Datasets File - How-To File Notifications File - How-To File System Framework - Comparison of DataBinding in Web and Windows Forms Framework - Creating an Enterprise Services Component Framework - How-To Configuration Settings Framework - How-To Environment Settings Framework - How-To MSMQ Framework - How-To Process Viewer Framework - How-To Reflection Framework - How-To Send and Receive Data Framework - How-To Service Manager Framework - How-To Stack Frame Framework - How-To System Events Framework - How-To Work with XML Framework - Key Benefits Framework - Partitioning your application Framework - role based security with Enterprise Services Framework - Scoping, Overloading, Overriding Framework - Understanding the Garbage Collector Framework - Using the COM Port Framework - Using WMI Interop - Automate IE Language - How-To Arrays Language - How-To Build a Custom Collection Class Language - How-To Callbacks Language - How-To DateTime Language - How-To OO Features Language - How-To Strings Language - How-To Try Catch Finally NET Framework - Create and use Trace Listeners NET Framework - How-To Send Mail NET Framework - How-To Use the EventLog NET Framework - How-To Working with GDI+ Pens NET Framework - Read and Write Performance Counters NET Framework - Reading and Writing with a Text File NET Framework - Use Temporary Files NET Framework - Use the Process Class and Shell Functionality NET Framework - Work with Console Applications Security - Create a Login Dialog Box Security - Encrypt and Decrypt Data Security - How-To Role-based Security Security - Use Cryptographic Hash Algorithms VS.NET - Create a VS.NET Add-In Web Development - Data Entry Form Web Development - Exposing a Simple Web Service Web Development - Master-Details Web Form Web Development - Paging through Query Results Web Services - Consume a Web Service WebService - How To Transfer Binary Data Windows Forms - How-To Data Binding with Navigation Windows Forms - How-To System Tray Icon Windows Forms - How-To Validating Textboxes Windows Forms - Associating Help with an Application Windows Forms - Create an Explorer Style Application Windows Forms - How-To Automate Office Windows Forms - How-To Common Dialogs Windows Forms - How-To Data Grid Formatting Windows Forms - How-To DataGrid Sorting and Filtering Windows Forms - How-To Inherited Windows Forms Windows Forms - How-To ListBox and ComboBox Windows Forms - How-To Menus Windows Forms - How-To Top-Level Forms Windows Forms - How-To Use Drag and Drop Windows Forms - How-To XML Comments Windows Forms - Simple Printing Windows Forms - Use Crystal Reports Windows Forms - Use Format Codes to Format Data in Strings Windows Forms - Use Regular Expressions Windows Forms - Use the Clipboard Windows Forms - XP Theme Support Windows Forms -- Owner Drawn Menus Windows Forms- How-To Custom Exceptions WinForms - Dynamic Control Creation
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值