Sunday, December 13, 2015

Slow Motion print using C Program

Program #28

Description:
Slow motion print using C Program.  Default (column,row) set as (35,12).

/*
 Please wait ... Message print
 using C Program
*/
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>

void main(){

  /* function prototype declaration */
  void initialMessage();

  /* Clear the Screen */
  clrscr();

  /* Print Initial Message to the User */
  initialMessage();

  getch();
}

/* Print Message */
void initialMessage(){

  char *plsMessage = "Please wait ...";

  int i, columnPos=35;
  for(i=0; i<strlen(plsMessage); i++){
    gotoxy(columnPos++,12);
    printf("%c",plsMessage[i]);
    delay(50);
  }
}





 

No comments:

Post a Comment

Popular Posts