Question: using c++ im having trouble having my cout out statment print when i call it to my cpp file fix the following code so that

using c++ im having trouble having my cout out statment print when i call it to my cpp file fix the following code so that when i do .....must be this way have 1 header and 1 cppfile ....i would like it explained too.

1)calling the header file

2)then call that fuction it prints out hi

this is my header file below

#ifndef HEADER_H #define HEADER_H using namespace std; #include #include #include #include #include class deckQueue { string printdeck() {}; }; string deckQueue::printdeck() { cout << "hi" << endl; }

the following below is my cpp file

#include "pch.h" #include "Header.h" #include using namespace std;

#include #include int main() { deckQueue q; q.printdeck; //deckQueue * myX = new deckQueue; //myX->printdeck(); }

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!