文章分类 -  Others

摘要:<!DOCTYPE html><html><head><title></title><style type="text/css"> * { margin: 0; padding: 0;} body { font-size: 12px; text-align: center;} a {color: #04d;text-decor... 阅读全文
posted @ 2010-04-23 16:10 ued 阅读(331) 评论(0) 推荐(0)
摘要:Question:I'm trying to read an Excel (xlsx) file using the code shown below. I get an "External table is not in the expected format." error unless I have the file already open in Excel. In other words... 阅读全文
posted @ 2010-04-08 18:13 ued 阅读(3380) 评论(0) 推荐(1)
摘要:在C# 中,既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值,并保持该更改。若要通过引用传递参数, 可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效,其作用也很像C中的指针变量。它们的区别是:1、使用ref型参数时,传入的参数必须先被初始化。对out而言,必须在方法中对其完成初始化。2、使用ref和out时,在方法的参数和执行方法时,都要加Re... 阅读全文
posted @ 2010-03-31 18:24 ued 阅读(210) 评论(0) 推荐(0)
摘要:答案:能用foreach遍历访问的对象必须是集合或数组对象,而这些都是靠实现超级接口IEnumerator或被声明 GetEnumerator 方法的类型问:但是我在平常使用foreach in 的时候都是直接用的呀,也没出什么问题呀。请问,这是为什么呢。 如果按题目中问的那样去实现超级接口IEnumerator或被声明 GetEnumerator 方法的类型,应该怎样去做呢? 谢谢答:平常使用f... 阅读全文
posted @ 2010-03-23 10:37 ued 阅读(17301) 评论(1) 推荐(3)
摘要:在M个数值中(M>200) 取N个值(N<=100) 阅读全文
posted @ 2010-03-22 18:26 ued 阅读(196) 评论(0) 推荐(0)