cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
x and o symbol generation
x and o symbol generation
Mar 5, 2013 at 10:51pm UTC
kika19932
(2)
I have program. I need programing one game.
char girl;
char computer;
cout << "Girl choose one of symbol x or o";
so girl choose x.
problem : i need random symbol genetation. so if random symbol are x, than girl start play. if random symbol ar o, than computer start game. who to do this?
Mar 5, 2013 at 11:43pm UTC
MrHutch
(1822)
Why do you need a random symbol for that?
Why can't you just use random numbers? Generate a random number of either 0 or 1. If 0, girl starts game, if 1, computer starts game.
Topic archived. No new replies allowed.