小编HTM*_*TMZ的帖子

如何在Windows Vista上编译为Linux/Unix编写的C++源代码(给出代码)

我有一个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)

c++ unix windows-vista

3
推荐指数
1
解决办法
1071
查看次数

标签 统计

c++ ×1

unix ×1

windows-vista ×1