A computer virus is a program that infects files and/or other programs. Usually designed to spread thru removable drives, emails or networks.
It can cause anything from data destruction to simple pranks/messages. Its payload can be released during execution of infected file or on a predefined schedule.
Anti-Virus programs are highly recommended to provide constant virus protection to your PC.