65,211
社区成员
发帖
与我相关
我的任务
分享
#include "stdafx.h"
#include <iostream>
#include <fstream>
#include <bitset>
#include <string>
#define path_num 2000
#define word_size 100 //最大单词大小
#define null 0
#define stopword_num 1000
#define bit_size 3750 //定义的向量空间的大小
using namespace std;
int main(int argc, char* argv[])
{
int n_path=0,i=0;
int n_stop=0;
string stopword[stopword_num];
string line[path_num],line2[path_num];
char *p[path_num]={null};
int count[path_num]={0};
bitset <bit_size> v[path_num]={0}; //可能是这句中申请的空间太大了
int max_path=0;
return 0;
}
#include <iostream>
#include <fstream>
#include <bitset>
#include <string>
#define path_num 2000
#define word_size 100
//最大单词大小
#define null 0
#define stopword_num 1000
#define bit_size 3750
//定义的向量空间的大小
using namespace std;
int main(int argc, char* argv[])
{
int n_path=0,i=0;
int n_stop=0;
string stopword[stopword_num];
string line[path_num],line2[path_num];
char *p[path_num]={null};
int count[path_num]={0};
bitset<bit_size> *v = new bitset<bit_size>[path_num]; //dynamic
int max_path=0; return 0;
}