Timeline for Non-AI Tic-Tac-Toe program
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:40 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Mar 25, 2015 at 11:16 | comment | added | Edward |
@JaDogg: You only need "\n" even on Windows if you open the file in text mode. The only time you need to flush the stream is when it it's required that everything is actually printed before the next step can proceed. For example, printing things in a debugging log might use std::endl to make sure a program crash doesn't cause some of the log not to be printed. Another example is a prompt for a question that a human answers.
|
|
Mar 25, 2015 at 3:51 | comment | added | JaDogg |
Is there any references to spurious use of std::endl is bad ? I would like to know when I should avoid it and when to use it (when do I really need to flush it ?). Also do I need to use "\r\n" on windows ? or just "\n" is sufficient. ? Thanks.
|
|
May 29, 2014 at 17:37 | history | edited | Edward | CC BY-SA 3.0 |
added class declaration
|
May 29, 2014 at 14:11 | comment | added | Edward |
I'd define std::string hbar once at startup time to contain the horizontal bar, and then print the grid perhaps with nested for loops for rows and columns.
|
|
May 29, 2014 at 14:06 | comment | added | leansie | Sorry for the input of slotChoice. Yeah, I should have make better use of the #define or implement more flexibility as well, maybe like GRID_SIZE/NUMBER_OF_ROWS? | |
May 29, 2014 at 13:39 | history | answered | Edward | CC BY-SA 3.0 |