Hello, i would like to know how would u do like if u wanted to say hello but i your program say it like this: H (pause a second) E (pause a second) L (pause a second) L (pause a second) O
for a dos program
would i go
Code:
#include<iostream>
#include<ctime>
int main()
{
float secs = 1;
clock_t delay = secs * CLOCKS_PER_SEC; //convert to clock tics
clock_t start = clock();
while(clock() - start < delay)
;
cout << "H";
float secs = 1;
clock_t delay = secs * CLOCKS_PER_SEC; //convert to clock tics
clock_t start = clock();
while(clock() - start < delay)
;
cout << "I";
return (0);
}
Thank you
(i use dev and visual)