char opponent = (player == 'W')? 'B' : 'W';
i cannot understand that above statement in c and what will be its simplest form? and what is above statement called in c ? c??




Posted 17 January 2013 - 10:39 PM
char opponent = (player == 'W')? 'B' : 'W';
Posted 17 January 2013 - 10:44 PM
Posted 17 January 2013 - 10:48 PM
Posted 17 January 2013 - 10:48 PM
Quote
Quote
char opponent; if(player == 'W') opponent = 'B'; else opponent = 'W';
Posted 17 January 2013 - 10:51 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
