- 博客(4)
- 收藏
- 关注
转载 C#方法返回IEnumerable实现用foreach遍历
<br />http://hi.baidu.com/tios/blog/item/43340a551cbcf7ceb745aed1.html<br /> <br />在C#中,只要函数返回IEnumerable<T>,就能实现用foreach对元素进行遍历,代码如下<br />public class ReturnIEnumerable{public IEnumerable<int> GetEnum() // 返回IEnumerable<T>的方法{ for(int i=0;i<100;
2010-08-18 16:54:00
3926
原创 windows下使用mingw+msys+gvim来写C++程序
安装mingw个msys的网址http://www.mingw.org/,主页上有介绍这两个工具的说明,具体安装在网站左边搜索下mingw和msys就可以了。简单说明下,mingw提供了gcc、g++、g77等编译工具,全部安装也不是很大,msys提供了ls、rm、mkdir等Linux下一些常用shell命令,具体可见安装默认目录C:/msys/1.0/bin。安装gvim的网址http
2010-01-10 10:29:00
2256
原创 JCreator的安装使用(笔记)
(在安装JCreator之前先安装好JDK及其参考文件,参考文件可以不安装,忘了可以google下) http://jcreator-xinox.appspot.com/download.htm 下载LE版本双击默认安装激活设置,包括用户设置,文件关联,JDK主目录和JDK帮助目录,注意后两个目录的路径要和已安装的JDK及其参考文件一致使用设置,菜单Configure->o
2009-12-22 13:01:00
1928
1
原创 开始Qt的旅程
新建hello文件夹并cd进去,新建文件hello.cpp并输入以下代码#include #include int main(int argc, char *argv[]){ QApplication app(argc, argv); Q
2009-12-21 20:17:00
452
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人