- 博客(13)
- 资源 (2)
- 收藏
- 关注
原创 【C++ Primer】标准库bitset类型
/**标准库bitset类型*Zhi-Yun Deng*2013-10-31*/#include #include //标准库bitset类型头文件#include #include //size_t类型定义在cstddef头文件中using std::cin;using std::cout;using std::endl;using std::bitset;//bi
2013-11-04 10:38:01 609
原创 【C++ Primer】标准库vector类型
/**标准库vector类型*Zhi-Yun Deng*2013-11-03*/#include #include //标准库vector类型头文件#include using std::vector; //vector的using声明using std::cin;using std::cout;using std::endl;using std::string;i
2013-11-04 10:36:55 478
原创 【C++ Primer】标准库string类型
/**标准库string类型*Zhi-Yun Deng*2013-11-01*/#include #include //标准库string类型头文件#include //string对象中字符的处理函数的头文件using std::string; //string类型的using声明using std::cin;using std::cout;using std::en
2013-11-04 10:35:27 506
原创 Eclilpse插件安装
1、在线安装 在线安装简单方便,可以保证插件的完整性,并可自由选择最新的版本。 Help->Install New Software...->Add... 对话框中Name字段输入标识的插件名,Location字段输入插件的安装地址,单击OK按钮结束。 PS:Eclipse插件的安装地址需要从插件的官网查询。2、使用本地压缩包安装 Help->
2013-09-29 11:41:05 647
原创 Ubuntu 13.04安装配置Maven
1、检查Java开发环境详情见:http://blog.csdn.net/dzy469271071/article/details/121114232、下载安装Maven 1)下载地址:http://maven.apache.org/download.cgi (下载apache-maven-3.1.0-bin.tar.gz) 2)解压到安装目录下。(/opt)
2013-09-28 22:51:20 632
原创 Ubuntu 13.04安装配置Java开发环境
1、检查JAVA_HOME环境变量以及Java命令2、下载及安装JDKJDK下载地址:http://www.oracle.com/technetwork/java/javase/downloads/index.html安装文档:http://docs.oracle.com/javase/7/docs/webnotes/install/linux/linu
2013-09-27 23:16:58 812
原创 vim配置
"""""""""""""""""""""""""""""""""""""""""""""""""""""""一般设置"""""""""""""""""""""""""""""""""""""""""""""""""""""""帮助系统设置为中文set helplang=cn"显示行号set number"为光标所在行加下划线set cursorline"设定默认解码set f
2013-05-01 18:53:15 385
原创 使用pthread实现统计直方图
#include #include #include #include #include #define MAXLINE 10000001double *ptd;int count[10]={0};int num=0;int thread_count;void* Pth_count(void* rank);pthread_mutex_t mutex_p;int ma
2013-04-21 15:00:21 1514 2
转载 How to Install the Latest Nvidia Driver on Ubuntu 12.04
转自http://news.softpedia.com/news/How-to-Install-The-Latest-Nvidia-Driver-on-Ubuntu-12-04-295542.shtmlNvidia is starting to get serious about Linux and they are releasing more and more powerful dri
2013-04-21 10:43:37 520
原创 用Pthreads进行共享内存编程----HelloWorld
1、编译gcc -g -Wall -o pth_hello pth_hello.c -lpthread2、运行./pth_hello 例:运行4个线程,./pth_hello 43、源代码#include #include #include int thread_count;void * Hello(void * rank);int main(int arg
2013-04-18 21:35:15 1170
原创 ubuntu环境MPI使用
1、环境搭建终端:sudo apt-get install mpich2安装的是mpich2的1.4.1版本。2、编译终端:mpicc mpi_hello.c -g -Wall -o mpi_hello3、运行终端:mpiexec -n ./mpi_hello例:用4个进程运行程序mpiexec -n 4 ./mpi_hello
2013-04-18 10:39:53 742
原创 使用MPI实现直方图
#include #include //mpi #include //#define MAXLINE 10000001int main(){ double *ptd; char *ptc; FILE *fp; int i = 0; double start, finish; int count[10]={0}; int
2013-04-16 16:53:17 1658
原创 串行直方图程序
#include #include #include #include #define MAXLINE 10000001int main(){ double *ptd; char *ptc; FILE *fp; int i = 0; struct timeval t_read; double readCost=0,countC
2013-04-15 21:11:18 584
MPI实现直方图统计
2013-04-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人