理想与现实之间

学习的最好方法就是blog

博客园 首页 新随笔 联系 订阅 管理

2004年4月17日 #

摘要: 要求是给出一个 int [] arr,求出这个数组中所有数的平均数。不加考虑的话,可以这样写:int Average(int[] arr){ int sum = 0; foreach(int i in arr) { sum += i; } return sum / arr.length;}然而,这样的解法是错误的,因为sum在... 阅读全文
posted @ 2004-04-17 18:14 Justin Shen 阅读(1170) 评论(5) 推荐(0) 编辑

摘要: Managed C++ is going to have a totally new syntax, and it is now called C++/CLI .i was informed of this from here. You may go and see qqchen's brief comparation of the old syntax and the new one. The ... 阅读全文
posted @ 2004-04-17 12:14 Justin Shen 阅读(539) 评论(0) 推荐(0) 编辑