mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Fixing indent
Just formatting
This commit is contained in:
parent
ed900e28dc
commit
0dcdb01bf6
@ -70,28 +70,27 @@ int main()
|
|||||||
clog << "Creating a single vector which stores the whole spread sheet" << endl;
|
clog << "Creating a single vector which stores the whole spread sheet" << endl;
|
||||||
vector< vector<string> > theWholeSpreadSheet;
|
vector< vector<string> > theWholeSpreadSheet;
|
||||||
for (auto row : ws.rows(false))
|
for (auto row : ws.rows(false))
|
||||||
{
|
{
|
||||||
clog << "Creating a fresh vector for just this row in the spread sheet" << endl;
|
clog << "Creating a fresh vector for just this row in the spread sheet" << endl;
|
||||||
vector<string> aSingleRow;
|
vector<string> aSingleRow;
|
||||||
for (auto cell : row)
|
for (auto cell : row)
|
||||||
{
|
{
|
||||||
clog << "Adding this cell to the row" << endl;
|
clog << "Adding this cell to the row" << endl;
|
||||||
aSingleRow.push_back(cell.to_string());
|
aSingleRow.push_back(cell.to_string());
|
||||||
}
|
}
|
||||||
clog << "Adding this entire row to the vector which stores the whole spread sheet" << endl;
|
clog << "Adding this entire row to the vector which stores the whole spread sheet" << endl;
|
||||||
theWholeSpreadSheet.push_back(aSingleRow);
|
theWholeSpreadSheet.push_back(aSingleRow);
|
||||||
}
|
}
|
||||||
clog << "Processing complete" << endl;
|
clog << "Processing complete" << endl;
|
||||||
|
clog << "Reading the vector and printing output to the screen" << endl;
|
||||||
clog << "Reading the vector and printing output to the screen" << endl;
|
for (int rowInt = 0; rowInt < theWholeSpreadSheet.size(); rowInt++)
|
||||||
for (int rowInt = 0; rowInt < theWholeSpreadSheet.size(); rowInt++)
|
|
||||||
{
|
{
|
||||||
for (int colInt = 0; colInt < theWholeSpreadSheet.at(rowInt).size(); colInt++)
|
for (int colInt = 0; colInt < theWholeSpreadSheet.at(rowInt).size(); colInt++)
|
||||||
{
|
{
|
||||||
cout << theWholeSpreadSheet.at(rowInt).at(colInt) << endl;
|
cout << theWholeSpreadSheet.at(rowInt).at(colInt) << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
Save the contents of the above file
|
Save the contents of the above file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user