Bunu zaten var olan Header.h dosyasının içini sil yapıştır.
#pragma once
#include<iostream>
using namespace std;
class Virus
{
//overload << operators as a friend
friend ostream &operator<<(ostream& o,Virus& v);
private:
float size; //default = 1 mm
float growthRate; //random between 0-1
float resistance; // resistance = size * growthrate
public:
Virus();
float getsize();
float getres();
float getgrowth();
void setgrate(float);
void setsize(float);
Virus(float size,float grate);
Virus* diffuse(int);
//if size of virus < 5 print message which says : "Virus can not diffuse " and return NULL
//Otherwise create same size viruses and return them as an array of viruses
};

Üyelik tarihi
04 Nisan 2016
Yaş
32
Mesajlar
10
Seslenildi
1 Mesaj
Etiketlendi
0 Konu
Cevap: c++ Soru-Cevap
04 Nisan 2016
- Paylaş
- Share this post on
Digg
Del.icio.us
Technorati
Twitter