I just finished a simple slot machine program. It displays 3 random numbers from 0 - 9 next to each other. I'd like to "soup" it up. Is there some way I can make each of the the numbers spin and stop sequentially. thanks
mtodd51
0
Newbie Poster
Recommended Answers
Jump to PostI thinking of a number between 223 and 367 -- what is it?
[Translation -- do you think you could be a little more specific?]
Jump to PostAre you doing some sort of graphics stuff, or does this relate to the standard C or C++ languages?
Jump to PostA start for windows. Modify to your requirements.Further Reference
#include <iostream> #include <windows.h> int main() { DWORD dwWritten; HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); CONSOLE_SCREEN_BUFFER_INFO ConsoleScreenBufferInfo; GetConsoleScreenBufferInfo(hConsole, &ConsoleScreenBufferInfo); COORD coordCurrent = ConsoleScreenBufferInfo.dwCursorPosition; for ( int j = 0 ; j < 10 ; j++ ) { …
All 11 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
mtodd51
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
WolfPack
491
Posting Virtuoso
Team Colleague
mtodd51
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
mtodd51
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
mtodd51
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
WolfPack
491
Posting Virtuoso
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.