aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd/factor.cpp
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-23 09:46:53 +0200
committerSimon Warta <[email protected]>2015-06-23 09:46:53 +0200
commit629ae37ebe273332d4b086661b06d8717dfdb937 (patch)
treeadb000640e1de3b4b7ad01bfa050fa38b798acd5 /src/cmd/factor.cpp
parent43e3c4555c9f2535f18741f3e252b3c93cbbaeca (diff)
Replace \n by std::endl in /src/cmd
to ensure proper flusing
Diffstat (limited to 'src/cmd/factor.cpp')
-rw-r--r--src/cmd/factor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/factor.cpp b/src/cmd/factor.cpp
index 4cba01d95..e4e20f5b7 100644
--- a/src/cmd/factor.cpp
+++ b/src/cmd/factor.cpp
@@ -124,7 +124,7 @@ int factor(int argc, char* argv[])
{
if(argc != 2)
{
- std::cout << "Usage: " << argv[0] << " <integer>\n";
+ std::cout << "Usage: " << argv[0] << " <integer>" << std::endl;
return 1;
}
@@ -141,7 +141,7 @@ int factor(int argc, char* argv[])
std::copy(factors.begin(),
factors.end(),
std::ostream_iterator<BigInt>(std::cout, " "));
- std::cout << "\n";
+ std::cout << std::endl;
}
catch(std::exception& e)
{