string output optimized

This commit is contained in:
Kai Philipp committed 2020-01-25 17:16:09 +01:00
1 parent d2849449ce
commit 99de54cdf5
1 file changed
+2 -1
+2 -1
View File
@@ -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;
}