O.K. guys I tried. I really did. But, I can't seem to find the bug in my program. My compiler gives me an error that says "Invalid conversion from "char" to "char" on line 36.
Code:
#include <iostream>
#include <fstream>
char liftName[50];
int Max;
int liftingPlanner (char liftName, int Max)
{
std::cout << "Lift: " <<liftName<<"\n";
std::cout << " Sets \n";
std::cout << "Day || 1 2 3 4 5\n";
std::cout << "| 1 || " <<Max*.6<< " "<<Max*.65<<" "<<Max*.7<<" "<<Max*.75<<" "<<Max*.7<<"\n";
std::cout << "| 2 || " <<Max*.65<< " "<<Max*.7<<" "<<Max*.75<<" "<<Max*.8<<" "<<Max*.75<<"\n";
std::cout << "| 3 || " <<Max*.7<< " "<<Max*.75<<" "<<Max*.8<<" "<<Max*.85<<" "<<Max*.8<<"\n";
std::cout << "| 4 || " <<Max*.75<< " "<<Max*.8<<" "<<Max*.85<<" "<<Max*.9<<" "<<Max*.85<<"\n";
std::cout << "| Max Day! || *Warm up before maxing* || Max Day!|\n";
return 0;
}
int main()
{
system ("COLOR 1F ");
int counter = 0;
while(counter < 10)
{
std::cout <<"This program was created by not telling you my real name ;) \nfor BHS in October of 2005\n";
system ("PAUSE");
std::cout <<"Enter the name of your first lift.\n";
std::cin >> liftName;
std::cout << "Enter your max:\n";
std::cin >> Max;
liftingPlanner (liftName, Max);
counter++;
return 0;
}
system ("PAUSE");
return 0;
}