Hello. I know its useless, but I scared my friends with that fake virus ^^
So if u want, try it ^^
Here's how :
Create a console application .
First, integrate <iostream> for the cout
and integrate <windows.h> for the Sleep(); function
Code:
#include <iostream>
#include <windows.h>
after, integrate using namespace std to put text in your code faster
Code:
using namespace std;
Next, integrate the basic :
Code:
int main()
{
return 0;
}
I wrote Implantation of the virus to scare them.
Code:
cout << "VIRUS IMPLANTATION";
Then, here is everything else:
Code:
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(100);
}
cout << endl << endl << "DELETING : C:WindowsSystem32" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(500);
}
cout << endl << endl << "DELETING : C:WindowsComputer" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "DELETING : C:WindowsDocuments" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "DELETING : C:WindowsRAM" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "DELETING : C: WindowsLocal disc" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "System ..... Breaking ....... " << endl;
cout << "System closing.";
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(50);
}
Sleep(1000);
These part :
Code:
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
Will write dot every .400 second (Simulating the loading
Here is the full code :
Code:
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
cout << "VIRUS IMPLANTATION";
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(100);
}
cout << endl << endl << "DELETING : C:WindowsSystem32" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(500);
}
cout << endl << endl << "DELETING : C:WindowsComputer" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "DELETING : C:WindowsDocuments" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "DELETING : C:WindowsRAM" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "DELETING : C: WindowsLocal disc" << endl;
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(400);
}
cout << endl << endl << "System ..... Breaking ....... " << endl;
cout << "System closing.";
for (int i = 0; i < 10 ; i++)
{
cout << ". ";
Sleep(50);
}
Sleep(1000);
return 0;
}
Enjoy scaring your friendz
