Im getting two errors on my program, Im new to C++ programming and wondering if anyone could help
error C2065: 'Ssales' : undeclared identifier
fatal error C1903: unable to recover from previous error(s); stopping compilation
I believe the 2nd error is due to the first, but i could be wrong.
Im trying to make my program do the SalesDayLoop function when the customer responds yes, but its says it undeclared but it is declared im lost any help thanks guys
//Calculated Data
float Farea; // = wall 1 + wall 2
float Fwall1; // Length * Height *2
float Fwall2; // Width * Height *2
float Fareagallon; // Amount of area a gallon will cover
float Fgallons; // Total Number of gallons it will take to paint
float Ftotalprice; //Final Cost
float Fcostper; //Cost per gallon of paint
/*-----------------------------------------------------------------------------------------------------
Name: Sales Day
Desc: Asks User if It is a Sales Day
Return: Void
Parameters: Void
---------------------------------------------------------------------------------------------------*/
void SalesDay (void)
{
Dashes();
cout<<setw(56)<<"Welcome to the Acme Paint Shop ";
cout << endl;
Dashes();
cout << endl;
cout <<"Is today a sales day (Y/N)?";
cin >> sSales;
system("cls");
return;
}
/*-----------------------------------------------------------------------------------------------------
Name: GetName
Desc: Gets Name
Return: Void
Parameters: Void
---------------------------------------------------------------------------------------------------*/
void GetName (void)
{
DisplayHeader();
cout << endl;
cout<<"Enter the customer's first and last name?";
cin.getline(sCname, 25);
return;
}
/*-----------------------------------------------------------------------------------------------------
Name: GetRoomDimensions
Desc: Gets Room Dimensions
Return: Void
Parameters: Void
---------------------------------------------------------------------------------------------------*/
void GetRoomDimensions(void)
{
cout<<"What is the length of the room in feet?";
cin>> Flength ;
cout<<"What is the width of the room in feet?";
cin>>Fwidth;
cout<<"What is the height of the room in feet?";
cin>>Fheight;
cout <<"What is the area covered by a gallon of paint?";
cin>>Fareagallon;
cout <<"What is the cost of paint per gallon?";
cin >> Fcostper;
return;
}
/*---------------------------------------------------------------------------------------------------------
Name:PerformCalc
Desc:Calculate Area
Return: Void
Parameters:Void
----------------------------------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------------------
Name:SalesDayLoop
Desc:If it is a sales day it runs a sepearte function
Return:Void
Parameter: Void
Am i missing an opening or a closing bracket somewhere ?
You are missing a / in the closing [code] (it should be [/code]!).
More computing sins are committed in the name of efficiency (without necessarily achieving it) than for any other single reason - including blind stupidity. --W.A.Wulf
Premature optimization is the root of all evil --Donald E. Knuth
Bookmarks