show’s job is to output a line that looks something like
Joe 3.8
(I don’t care how many digits are displayed after the decimal point. You may assume that the name consists only of a single word.)
input’s job is to input a name and gpa, and put them in the fields of the Student. No prompt required.
For instance, if the user types
Joe 3.8
then the input function will set the arg struct to hold Joe and 3.8.
If the user types
Joe blah
then the input function will C&D.
show basically prints the name and gpa. Well then declare the method and use cout to print the student's name and gpa...literally should take you 2 mins to write out the body of both functions depending on how slow a typist you are
Well maybe next time you wont slack off then? This is a site to HELP not to give a FREE ride. You won't get anywhere in life by copying other peoples work. It's called plagiarism and being lazy.
I'm sure if you can make the declarations you can make the definitions fairly easy.
*edit
Seems like you do this often and take advantage of people.
@giblit, but sometimes copying can benefit you if you decide to learn from what you have copied. Then suddenly you have the knowledge and can reproduce a solution given a similar problem.
This does not cover the fact that the implementation OP needs is fairly basic one line code and does not need to depend on someone else to do it for him/her.
@Op did you try to google a solution to your problem? What have you attempted? What failed/worked half the time? Compiler warnings? Help us help you, join the good side. We have brownie squares