Hey guys, i've been working on this program for a while now and i have a few errors i need help on. It may just be because i've been looking at it over and over again. But if anyone can give me any answer on how to make it work, please help! Thanks!
My Code Is:
#include <iostream>
#include <string>
#include <vector>
#include <time.h>
using namespace std;
double cellDivide(int maxGeneration, double numberofCells);
int getnumberofDividedCells(int generation);
bool cancer = false;
int main()
{
int generations;
srand(static_cast<unsigned int> (time(0)));
cout << "Enter the number of generations: ";
cin >> generations;
double numberofCells = 1;
Please put code into code tags so that we are able to read it, click edit and click the things that look like this <> and put the code in there.
However looking at it, I see an error. Look at your prototype, getnumberofDividedCells and now look at your definition name. They are different, change that as it is an error, not only that but you added a semicolon at the beginning of the function.
Another thing is you never even defined cellDivide(int maxGeneration, double numberofCells) anywhere in your code, yet you are calling it in main, the 6th statement in there.
Okay I see two more errors, first of all you are trying to use pow on line 22 yet you never included <cmath>. So please include that.
Another one is on line 27, I believe you were trying to check for equality rather than assign a value. If so change too double == because right now that isn't a condition.