Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

I keep getting the error'string' does not name a type; did you mean 'stdin' for thisproblem... Please someone give me an actual answer and not

imageI keep getting the error'string' does not name a type; did you mean 'stdin' for thisproblem... Please someone give me an actual answer and not just thecopy of the wrong answer that everyone keeps posting. This is forC++

Instructions Write a full class definition for a class named ContestResult, and containing the following members: A data member winner of type string, initialized to the empty string. A data member secondPlace of type string, initialized to the empty string. A data member third Place of type string, initialized to the empty string. A member function called setWinner that has one parameter, whose value it assigns to the data member winner. A member function called setSecondPlace that has one parameter, whose value it assigns to the data member secondPlace. A member function called setThird Place that has one parameter, whose value it assigns to the data member thirdPlace. A member function called getWinner that has no parameters and that returns the value of the data member winner. A member function called getSecondPlace that has no parameters and that returns the value of the data member secondPlace. A member function called getThird Place that has no parameters and that returns the value of the data member third Place.

Step by Step Solution

3.46 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students explore these related Programming questions

Question

What is the least squares estimator of ?????

Answered: 3 weeks ago