(if this isn't an apropriate place to post this I appologise)
Ok here's the thing.
I'm one of those extreamly dorky kids who didn't have any computer related class in public school but learnt a few programming languages anyway.
So now that I'm finally in university (csci) first year has been a breeze.
Anyway, enough stupid background info.
I'm making a program that creates a silly little ascii graphic, but it's supposed to be animated and change (using clrscr() in the non-standard conio.h)
Here's my problem though. I want there to be a short delay in between each update of the picture. (so it doesn't flicker as an unconprehensibale speed)
What I'm looking for is a function something like
Code:
void wait(int time);
where time is the amout of time you want the program to wait untill it executes the next statement.
So far I'm just lagging the program with a horrible, horrible recursive function. It works rather well but it's an awful hack.
Any suggestions would please me to no end.
ps. please forgive the large amount of personal pronouns!