This is supposed to be a very simple program but for some reason I cannot get the pow function to work. I keep on coming up with an error that states
"could not find a match for pow(float), am I missing something? Thanks.
Code:// Basic C++ info #include <iostream> #include <string> #include <math.h> using namespace std; // Declare Global Variables float fltNumbac, fltBacpresent, fltDays; // Modules void MainMenu(); void BacteriaLoop(); int main() { MainMenu(); cout << "Day Number of Bacteria Present" << endl; BacteriaLoop(); return 0; } void MainMenu() { cout << " Welcome to the WilliamK99 Bacteria Calculator!" << endl; cout << " How Many Bacteria are Present at the Start of the Experiment?"; cin >> fltBacpresent; return; } void BacteriaLoop() { while (fltDays <=10) { fltNumbac = fltBacpresent * pow(fltDays / 10); cout << fltDays << " " << fltNumbac << endl; fltDays++; } return; }