### Help with function

I keep getting an error that says
hospital_JamesWah.cpp:4: error: expected initializer before "void"

 ``12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364`` `````` #include using namespace std; void Instructions() void Days() void MedCharge() void SurCharge() void LabFees() float ComputeRoomCharge(int, int) float ComputeMiscell(float,float,float) float ComputeTotalCharge(int,int,float,float,float) void Result() int main() { int a=450,RoomCharge; float Miscellaneous,TotalCharge; //Function Calls Instructions(); Days(); MedCharge(); SurCharge(); LabFees(); //Prompt and read the medication charges void MedCharge() { float Medcharge; cout<<"Enter the medication charges:"<< endl; cin>>Medcharge; } //Prompt and read the surgical charges void SurCharge() { float SurCharge; cout<<"Enter the surgical charges:"<< endl; cin>>SurCharge; } //Prompt and read the lab fees void LabFees() { float LabFees; cout<<"Enter the lab fees:"<> LabFees; } //Calculate the room charge float ComputeRoomCharge(int a,int b) { int Result; Result=a*b; return Result; } //Calculate the Miscellaneous charge float ComputeMiscellCharge(float A,float B,float C) { float Result1; Result1= A+B+C; return Result1; } //Calculate the total Charge float ComputeTotalCharge(int a,int b,float c,float d,float e) { float Result2; Result2= a*b+c+d+e; return Result2; } ``````
Remember to add semicolons after all statements and declarations! Also, remember to close all braces (Specifically the one for the main function)
Last edited on
Topic archived. No new replies allowed.