my compiler cant seem to find fstreams. Here is my code so far. it cant print yet.
Code:
#include <iostream>
char liftName;
int Max;
unsigned short 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";
}
int main()
{
int counter = 0;
while(counter < 10)
{
std::cout <<"This program was created by Aaron Quamme\n for 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;
}
It compiles fine but liftName cant hold more than a one letter lift name and the program closes on me when liftingPlanner is called. I dont know whats wrong, like i said before i have been programming for less then a week so dont start flaming me because im to lazy to do my own debugging. I'd appriciate any help.