From 99de54cdf5565ffd78f33d054540ca034d623a1b Mon Sep 17 00:00:00 2001 From: Kai Philipp Date: Sat, 25 Jan 2020 17:16:09 +0100 Subject: [PATCH] string output optimized --- src/dealer_random_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dealer_random_test.cpp b/src/dealer_random_test.cpp index b8845b90..1a961dbe 100644 --- a/src/dealer_random_test.cpp +++ b/src/dealer_random_test.cpp @@ -99,7 +99,8 @@ main(int argc, char *argv[]) ostringstream oss(""); for (int temp = 0; temp < NumCards; temp++) - cout << cardsArray[temp] << ","; + if(temp > 0) cout << "," + cout << cardsArray[temp]; cout << endl; }