我有一个c ++源代码,由其他作者在linux/unix环境中编写.当我在windows vista环境中编译它时,它给了我错误.我正在使用Bloodshed Dev C++ v 4.9.请帮忙.
#include <iostream.h>
#include <map>
#include <vector>
#include <string>
#include <string.h>
#include <strstream>
#include <unistd.h>
#include <stdlib.h>
using namespace std;
template <class T> class PrefixSpan {
private:
vector < vector <T> > transaction;
vector < pair <T, unsigned int> > pattern;
unsigned int minsup;
unsigned int minpat;
unsigned int maxpat;
bool all;
bool where;
string delimiter;
bool verbose;
ostream *os;
void report (vector <pair <unsigned int, int> > &projected)
{
if (minpat > pattern.size()) …Run Code Online (Sandbox Code Playgroud)