Reaction score
0

Profile posts Latest activity Postings About

  • Thanks Julia. I will ask your for it on Monday or Tuesday.

    Felix
    what i do to output data to excel is that i just write out a "," delimited file. I just wrote a small C++ function to do that.
    below is my code:
    int writeResultsToFile(string outputfile,const map<string,double> data)
    {
    ofstream outfile(outputfile.c_str());
    for(map<string,double>::const_iterator iter = data.begin() ; iter != data.end() ; iter ++ ) {
    outfile << iter->first << "," << iter->second << endl;
    }
    //clean and close before completing.
    outfile.close();
    outfile.clear();
    return 1;
    }
  • Loading…
  • Loading…
  • Loading…
Back
Top