Written in 2-14, programmers can understand the love letter

Source: Internet
Author: User

I just laughed at me. A brother from the blog garden sent a love letter written in 2-14, which programmers can understand.

Address: http://www.cnblogs.com/walleyekneel/archive/2012/02/14/2351237.html

Really talented.

I wish you a happy Valentine's Day. Don't work overtime at night. Come home and accompany your daughter-in-law.

 

In fact, I found out today that it is too late for Amitabha. You cannot blame me.

I always thought that the main difference between classes and interfaces is that classes can be inherited, but the structure is not good. However, if there is no error in analyzing this sentence. Generally, classes are inherited, while interfaces are implemented. Oh, oh .. Text games.

Okay, I admit defeat. I just wrote a piece of code and pasted it to prove my point of view.

Struct MyStruct: IEnumerable
{
Public IEnumerator GetEnumerator ()
{
Int [] ints = new int [] {1, 2, 3, 4 };
For (int I = 0; I <ints. Length; I ++)
Yield return I;
}
}

And then call it in main.

Static void Main (string [] args)
{
MyStruct myStruct = new MyStruct ();
Foreach (int I in myStruct)
Console. WriteLine (I );
}

The result is:

Look, it's not a lie !...

Valentine's Day can be a lie.

 

Happy Valentine's day again.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.