摘要:
问题:为什么c#中要有ref和out?(而java中没有)需求假设:现需要通过一个叫Swap的方法交换a,b两个变量的值。交换前a=1,b=2,断言:交换后a=2,b=1。 现编码如下: 1classProgram2{3staticvoidMain(string[]args)4{5inta=1;6intb=2;7Console.WriteLine("交换前"ta={0}"tb={1}"t",a,b... 阅读全文
摘要:
A) A list of the typical excuses for not being done on time: My dog ate the report. Oh, you needed that this week? You're not the boss of me. Put it on the pile, I'll get to it whenever. 一些在未能及时完成工作... 阅读全文