From 1f8e2b13ea86321148614b21741fd34cea8032c9 Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Mon, 16 Jul 2012 13:48:07 -0400 Subject: fixed some formatting errors with cpplint.py --- fly-tools/std-deviation/StandardDeviation.cpp | 29 ++++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'fly-tools') diff --git a/fly-tools/std-deviation/StandardDeviation.cpp b/fly-tools/std-deviation/StandardDeviation.cpp index 42004d3..1d29d91 100644 --- a/fly-tools/std-deviation/StandardDeviation.cpp +++ b/fly-tools/std-deviation/StandardDeviation.cpp @@ -1,16 +1,18 @@ -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include + using namespace std; vector currentHistogramValues; int main(int argc, char* argv[]) { - int c; + int c; string usage = "standard-deviation -l -i -o -t "; string inputFileListName; string inputPath; @@ -20,8 +22,7 @@ int main(int argc, char* argv[]) { string currentFileName; while ((c = getopt (argc, argv, "i:o:l:t:h")) != -1) - switch (c) - { + switch (c) { case 'l': inputFileListName = optarg; break; @@ -42,7 +43,7 @@ int main(int argc, char* argv[]) { break; } - if( (inputFileListName.empty()) || (inputPath.empty()) || (distributionType.empty()) || (outputFileName.empty()) ) { + if ( inputFileListName.empty() || inputPath.empty() || distributionType.empty() || outputFileName.empty() ) { cerr << usage << endl; exit(1); } @@ -57,9 +58,9 @@ int main(int argc, char* argv[]) { exit(0); } - outputFile<>currentFileName) { + while( inputFileNames >> currentFileName ) { string currentFileWithExtension = prefixPath + currentFileName + "/" + currentFileName + "_"+ metricName +".txt"; cout<<"File: "<