07 2011 档案
摘要:参考这篇博文:http://blog.csdn.net/danny_xcz/article/details/3332251步骤:1.在官网下载一个CodeBlocks(带mingw的版本);2.配置编译器,在Selected Compiler选项中选GNU GCC Compiler ;3.填写编译参数,Compiler Setting里的Other Options中粘贴-fopenmp ;4.填写连接参数,Link Setting里的Other Options中粘贴-lgomp -lpthread ;5.建立并运行所参考博文所写的程序。如果运行时出现libgomp-1.dll丢失的问题而不能运
阅读全文
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>using namespace std;const int baseLength = 6;const int MAX = 200;char a[baseLength]={0}; //base///不要思维定势地以为b也要用字符数组来保存///Don't think b as array,a integer type is enoughint b = 0; //indexint c[MAX] = {0}; ...
阅读全文