Skip to content
Snippets Groups Projects
Commit 75217ab2 authored by Aaron's avatar Aaron
Browse files

minor comments

parent 15a93965
No related branches found
No related tags found
No related merge requests found
...@@ -218,8 +218,10 @@ void Expand (const string &inFile, ...@@ -218,8 +218,10 @@ void Expand (const string &inFile,
<< "*****" << endl; << "*****" << endl;
exit(1); exit(1);
} }
// expand the requested column into a vector // expand the requested column into a vector
Tokenize(inFields[expColumns[c]-1], expansion, ','); Tokenize(inFields[expColumns[c]-1], expansion, ',');
if ((int) expansion.size() != prev_size && prev_size >= 0) { if ((int) expansion.size() != prev_size && prev_size >= 0) {
cerr << endl cerr << endl
<< "*****" << endl << "*****" << endl
...@@ -248,6 +250,8 @@ void Expand (const string &inFile, ...@@ -248,6 +250,8 @@ void Expand (const string &inFile,
} }
// expanded column, grab relevant value from expanded vector. // expanded column, grab relevant value from expanded vector.
else { else {
// expandedCols[i][j]
// i == column, j = row
printf("%s", expandedCols[numExpColsSeen][n].c_str()); printf("%s", expandedCols[numExpColsSeen][n].c_str());
numExpColsSeen++; numExpColsSeen++;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment