string output optimized
This commit is contained in:
@@ -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