Question: Programming Language C++ I'm not understanding how do to this part B. Include 4 constants of type int in the header file that define Bonk,
Programming Language C++
I'm not understanding how do to this part
B. Include 4 constants of type int in the header file that define Bonk, Question, Information and Wink so that main() can reference them in the call to MessageBox().
C. Create, initialize and use an array that holds the four emphasis characters, !, ?, i, and ; that align with the constants in Step B and the integer passed into the MessageBox() function.
Output show display this

Code from Class.Cpp File
#include "stdafx.h" #include "MessageClass.h"
MessageClass::MessageClass() { }
MessageClass::~MessageClass() { }
void MessageClass::MessageBox(string, int, string) { }
Code From Class Header File
#include #include using namespace std;
#pragma once class MessageClass { public: MessageClass(); ~MessageClass();
void MessageBox(string, int, string);
private:
const int Bonk; const int Question; const int Information; const int Wink;
};
code from main function
int _tmain(int argc, _TCHAR* argv[]) {
MessageClass msg;
msg.MessageBox("Welcome to Class", msg.Bonk, "Hello");
cout
msg.MessageBox("Why did the chicken cross the road", msg.Question, "Why");
cout
msg.MessageBox("To get to the other side", msg.Information, "Because");
cout
msg.MessageBox("That is all", msg.Wink, "Thank you");
cout ?? IJhy ??????????????????????????????? ? Why did the chicken cross the ro ad ? ii Because 13111111111111111 i To get to the ther side 1 1 11111111111111111111 111111 Thank you ;; That is all ; ress any ke y to continue ?d? ?a? o ? e? ?t? s? s? c? e? I-, y ?t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
