Question: I would like make to result.h file, result.cpp file, and main.cpp to run a test on something (c++) under the .h and result.cpp I want

I would like make to result.h file, result.cpp file, and main.cpp to run a test on something (c++)

under the .h and result.cpp

I want to create a function result(5).

result(5) has five parameter. that accepts number between 1 and 5.

the problem is..

I don't know how to write the function with its parameter in .h file or result.cpp

under main.cpp.

I want to call the function result(5).

test to see if result(5) == 2. where 2 is within the range of 1 and 5. if not, ask user to try again.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!