rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

Think about it. ++a can't be added to something else until the ++ step is completed. So to finish this math my bet is the compiler completed the increments first to varible a and since it's only a pointer to a, a gets incremented twice before the final a + a is computed.

The compiler has to serialize the operations to something like:
a++;a++; d = a + a;
Which is 14.

Now you could get other answers by writing:
d = a++; d+=a++;
d = 2 * a++;

rproffitt 2,701 https://5calls.org Moderator

Why not start smaller? That is, try tic tac toe first.

Java Reversi/Othello has already been written such as
https://github.com/luugiathuy/ReversiGame which means you are creating a wheel of sorts.

rproffitt 2,701 https://5calls.org Moderator

I see this error on incorrectly installed compilers. http://forums.codeblocks.org/index.php?topic=7208.0 seems to note prior folk's consternations with Codeblocks and such.

rproffitt 2,701 https://5calls.org Moderator

And let's mention NINITE. LibreOffice is on the list there.

Here's why I use Ninite:
http://www.howtogeek.com/201354/ninite-is-the-only-safe-place-to-get-windows-freeware/

Free apps, without the cramware.
Bob

rproffitt 2,701 https://5calls.org Moderator

First thought. The old CRLF discussion.
http://stackoverflow.com/questions/1761051/difference-between-n-and-r

I can't tell how you created the text file or on what OS.
HTH.

rproffitt 2,701 https://5calls.org Moderator

Just in case you don't find an answer, try
https://www.google.com/search?hl=en&as_q=press+keyboard+button+using+python

The prior discussions cover the issues about why this is, and why it won't be too portable to other than the OS you are on.
Bob