Course Solutions Uncategorized (Solved) : Main File Call Class Created Hpp File Comes Error Undefined Reference Const Want Solve Cha Q34565079 . . . .

(Solved) : Main File Call Class Created Hpp File Comes Error Undefined Reference Const Want Solve Cha Q34565079 . . . .

 

My main() file does not call to the class created in a .hppfile. It comes out with the error “undefined reference to “___”const.

I want to solve this by only changing the main() .cpp file, notthe .hpp file.

.cpp file

include <iostream> include <string> tinclude CourseMember.hpp using namespace std int main0 CourseMember CourseMember(90, Jeff, Goldblum): // initializing the constructor cout<< Member ID is <<CourseMember.getID) << endl; 1/ calling getID) accessor cout <<First Name is << CourseMember.getFirstName << endl; // calling getFirstName) accessor cout<< Last Name is <CourseMember.getLastName () << endl; // calling getLastName() accessor return 0;

.hpp file

#ifndef #define 

<div class=

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post