From 7d6badca011fe4f8b84764b3399e1fd672175e9d Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Fri, 15 Jun 2018 10:20:45 -0700 Subject: [PATCH] Print informational messages to stderr --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 317341b..38fc25c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -88,7 +88,7 @@ void PrintDebugWarning() void PrintHeader() { - cout << "NOTE: Quick Cliques v2.0beta." << endl; + cerr << "NOTE: Quick Cliques v2.0beta." << endl; } string basename(string const &fileName) @@ -158,11 +158,11 @@ int main(int argc, char** argv) bool bOneBasedVertexIds(false); vector> adjacencyList; if (inputFile.find(".graph") != string::npos) { - if (!bTableMode) cout << "Detected .graph extension, reading METIS file format. " << endl << flush; + if (!bTableMode) cerr << "Detected .graph extension, reading METIS file format. " << endl << flush; adjacencyList = readInGraphAdjListEdgesPerLine(n, m, inputFile); bOneBasedVertexIds = true; } else { - if (!bTableMode) cout << "Reading .edges file format: one edge per line. " << endl << flush; + if (!bTableMode) cerr << "Reading .edges file format: one edge per line. " << endl << flush; adjacencyList = readInGraphAdjList(n, m, inputFile); }