Ignore:
Timestamp:
Dec 2, 2009 7:15:15 PM (9 years ago)
Author:
bjarni
Message:

Check CoinFindSeparator? and set Windows directory to ..\..\..\..\Data\Sample

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/sandbox/Cbc/examples/sample2.cpp

    r333 r1335  
    7373  // Read in model using argv[1]
    7474  // and assert that it is a clean model
    75   std::string mpsFileName = "../../Data/Sample/p0033.mps";
     75  const char dirsep =  CoinFindDirSeparator();
     76  std::string mpsFileName;
     77  if (dirsep == '/')
     78          mpsFileName = "../../Data/Sample/p0033.mps";
     79  else
     80          mpsFileName = "..\\..\\..\\..\\Data\\Sample\\p0033.mps";
    7681  if (argc>=2) mpsFileName = argv[1];
    7782  int numMpsReadErrors = solver1.readMps(mpsFileName.c_str(),"");
Note: See TracChangeset for help on using the changeset viewer.