Question: please watch the problem carefully, there is only little bit difference Examine main.cpp to see how the function is used, then write the correct prototype.

please watch the problem carefully, there is only little bit differenceplease watch the problem carefully, there is only little bit difference Examinemain.cpp to see how the function is used, then write the correctprototype. Complete the following file: df.h #ifndef DF H #define DE H1 2 3 4 5 6 7 8 // Write your prototypehere #include char cap(std::string &s); #endif Use the following file: main.cpp #include"df.h" #include #include using namespace std; int main() { string si cin

Examine main.cpp to see how the function is used, then write the correct prototype. Complete the following file: df.h #ifndef DF H #define DE H 1 2 3 4 5 6 7 8 // Write your prototype here #include char cap(std::string &s); #endif Use the following file: main.cpp #include "df.h" #include #include using namespace std; int main() { string si cin >> si // Print capitalized version of s cout #include using namespace std; int main() { string s; cap(cin, s); // read into si convert to caps cout bool getInt(std::string msg, int &n); 7 8 #endif the following the main.cpp #include "df.h" #include using namespace std; int main() { int n; 3 if (getInt("Enter your age: n)) cout "

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!