From 0dcdb01bf6d06dcfacf2841f6c930137ff18cf11 Mon Sep 17 00:00:00 2001 From: Timothy McCallum Date: Tue, 2 May 2017 22:06:47 +1000 Subject: [PATCH] Fixing indent Just formatting --- docs/introduction/Examples.md | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/docs/introduction/Examples.md b/docs/introduction/Examples.md index ece34bb7..1aeee8b4 100644 --- a/docs/introduction/Examples.md +++ b/docs/introduction/Examples.md @@ -70,28 +70,27 @@ int main() clog << "Creating a single vector which stores the whole spread sheet" << endl; vector< vector > theWholeSpreadSheet; for (auto row : ws.rows(false)) - { - clog << "Creating a fresh vector for just this row in the spread sheet" << endl; - vector aSingleRow; - for (auto cell : row) - { - clog << "Adding this cell to the row" << endl; - aSingleRow.push_back(cell.to_string()); - } - clog << "Adding this entire row to the vector which stores the whole spread sheet" << endl; - theWholeSpreadSheet.push_back(aSingleRow); - } - clog << "Processing complete" << endl; - - clog << "Reading the vector and printing output to the screen" << endl; - for (int rowInt = 0; rowInt < theWholeSpreadSheet.size(); rowInt++) + { + clog << "Creating a fresh vector for just this row in the spread sheet" << endl; + vector aSingleRow; + for (auto cell : row) + { + clog << "Adding this cell to the row" << endl; + aSingleRow.push_back(cell.to_string()); + } + clog << "Adding this entire row to the vector which stores the whole spread sheet" << endl; + theWholeSpreadSheet.push_back(aSingleRow); + } + clog << "Processing complete" << endl; + clog << "Reading the vector and printing output to the screen" << endl; + 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