Answered step by step
Verified Expert Solution
Question
1 Approved Answer
C++ Question Q5: (20 pts) Suppose you have written a templated class named theClass, of which the class declaration is in theclass. h and the
C++ Question
Q5: (20 pts) Suppose you have written a templated class named theClass, of which the class declaration is in theclass. h and the member function implementations are in theclass.cpp. The program that uses theClass is written in main.cpp file. The header file, theclass. h, has been written with a proper header guard. Moreover, you added the theclass. h and main.cpp files to your VS project, but the file theclass.cpp is not added to the project. You will use the table below to denote which file will be included in which one for the above mentioned scenario: For each box: - put "B" if the file of the row will be included at the beginning of the file of the column; - put "E" if the file of the row will be included at the end of the file of the column; - put "N" if it is not needed to include the file of the row in the file of the column. a. (10 pts) We want the project to be run properly. Find two solutions for a correct execution and fill the blanks below: 1:1:2:2:3:3:4:4:5:5:6:6: b. (5 pts) Assume you only included theclass. h to the beginning of main.cpp and obtain the solution 1:N2:B3:N4:N5:N6:N In which part of the build process you will get an error? Explain why in 4-5 sentences at most. Answers without explanations will not get a partial credit. c. (5 pts) Assume that you also add theclass.cpp to the project. In which part of the build process you will get an error? Explain why in 4-5 sentences at most. Answers without explanations will not get a partial creditStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started