Sunday, 30 October 2016

Halloween Program in C

Halloween  program using C

This Halloween wish your friend in a new style.... 
Make  a C Program to wish your friend using a C program. 
Edit as you want...


Tutorial Video:

 

Code:  

#include <stdio.h>
#include <wchar.h>
#include <stdlib.h>
#include <locale.h>
int i,j;
void delay()
{

    for(i=0; i<1000; i++)
        for(j=0; j<3000; j++)
        {}
}
void delay1()
{
    for(i=0; i<100000; i++)
        for(j=0; j<3000; j++)
        {}
}
void change()
{
        system("COLOR C");
        delay1();
        system("COLOR F");
        delay1();
        system("COLOR E");
        delay1();
        system("COLOR 8");
        delay1();
}
int main(void)
{
    char *locale = setlocale(LC_ALL, "");
    FILE *in = fopen("Halloween.txt", "r");
    wint_t c;
    system("COLOR E");
    while ((c = fgetwc(in)) != WEOF)
        {   if(c!=' ')
            delay();

            putwchar(c);
        }
    fclose(in);
    while(1)
    {
        change();
    }
    getch();
}

 
OUTPUT :

Download Halloween.txt

Download the Full Project

 

 

1 comment: