摘要:
要求是给出一个 int [] arr,求出这个数组中所有数的平均数。不加考虑的话,可以这样写:int Average(int[] arr){ int sum = 0; foreach(int i in arr) { sum += i; } return sum / arr.length;}然而,这样的解法是错误的,因为sum在... 阅读全文
2004年4月17日 #
摘要:
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 ... 阅读全文