Question: 5. Write a C++ function that captures comments in C++ files and returns them as a vector of strings. For example, given the following input

 5. Write a C++ function that captures comments in C++ files

5. Write a C++ function that captures comments in C++ files and returns them as a vector of strings. For example, given the following input file #include /* need vector header +/ #include // main function int main() { /*** create a ** vector */ } The vector should contain the following 3 elements need vector header main function create a vector

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!