virus coding using c++ enjoy with it :)
#include<iostream.h>
#include<conio.h>
class virus
{
float a, b;
public:
virus()
{
a=0;
b=0;
}
virus(int x)
{
a=x;
b=0;
}
virus(int x, int y)
{
a=x;
b=y;
}
~virus()
{
cout<<”your pc is in dangerous state.”;
}
void get()
{
cout<<”\nvirus = “<<a;
cout<<”\nvirus = “<<b;
}
};
void main()
{
clrscr();
virus v(5,10);
v.get();
getch();
}
Now save this program in turbo c by using .cpp extension and after this you can run this program.
0 comments: