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 prototypefor a single function. Both have at least two mistakes. Fix the

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 1 #include 2 #include "a.h" 3 /** 5 Converts a character into the corresponding string form. 6 For example, calling charToString('Q') returns the string "Q". 7 @param c the character to convert. 8 @return the string form of the character. 9 */ 10 string charToString(char c); amino000 b.h 1 #include 2 #include "b.h" 3 /** 4 Returns a string version of the bool argument. 5 @param b the Boolean value to convert 6 @return "true" or "false" 7 */ 8 string boolToString(bool b); 9 Testers Running Tester.cpp Error: In file included from /tmp/codecheck. 01 ZpB5z86J/a. h:2:0, from /tmp/codecheck. 01ZpB5z86J/a. h:2, from /tmp/codecheck. 01 ZpB5z86J/a. h:2, from /tmp/codecheck. 01ZpB5z86J/a, h:2, from /tmp/codecheck. 01ZpB5 286J/a.h:2, from /tmp/codecheck. 01ZpB5z86J/a. h:2, a.h 1 #include 2 #include "a.h" 3 4 /** 5 Converts a character into the corresponding string form. 6 For example, calling charToString('0') returns the string "Q". 7 @param c the character to convert. 8 @return the string form of the character. 10 string charToString(charc) 11 { 12 return string(1, c); 13} 14 b.h 4 1 #include 2 #include "b.h" 3 /** Returns a string version of the bool argument. 5 @param b the Boolean value to convert 6 @return "true" or "false" 7 */ 8 string boolToString(bool b) 9 { 10 if (b) 11 return "true"; 12 return "false"; 13} 14 15 Testers Running Tester.cpp Error: In file included from /tmp/codecheck. y 2ombAVAr/a. h:2:0, from /tmp/codecheck. ys2om6AVAr/a. h:2, from /tmp/codecheck. y 2om6AVAr/a. h:2, from /tmp/codecheck. yS2ombAvar/a.h:2

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!