Question: Main program Output Create a C++ structure called a Chyron that can store up to and including 100 characters as a C string (a char

Create a C++ structure called a "Chyron" that can store up to

and including 100 characters as a C string (a char array) and

whose definition is prototyped exactly as: struct Chyron { private: }; char

s[101]; int index; public: Chyron(); Chyron (const char *, int); int setIndex

(int); int setString(const char *); int addToChyron (const char *); const char*

getString(); // PRIVATE member data // PUBLIC member functions // default constructor

Main program

// parameter constructor A Chyron can be created/instantiated (when a variable is

declared in main() or some other function), in one of 2 ways:

Output

PART 1: Without accepting ANY parameters, a Chyron object would store the

string: "Whom the Gods would destroy they first make mad!" and set

its index to 0 to indicate where to begin displaying the string.


 

Create a C++ structure called a "Chyron" that can store up to and including 100 characters as a C string (a char array) and whose definition is prototyped exactly as: struct Chyron { private: }; char s[101]; int index; public: Chyron(); Chyron (const char *, int); int setIndex (int); int setString(const char *); int addToChyron (const char *); const char* getString(); // PRIVATE member data // PUBLIC member functions // default constructor // parameter constructor A Chyron can be created/instantiated (when a variable is declared in main() or some other function), in one of 2 ways: PART 1: Without accepting ANY parameters, a Chyron object would store the string: "Whom the Gods would destroy they first make mad!" and set its index to 0 to indicate where to begin displaying the string. This is the default constructor.

Step by Step Solution

3.41 Rating (164 Votes )

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 Programming Questions!