Yeah, square one indeed.
El Greco: Thanks for the list. I knew some, but you cleared up some misconceptions/unknowns for me. Thanks.
Quote:I'm not sure exactly what you're going to do
. I need to parse a tabular file with variable column counts. Ie. count be a 2x2 table, or 800x789. Size is known at run time.
I then need to find sums, averages, etc.
My initial idea was to read in a line, parse it using regex (I looked into boost::sprirt, but found it confusing, and I've used regex lots ) and populate the vector grid. But regex is not support for bcb.
My idea is as follows. I'm going to write a dll wrapper for boost::regex. Basically:
int parse(float* list, //memory allocated by the main application char* line, //the line to parse int col //total col count so we don't over write past array boundaries )
I will have a 2D vector array in the main application, then read in and pass the DLL each line. Create a new std string from the char* to use with regex. Use regex to break it up, use lexical cast<float> to convert each matched string from string to float, and insert into the float array.
This way all the stl stuff can be kept in the main app and I'm not allocating any memory in the dll. After I build the vector line by line, I can do what I need with it.
Does this seem reasonable?