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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
#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.