摘要: 可执行的简单例子:http://huangqinqin.iteye.com/blog/1457402====================================0. edit ./src/HelloWorld.java1.javac ./src/HelloWorld.java (生成He... 阅读全文
posted @ 2014-08-24 17:11 谭小羽 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 入门教程:http://blog.crackcell.com/posts/2013/07/15/mpi_quick_start.htmlmpi的常用函数:1.MPI_COMM_WORLD:“MPI应用中的所有进程”,它称为通信子,并且提供消息传递所需的所有信息。2.intMPI_Init(int *... 阅读全文
posted @ 2014-08-24 16:40 谭小羽 阅读(193) 评论(0) 推荐(0) 编辑
摘要: linux下的c编程基础 阅读全文
posted @ 2014-08-24 10:37 谭小羽 阅读(5393) 评论(0) 推荐(0) 编辑
摘要: step1:ll $DIR/*.tar | awk '{print $9}' > filelist将该目录下的所有tar包的包名输出到filelist中step2:vim run.shwhile read linedo echo $line tar xzvf $linedone < f... 阅读全文
posted @ 2014-05-21 14:06 谭小羽 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 摘自: http://blogread.cn/it/article/1266?f=savoid GetMemory(char *p){ p=(char*)malloc(100);}void Test(void){ char *str = NULL; GetMemory(str); strcpy(str,”helloworld”); printf(str);}请问运行Test函数会有什么样的结果?答:程序崩溃。因为GetMemory并不能传递动态内存,Test函数中的str一直都是NULL。strcpy(str,”helloworld”);将使程序崩溃。子函数开辟空间p,用于... 阅读全文
posted @ 2013-05-21 17:00 谭小羽 阅读(999) 评论(0) 推荐(0) 编辑
摘要: Beautiful is better than ugly.美优于丑Explicit is better than implicit.晰胜于浑Simple is better than complex. 简胜于繁Complex is better than complicated. 繁胜于杂Flat is better than nested. 平胜于嵌Sparse is better than dense. 稀胜于稠Readability counts. 可读至上Special cases aren't special enough to break the rules. 殊例不足违 阅读全文
posted @ 2012-12-31 13:19 谭小羽 阅读(144) 评论(0) 推荐(0) 编辑