Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void delay(unsigned int milliseconds){
- clock_t start = clock();
- while((clock() - start) * 1000 / CLOCKS_PER_SEC < milliseconds);
- }
- void text (int br, char sentence []){
- int c = 0;
- for (c = 0; c < br; c++){
- printf("%c", sentence[c]);
- fflush(stdout);
- delay (100);
- }
- }
- int main(){
- text (14,"Hello friends!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement