Question: This is the question This is given also I want you to continue this part only, please. This is the todos. Write a C++ function

 This is the question This is given also I want you

This is the question

to continue this part only, please. This is the todos. Write a

This is given also

C++ function that captures comments in C++ files and returns them as

I want you to continue this part only, please. This is the todos.

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 1 2 3 4 #include #include #include #include #include "todo.h" 5 6 7 00 9 10 11 12 13 14 int main() { std::vector<:string todos std::ifstream file if std::istreambuf_iterator> itr(file); todos-to_do(itr, {}); file.close(); } else std::cerr 3 #include 4 #include 6 7 template 8 std::vector<:string to_do begin iter end return std::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!