![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
CTO_TOC
这个作者很懒,什么都没留下…
展开
-
关于在VC6.0+icc9.0组合下使用openmp进行多核并行运算的总结
1.相关环境的配置 1)这里下载的是icc9.0的版本,提示运行相关程序进行安装 2)根据网络上的相关教程进行环境的配置,可以参考下面的链接 http://blog.sina.com.cn/s/blog_3cb2e6e80100mvqb.html 在这里需要特别注意的是需要对其进行相应的改变,起初出现的错误是 ignoring option '-Qopenmp';这样的警告,这样就无原创 2016-08-22 16:03:06 · 521 阅读 · 0 评论 -
STL_algorithm
官方参考链接:http://www.cplusplus.com/reference/algorithm/ 目前个人使用过的函数说明: min_element:ForwardIterator min_element ( ForwardIterator first, ForwardIterator last ) 作用:求序列的最小值 参数: first:最初位置 last最小位置 实战经原创 2017-03-20 18:45:53 · 189 阅读 · 0 评论 -
堆排序_Heap Sort
PS:使用模板函数进行编程子函数的编写template<class T> void heap_sort(T*array,int length) { int i; buildMaxHeap(array,length-1); for(i=(length-1);i>=1;i--) { swap(&array[0],&array[i]); he原创 2017-06-08 21:09:14 · 179 阅读 · 0 评论 -
直接插入排序
//直接插入排序 template void insert_sort(T*s ,int n) { int i,j; T temp; for(i = 1;i<n;i++) { temp = s[i]; for(j=i-1;j>=0&&temp<s[j];j--) { s[j+1] = s[j]; } } s[j+1] = tem原创 2017-09-02 21:34:12 · 148 阅读 · 0 评论 -
希尔排序_Shell Sort
template void shell_sort(T*s,int n) { T temp; int i,j,h; for( h=n/2;h>0;h=h/2) { for( i=h;i<n;i++) { temp = s[i]; for(j=i-h;j>=0&&temp<s[j];j=j-h) { s[j+h]=s[j]; } s[j+h] =原创 2017-09-02 21:41:30 · 202 阅读 · 0 评论