In C++, is there a way to check individual digits in the tick count? I want to use the tick count to generate semi-random simple arithmetic problems with the following form: x (+, -, *) y = z. I would use tenths of seconds (hundreds of ticks) to determine x, hundredths of seconds (tens of ticks) to determine the operation, and milliseconds to determine y. The user inputs z.
If not, is there another way to do this?
None.

SDE, BWAPI owner, hacker.
int count = GetTickCount();
int x = count \ 100;
int op = count \ 10;
int y = count;
But you want the single digits(in decimal) in those placess, right?
int count = GetTickCount();
int x = (count \ 100) % 1000;
int op = (count \ 10) % 100;
int y = count % 10;
Well, the problem with that way is that (correct me if I'm wrong), GetTickCount tracks the number of milliseconds since the CPU was turned on, so just dividing the tick count can give huge results that I don't really want if I've left my computer on. I could just check each number to see if it's greater than 10, 100, 1000, etc. and divide accordingly, but I'd rather not do that if there's a simpler way.
None.