Question: The two header files a.h and b.h both have a prototype for a single function. Both have at least two mistakes. Fix the mistakes so

The two header files a.h and b.h both have a prototype for a single function. Both have at least two mistakes. Fix the mistakes so that the tester program works correctly.

Complete the following files:

a.h

#include #include "b.h"

/** Converts a character into the corresponding string form. For example, calling charToString('Q') returns the string "Q". @param c the character to convert. @return the string form of the character. */ string charToString(char c);

b.h

#include #include "a.h" /** Returns a string version of the bool argument. @param b the Boolean value to convert @return "true" or "false" */ string boolToString(bool b);

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!