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.
Latest posts by Prof. Fazal Rehman Shamil (see all)
- List of Public service commissions - August 31, 2020
- Comparison of fee structure of Pakistani Universities - June 1, 2020
- Past Guess Paper of Auditing - May 12, 2020