string output optimized
This commit is contained in:
1 parent
d2849449ce
commit
99de54cdf5
1 file changed
+2
-1
@@ -99,7 +99,8 @@ main(int argc, char *argv[])
|
|||||||
|
|
||||||
ostringstream oss("");
|
ostringstream oss("");
|
||||||
for (int temp = 0; temp < NumCards; temp++)
|
for (int temp = 0; temp < NumCards; temp++)
|
||||||
cout << cardsArray[temp] << ",";
|
if(temp > 0) cout << ","
|
||||||
|
cout << cardsArray[temp];
|
||||||
cout << endl;
|
cout << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user