C# 的学习记录第一天

关于学习的资源,选的传智播客的视频,课程很多,但是并不准备学那么多,实际个人能力实在有限,能学多少是多少;

[传智播客.Net培训视频系列推荐学习顺序]:
第1季C#编程基础
第2季C#面向对象基础
第3季WinForm基础
第4季SQL从入门到提高
第5季ADO.Net
第6季HTML
第7季JavaScript
第8季Dom
第9季JQuery
第10季asp.net基础
第11季asp.net中级
第12季asp.net高级
第13季ajax

学习C#的好去处
http://msdn.microsoft.com
https://stackoverflow.com/
http://www.cnblogs.com (中文,强烈推荐)
http://www.codeplex.com (源码,强烈推荐)
http://www.codeproject.com (英文,强烈推荐)
http://code.msdn.microsoft.com/ (推荐)

以下是学习记录的笔记(Onenote复制过来的)

01面向过程基础知识

1 .net与C#

• .net:一般指.Net Framework框架,一种平台,一种技术 ;
• C#:一种编程语言,可以开发基于.net平台的应用;
• Java既是一种技术也是一种编程语言;

2 .net能做什么

• 开发桌面应用程序(WinForm)
• Internet应用程序(ASP.NET/WebService)
• UWP(手机应用)

• C/S:客户机/服务器模式
• B/S:浏览器/服务器模式

3 VS版本介绍及MSDN帮助文档介绍
4 创建第一个项目

02学习两句话

• 善用快捷键,提升效率 ;
• 解决方案中可以包含多个项目,项目可以包含多个文件,文件中是我们写的程序;

在文件中,命名空间namespace中可以包含类class,类中可以包含Main方法,方法中是我们写的程序;

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace _01我的第一个项目
{
    /// <summary>
    /// 这个类中有一个Main方法,是我们程序的入口方法;
    /// </summary>
    class Program
    {
        /// <summary>
        /// 程序运行时,从这里开始执行代码;
        /// </summary>
        /// <param name="args"></param>
        static void Main(string[] args)
        {
            //下面的这句话是向屏幕输出一句Hello,World!
            Console.WriteLine("Hello,World!");
            Console.WriteLine("这里显示你要表达的内容:这是我的第一个程序");
            Console.Write("aaaa");
            Console.Write("bbbb");


            Console.ReadKey();

        }
    }
}

• namespace :定义了一个命名空间:01我的第一个项目
Class:定义了一个名称为Program的类,类中包含Main方法
class.png

• 重置开发环境:可以使我们的开发工具恢复默认状态。例如:视图中的各种窗口;
• Main方法是我们程序(项目)的入口方法,当我们执行一个程序时,会首先找到Main方法,从Main方法的第一句程序开始执行,当Main方法执行完成后(即执行到Main方法的反大括号),程序就结束了;
所以,现在我们初学者写程序,就先卸载Main方法中;

static void Main(string[] args)
            {
                //下面的这句话是向屏幕输出一句Hello,World!
                Console.WriteLine("Hello,World!");
                Console.WriteLine("这里显示你要表达的内容:这是我的第一个程序");
                Console.Write("aaaa");
                Console.Write("bbbb");
    
    
                Console.ReadKey();
    
            }

vs2.png

.sln是解决方案的文件;
.csproj是项目文件;

先学习两句话,今天学习的第一句话:
Console.WriteLine("Hello,World!");
Console.Write.Line("显示你想表达的内容,这是我的第一个程序");
第二句话:
Console.ReadKey();
当程序执行到Console.ReadKey();时,程序会停在这里,等待用户从键盘上键入一个键,用户键入这个键之后,程序才继续执行;

在C#中,每一句话都必须以分号结束;

Console.WriteLine(“”);与Console.Write(“”);的区别

Frist.png

已有 15 条评论
  1. Linwoodcirty

    We offer you the opportunity to advertise your products and services.
    Hi! That is an amazing offers for you. I can send your commercial offers or messages through feedback forms. The advantage of this method is that the messages sent through the feedback forms are included in the white list. This method increases the chance that your message will be read. Mailing is made in the same way as you received this message.

    Sending via Feedback Forms to any domain zones of the world. (more than 1000 domain zones.).

    The cost of sending 1 million messages is $ 49 instead of $ 99.
    All us sites that have a feedback form. (10 million messages sent) - $349 instead of $649
    Domain zone .com - (12 million messages sent) - $399 instead of $699
    All domain zones in Europe- (8 million messages sent) - $ 299 instead of $599
    All sites in the world (25 million messages sent) - $499 instead of $999

    Discounts are valid until April 10!
    Feedback and warranty!
    Delivery report!

    In the process of sending messages, we do not violate the rules of GDRP.
    This message is created automatically use our contacts for communication.

    Contact us.
    Telegram - @FeedbackFormEU
    Skype – FeedbackForm2019
    Email - feedbackform@make-success.com

    Best wishes

    Linwoodcirty 回复
  2. JamesAlult

    My name is Pete and I want to share a proven system with you that makes me money while I sleep! This system allows you to TRY the whole thing for F R E E for a whole 30 days! That's right, you can finally change your future without giving up any sensitive information in advance! I signed up myself just a while ago and I'm already making a nice profit.

    In short, this is probably the BEST THING THAT EVER HAPPENED TO YOU IF YOU TAKE ACTION NOW!!!

    If you're interested in knowing more about this system, go to http://globalviralmarketing.com/?ref=qkgWOPkN5RoC1NWh and try it out. Again, it’s FREE!

    You can thank me later

    /Pete

    JamesAlult 回复
  3. Stevehaush

    Call back or email me, I'm interested in your offer
    720-791-3210
    usa.bts@gmail.com

    Stevehaush 回复
  4. Jeffreymaiff

    YOU HaVe BeEn HacKEd,
    IMPORTANT: HeLlo,
    The last time you visited a ?orn website,
    you downloaded and installed my v?rus Encrypted in ads.
    My program has turned on your cam and recorded the act
    of your ?asturbat?on..
    I also have all your email contact l?sts
    and a list of your friends on Facebook as a result of the encryption.
    I have the - Admin.mp4 - with you jerk?ng
    off, as well as a file with all your contacts
    on my computer.
    You are very ?erverted!
    If you want me to delete both files and scale through this,
    you must send me a Bitcoin payment.
    I give you 72 hours only to send the funds.
    If you don't know how to pay with Bitcoin,
    visit Google and search - how to buy bitcoin/ you can buy from http://localbitcoins.com

    Send 1500 USD (0.268216 BTC)
    to this Bitcoin address:

    1DhpyWmvQ1VgtSYoY1ZgpmQ3BS28G31WvT
    (copy and paste)

    1 BTC = 5,588 USD right now, so send exactly 0.268216BTC
    to the address above.
    Do not try to cheat me!
    As soon as you open this Email I will know you opened it.
    I am tracking all actions on your device..

    This Bitcoin address is linked to you only,
    so I will know when you send the correct amount.
    When you pay in full, I will remove both files and deactivate
    my program.
    If you choose to not send the bitcoin...
    I will send your ?asturbat?on v?deo to
    ALL YOUR FRIENDS AND ASSOCIATES from your

    Jeffreymaiff 回复
  5. Eduardoplody

    Hi hp2.com.cn
    Grow your bitcoins by 10% per 2 days.
    Profit comes to your btc wallet automatically.

    Try http://bm-syst.xyz
    it takes 2 minutes only and let your btc works for you!

    Guaranteed by the blockchain technology!

    Eduardoplody 回复
  6. Bryantfus

    Hi, hp2.com.cn

    I've been visiting your website a few times and decided to give you some positive feedback because I find it very useful. Well done.

    I was wondering if you as someone with experience of creating a useful website could help me out with my new site by giving some feedback about what I could improve?

    You can find my site by searching for "casino gorilla" in Google (it's the gorilla themed online casino comparison).

    I would appreciate if you could check it out quickly and tell me what you think.

    casinogorilla.com

    Thank you for help and I wish you a great week!

    Bryantfus 回复
  7. MatthewRig

    Hello from Plan B - Funding Options LLC

    *If you're thinking about starting your own business or if you need funding for most other reasons there's 3 things that you need to keep in mind.

    1. You need to make a well thought out plan, try to cover everything you want to accomplish and think of what could go wrong along the way. You could create a business plan and or executive summary to use as your guideline. As a rule, it’s best NOT to ask family or friends for money its best to use (other people’s money) a funding source that you have no personal relationship with.

    2. Expect your plan to fail in part or full in many cases this will happen no matter how well you thought out your plan. Unforeseen obstacles and speed bumps often will come in your path that prevent your plans from going as you had projected.

    3.Always without exception have a (Plan B). And that's where we come in. We are your Plan B!

    *Please visit our website for details at: https://www.planbfundingoptions.com

    Email us for funding or questions info@planbfundingoptions.com

    Call Us : 949-682-9235 (California Office)

    **If you do not need funding at this time, perhaps you know someone who does. We Pay Referral Fees!!! See this link to the page on our website that explains what it means for you! http://www.planbfundingoptions.com/we-pay-referral-fees.html

    MatthewRig 回复
  8. Davidneery

    25 charging traumatic pistols shooting automatic fire! Modified Makarov pistols with a silencer! Combat Glock 17 original or with a silencer! And many other types of firearms without a license, without documents, without problems!
    Detailed video reviews of our products you can see on our website.
    http://Gunrussia.pw
    If the site is unavailable or blocked, email us at - Gunrussia@secmail.pro or Gunrussia@elude.in
    And we will send you the address of the backup site!

    Davidneery 回复
  9. RobertGroon

    Hello! hp2.com.cn

    We present

    Sending your commercial proposal through the feedback form which can be found on the sites in the contact partition. Feedback forms are filled in by our application and the captcha is solved. The advantage of this method is that messages sent through feedback forms are whitelisted. This technique raise the probability that your message will be read. Mailing is done in the same way as you received this message.
    Your business proposition will be read by millions of site administrators and those who have access to the sites!

    The cost of sending 1 million messages is $ 49 instead of $ 99. (you can select any country or country domain)
    All USA - (10 million messages sent) - $399 instead of $699
    All Europe (7 million messages sent)- $ 299 instead of $599
    All sites in the world (25 million messages sent) - $499 instead of $999

    Discounts are valid until May 10.
    Feedback and warranty!
    Delivery report!
    In the process of sending messages we don't break the rules GDRP.

    This message is automatically generated to use our contacts for communication.

    Contact us.
    Telegram - @FeedbackFormEU
    Skype – FeedbackForm2019
    Email - FeedbackForm@make-success.com
    WhatsApp - +44 7598 509161
    http://bit.ly/2JGnUAK

    Thanks for reading.

    RobertGroon 回复
  10. Laurafloam

    Смартфоны Samsung представлены на рынке большим ассортиментом в разных ценовых сегментах. Поэтому ремонт мобильных телефонов Самсунг очень актуален востребован на сегодняшний день, подробнее на http://no-lamer.ru

    Laurafloam 回复
  11. Dustinunfop

    Случается так, что любимый телефон, служащий вам верой и правдой несколько месяцев или лет, ломается. Могут ли возникнуть поломки в самый неподходящий момент? Да, конечно. подробнее об этом читайте на сайте http://about-windows.ru

    Dustinunfop 回复
  12. GeraldMug

    Hy there, Kind front-page news ! an amazingoffer
    Are you in?

    https://drive.google.com/file/d/1bUyUp3t3yfWPT1GbzkZdZG6W-vJUzvJ4/preview

    GeraldMug 回复
  13. PatrickCoora

    Dearest in mind,
    I would like to introduce myself for the first time. My name is Barrister David Gómez González, the personal lawyer to my late client.
    He worked as a private businessman in the international field. In 2012, my client succumbed to an unfortunate car accident. My client was single and childless.
    He left a fortune worth $24,500,000.00 Dollars in a bank in Spain. The bank sent me message that I have to introduce a beneficiary or the money in their bank will be confiscate. My purpose of contacting you is to make you the Next of Kin.
    My late client left no will, I as his personal lawyer, was commissioned by the Spanish Bank to search for relatives to whom the money left behind could be paid by my deceased client. I have been looking for his relatives for the past 3 months continuously without success. Now I explain why I need your support, I have decided to make a citizen of the same country with my late client the Next of Kin.
    I hereby ask you if you give me your consent to present you as the next of kin to my deceased client to the Spanish Bank as the beneficiary. I would like to point out that you will receive 45% of the share of this money, 45% then I would be entitled to, 10% percent will be donated to charitable organizations.
    If you are interested, please contact me at my private contact details by Tel: 0034-604-284-281, Fax: 0034-911-881-353, Email: ddggabogados@mail.com
    I am waiting for your answer
    Best regards,
    Lawyer: - David Gómez González

    PatrickCoora 回复
  14. KeithNic

    Последние новости фэшион индустрии здесь fashions-girls.ru

    KeithNic 回复
  15. Timothydam

    Hello,

    Do you want to achieve better advertising result for your business today? We are experts who can help increase your new customers and sales activity while lowering your advertising costs.

    We live and breathe Facebook ads and digital advertising. As we constantly invest ourselves into latest training and hacks out there, we get to stay on top of what's happening around Facebook ads.

    Our Expertise Are in:

    Create/setup New ad campaign
    Optimize New or Old Campaign
    Remove Bad Performing Ads/Page
    Target Audience by Demographics, Interests or Behaviors
    Manual or Auto Bid
    Manual Ad Placement

    Campaigns Which We Can Setup & Run:

    Website Visit Campaign (Traffic)
    Lead Generation Campaigns (Best for Email Generation)
    Messenger Ads & Near Me (Location Based Ads)
    Brand Awareness Campaign
    Post Engagement Campaign
    Service-Based Campaign
    Store Visits Campaign

    How does the process work? Each week we will send you leads from prospective clients who have expressed interest in your product or service. You pay only for the leads that you receive, with no additional costs. This is a low risk method of advertising. You know exactly what you are getting and you know the exact result. And most importantly, you know that you can afford it because the money you spend is directly correlated to new business.

    Looking forward to showing you how we can do business. Reach out to us today and lets get you started.

    Peter Brighton
    Azdumi Ads Team.
    https://adzumi.com/

    Timothydam 回复
发表新评论