I have written a program in which there is a board and the balls should travel from one place to another.i need to provide a delay when i draw the ball in new position and erase it from previous position.I used delay() funtion on turbo c++.but on gcc compiler on linux i dont know how to provide delay.I used usleep() function but i cant see the successive movement of balls.what should i do?.please help..how do i write a delay loop
harry pottervs 0 Newbie Poster
cikara21 37 Posting Whiz
Prabakar 77 Posting Whiz
Salem 5,199 Posting Sage
harry pottervs 0 Newbie Poster
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.