Пятничные задачки

Added by Алексей Румянцев almost 9 years ago

Появилась идея давать вам маленькие задачки по шарпу, для общего развития так сказать:) Программировать ничего не надо, только подумать пару минут и дать ответ.
Если заинтересуетесь, то буду делать это регулярно.
Вообщем вот:
  1. есть такой кусок кода:
    Action action = null;
    for (int i = 0; i < 3; i++)
    {
      action += () => Console.Write(i);
    }
    action();
    

    Что будет выведено на консоль?
  2. Наверно все знают, что у нас в LinearAlgebra есть класс Vector, у него есть конструкторы Vector(int size) и Vector(params double[] data) и свойтво Size, возвращающее размерность вектора. Что будет выведено на консоль?
    Vector a = new Vector(4.0);
    Vector b = new Vector(1, 2, 3);
    Vector c = new Vector(2, 3);
    Vector d = new Vector(3);
    Console.Write("{0}{1}{2}{3}", a.Size, b.Size, c.Size, d.Size);
    

Ответы пишем тут в комментариях.


Replies (52)

Comment

RwzpANgYApPOtC - Added by Anonymous almost 3 years ago

Comment

vHBkhwEQpFCcbehz - Added by Anonymous almost 3 years ago

Comment

YpPECanxYN - Added by Anonymous almost 3 years ago

Comment

cheap jordans - Added by Anonymous about 2 years ago

I and also my friends were found to be checking the great techniques on your website then immediately I had an awful suspicion I never thanked the web blog owner for those tips. My people happened to be happy to study all of them and have absolutely been using them. Many thanks for indeed being so helpful and for making a choice on some high-quality themes most people are really desirous to know about. Our own honest apologies for not expressing gratitude to sooner.
cheap jordans http://www.shoesjordan.us.com

Comment

off white shoes - Added by Anonymous about 2 years ago

My wife and i ended up being quite comfortable when Peter managed to round up his studies by way of the ideas he obtained from your very own site. It's not at all simplistic to just be making a gift of guides that some people may have been making money from. And we also consider we've got you to thank for this. The most important explanations you have made, the simple web site navigation, the relationships your site make it possible to instill - it's got mostly superb, and it's making our son in addition to us do think that concept is awesome, and that's particularly pressing. Many thanks for the whole lot!
off white shoes http://www.off-whiteshoes.us.com

Comment

air jordan 12 - Added by Anonymous about 2 years ago

I simply desired to thank you very much all over again. I'm not certain the things I could possibly have made to happen in the absence of these tips revealed by you directly on such area of interest. It had become a distressing issue for me personally, however , looking at a new well-written avenue you handled it took me to leap over gladness. Now i'm grateful for the help and in addition hope that you find out what an amazing job you have been carrying out training the others via a site. I am sure you've never got to know any of us.
air jordan 12 http://www.jordan12.us.com

Comment

Adidas NMD Men Women Fur High Classic - Added by Anonymous about 2 years ago

Thank you so much for giving everyone such a terrific possiblity to check tips from this blog. It really is very fantastic and as well , stuffed with a great time for me personally and my office fellow workers to search your blog at minimum three times a week to find out the fresh tips you will have. Not to mention, I'm at all times contented with your astonishing methods served by you. Selected 4 ideas in this post are surely the finest I have had.
Adidas NMD Men Women Fur High Classic http://www.adidas-nmds.us.com/adidas-nmd-men-women-fur-high-classic-p-504.html

Comment

golden goose - Added by Anonymous about 2 years ago

I would like to express my thanks to you just for bailing me out of this particular problem. Just after browsing throughout the the net and seeing tricks which were not productive, I assumed my entire life was done. Existing devoid of the strategies to the issues you've fixed through this guideline is a serious case, and the ones that could have adversely damaged my career if I had not discovered your blog post. Your good understanding and kindness in dealing with all things was valuable. I don't know what I would have done if I hadn't come across such a point like this. I can also at this time look ahead to my future. Thanks for your time so much for your specialized and amazing guide. I will not be reluctant to recommend your web site to any person who needs to have direction about this subject.
golden goose http://www.goldengoose-outlet.us.com

Comment

offwhite - Added by Anonymous about 2 years ago

I'm just commenting to let you know what a outstanding encounter my friend's princess encountered going through your blog. She figured out such a lot of pieces, most notably what it's like to have a great helping mindset to get many more with no trouble know precisely selected extremely tough things. You undoubtedly exceeded people's expected results. Many thanks for supplying such insightful, trustworthy, informative and also fun tips about your topic to Mary.
offwhite http://www.offwhite.us.com

Comment

outlet golden goose - Added by Anonymous about 2 years ago

Thank you so much for providing individuals with a very brilliant possiblity to read critical reviews from here. It really is so lovely and jam-packed with fun for me personally and my office friends to visit your blog at least 3 times in a week to read the new issues you will have. And of course, I'm usually happy with your spectacular strategies served by you. Selected 2 facts in this article are unequivocally the finest I have ever had.
outlet golden goose http://www.goldengoosesneakers.us

Comment

yeezy boost - Added by Anonymous about 2 years ago

I actually wanted to develop a small note so as to thank you for some of the marvelous suggestions you are writing here. My long internet research has now been rewarded with really good ideas to go over with my company. I would state that that we website visitors are very much blessed to dwell in a great website with very many wonderful people with good plans. I feel quite grateful to have discovered the site and look forward to tons of more amazing minutes reading here. Thanks a lot again for all the details.
yeezy boost http://ix.sk/cPUqq

Comment

longchamp - Added by Anonymous about 2 years ago

Thanks a lot for providing individuals with a very superb possiblity to read from here. It's always so useful and full of a good time for me personally and my office colleagues to visit the blog on the least 3 times weekly to learn the newest guides you have. Of course, we are certainly happy with your breathtaking things you give. Some two ideas in this article are unquestionably the simplest we have ever had.
longchamp http://www.long-champ.us.com

Comment

nike shox - Added by Anonymous about 2 years ago

I precisely needed to appreciate you yet again. I'm not certain the things I would have implemented without the secrets discussed by you concerning my theme. It previously was an absolute depressing circumstance in my view, but being able to view your expert form you processed the issue forced me to jump for contentment. I am just happy for this work and as well , hope that you realize what a powerful job you are always undertaking training men and women using a site. I am sure you haven't come across any of us.
nike shox http://www.nike-shox.us.com

Comment

fila - Added by Anonymous about 2 years ago

My spouse and i ended up being quite comfortable that Ervin could conclude his web research through your precious recommendations he was given through your blog. It is now and again perplexing just to always be handing out tricks that many people have been trying to sell. And now we figure out we've got the writer to be grateful to because of that. Most of the explanations you have made, the simple blog menu, the relationships your site make it possible to engender - it is most fabulous, and it's helping our son in addition to us reason why the idea is awesome, which is exceedingly vital. Many thanks for the whole thing!
fila http://www.filas.us.com

Comment

moncler jackets - Added by Anonymous about 2 years ago

I have to express some thanks to you for bailing me out of such a circumstance. Just after checking through the the net and seeing advice which were not productive, I figured my life was done. Existing minus the approaches to the issues you've resolved all through your good report is a critical case, and those that might have in a negative way affected my entire career if I hadn't discovered the website. Your main mastery and kindness in touching the whole thing was valuable. I am not sure what I would've done if I had not discovered such a stuff like this. I can at this time relish my future. Thank you very much for your specialized and result oriented guide. I will not be reluctant to recommend your blog to any person who desires guide on this subject matter.
moncler jackets http://www.monclerjackets.us

Comment

adidas ultra - Added by Anonymous about 2 years ago

I enjoy you because of every one of your labor on this site. Kate loves participating in internet research and it's simple to grasp why. We all know all regarding the powerful medium you make very helpful secrets through the website and as well as encourage response from website visitors on the area of interest so my child has always been discovering a lot. Take advantage of the remaining portion of the year. You're conducting a good job.
adidas ultra https://42.herber.pl/ultrausc

Comment

michael kors outlet - Added by Anonymous about 2 years ago

I enjoy you because of your own hard work on this web site. Kate delights in conducting internet research and it's obvious why. We hear all relating to the lively mode you deliver vital tips on the web site and in addition improve participation from other individuals on that area so our favorite daughter has been being taught a lot of things. Have fun with the rest of the year. You have been carrying out a great job.
michael kors outlet http://www.outletmichael-kors.us.com

Comment

golden goose sneakers - Added by Anonymous about 2 years ago

I together with my pals were actually going through the great tips and tricks located on your website and unexpectedly I got an awful feeling I had not expressed respect to you for them. All the women became as a consequence glad to study them and have quite simply been having fun with these things. Appreciation for turning out to be quite accommodating as well as for using this form of great useful guides millions of individuals are really desirous to understand about. My personal honest regret for not expressing gratitude to you sooner.

Comment

off white - Added by Anonymous about 2 years ago

I have to express my appreciation to you for bailing me out of this particular challenge. After looking throughout the the net and meeting recommendations which were not productive, I thought my entire life was done. Existing without the presence of strategies to the difficulties you have resolved through this guideline is a serious case, as well as ones that might have negatively damaged my entire career if I hadn't come across the website. Your good skills and kindness in playing with all the details was very useful. I'm not sure what I would've done if I hadn't discovered such a thing like this. I can at this moment look forward to my future. Thanks very much for this skilled and effective guide. I won't hesitate to refer the blog to any individual who would like recommendations about this situation.
off white http://www.offwhite.us.com

Comment

off white clothing - Added by Anonymous about 2 years ago

I intended to post you a bit of observation to finally say thanks a lot once again about the splendid guidelines you have shared on this website. It was so remarkably generous of people like you to deliver openly just what many individuals might have sold as an e book to earn some cash for their own end, even more so since you could have done it if you ever considered necessary. The thoughts likewise acted to be a great way to realize that other people have the same zeal just as mine to understand great deal more in respect of this condition. I think there are a lot more pleasurable instances ahead for folks who go through your website.
off white clothing http://www.offwhite.us.com

Comment

links of london sale - Added by Anonymous about 2 years ago

I simply needed to say thanks again. I do not know the things that I would have accomplished without the entire methods documented by you about that question. It had been a daunting setting in my circumstances, but being able to view the skilled avenue you resolved the issue forced me to cry for fulfillment. Extremely happier for your assistance as well as expect you find out what an amazing job your are getting into teaching other individuals using your blog. I am certain you haven't met any of us.
links of london sale http://www.linksoflondonus.com

Comment

adidas gazelle sale - Added by Anonymous about 2 years ago

I want to express my appreciation to you just for rescuing me from this particular challenge. Right after checking throughout the the net and obtaining methods which are not helpful, I believed my life was over. Existing devoid of the strategies to the difficulties you've resolved by means of your good site is a critical case, as well as the ones which might have badly damaged my entire career if I had not noticed the blog. That skills and kindness in dealing with all the details was priceless. I'm not sure what I would have done if I hadn't come upon such a step like this. I can also at this time relish my future. Thanks a lot so much for this high quality and amazing guide. I will not think twice to endorse the blog to anybody who needs to have care about this matter.
adidas gazelle sale http://www.adidasgazelle.us.com

1 2 3 (26-50/52)

Reply