Skip to content

Instantly share code, notes, and snippets.

@KoaxialKable
Created September 23, 2013 19:12
Show Gist options
  • Save KoaxialKable/6675393 to your computer and use it in GitHub Desktop.
Save KoaxialKable/6675393 to your computer and use it in GitHub Desktop.
//I could use this (how my teacher chose to do it)
cout << " ";
if (myTurn) cout << "***"; else cout << " ";
cout << " ";
if (!myTurn( cout << "***"; else cout << " ";
cout << endl;
//or I could do this (my first thought)
if( myTurn)
cout << " *** \n";
else
cout << " ***\n";
//one uses two if statements and one uses two. is tehre really a difference?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment