How to make a virus program in C++?
This program will work as a virus. This program will execute the loop again and again for unlimited time and it never stop.
#include<iostream> using namespace std; int main() { char character='A'; do { cout<<character<<" "; character++; } while(2==2); cout<<endl; return 0; }
How to stop this virus?
You can open task manager of windows and end the process that is running for this program.