I keep getting the error'string' does not name a type; did you mean 'stdin' for thisproblem... Please
Fantastic news! We've Found the answer you've been seeking!
Question:
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 just thecopy of the wrong answer that everyone keeps posting. This is forC++
Transcribed Image Text:
✓ 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. ✓ 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.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
I keep getting the wrong answer for this question, as I think it is 2.06 but that must be wrong. X picture Click here for the Excel Data Set A. Use the standard error to construct a prediction...
-
Give an example in which a Type I error may be more serious than a Type II error.
-
Give an example of each type of error listed inExhibit. Narresponse error Acquiescance bias Respondent Handem samp ing Extremity bias error Deliberate alsification Total eror Response Interviewer...
-
In the expression 2 4 , the number 2 is called the______and 4 is called the_______.
-
The continuously compounded interest rate is 12%. a. You invest $1,000 at this rate. What is the investment worth after five years? b. What is the PV of $5 million to be received in eight years? c....
-
A cognitive psychologist at a state university noted whether her research participants had been raised in a non-Englishspeaking household (0), an English onlyspeaking household (1), or a...
-
Vision Equipment reported the following items on February 28, 2010 (amounts in thousands, with last years amounts also given as needed): Accounts Payable.. $ 449 Accounts Receivable, Net: Cash. 215...
-
Journalize the entries to record the following selected bond investment transactions for Starks Products: a. Purchased for cash $120,000 of Iceline, Inc. 5% bonds at 100 plus accrued interest of...
-
Transaction Deposits or checking account; transaction account; Savings Deposits or savings account; Time deposits;Money Market Deposit Accounts For each service, describe whether it reflects an asset...
-
Macarrys Bicycle Company makes and sells high-quality bicycles, primarily to larger North American bicycle retail outlets and to some wholesalers for smaller retail shops. They have several models,...
-
Byefelicia transfers property (fair market value of $30,200; adjusted basis of $21,000) to a new corporation for all of its common stock (worth $16,000) and $10,000 of cash. The corporation also...
-
Avondales industries training programs all include various types of evaluation that are administered at different times. Why should the training and development office go to the added effort of...
-
Describe briefly, the objective of stratification and provide a few examples of stratification applied to healthcare measures.?
-
How is time management as a behavioral change related to behavioralist and social theory? How can one change this behavior?
-
Which form of electronic communication is associated with employer concerns regarding potential threats to organizational reputation and exposure to liabilities?
-
What can be done after observing a disciplinary conference and assist the principal in seeking solutions to the problem.
-
7. You are your future self, working on your project next week which has a button that enables/disables a rotating light sequence. The sequence begins with all LEDs off then has LEDO turn on, then...
-
Determine the resultant moment produced by the forces about point O. 0.25 m 0.125 m, 0 0.3 m- 60 F = 500 N F = 600 N
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
On February 2, 2012, Alexandra purchases a personal computer for her home. The computer cost $3,000. Alexandra uses the computer 80 percent of the time in her accounting business, 10 percent of the...
-
If Charles, a 16-year-old child model, earns $50,000 a year and is completely self supporting even though he lives with his parents, can his parents claim him as a dependent? Why or why not?...
-
A pair of \(20^{\circ}\) full involute spur gears having 40 and 60 teeth of module \(4 \mathrm{~mm}\) are in mesh. The smaller gear rotates at \(1440 \mathrm{rpm}\). Find (a) sliding velocity at...
-
Calculate the minimum number of teeth on a pinion to avoid interference to have a speed ratio of 2.5:1. The pressure angle is \(20^{\circ}\) and addendum of one module of gear may be used.
-
The path of contact in involute gears is (a) a straight line (b) involute path (c) curved path (d) circle.
Study smarter with the SolutionInn App