Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Programming in C++ help Step 1. First, you need to create a class Student. Create student.cpp and student.h files. It should contain two variables, lastName

Programming in C++ help

image text in transcribed

Step 1. First, you need to create a class Student. Create student.cpp and student.h files. It should contain two variables, lastName (char [30]) and firstName (char [30]. Both should be private. In addition, the following functions should be defined. All of them are public Method Student () Constructs a Student object by assigning the default string"??? " to both instance variables, lastName and firstName. Student (char* studentInfo) Use the strtok function to extract first name and last name, then Constructs a Student object using the string containing student's info. assign them to each instance variable of the Student class. An example of the input string is: David/Johnson char* getFirstName )| It should return the instance variable firstName. char* toString ) It should constructor a string containing the initial character of the first name, a period, the initial character of the last name, and a period, then it returns it. An example of such string for the student David Johnson I. D-J

Step by Step Solution

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

Step: 3

blur-text-image

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

Pro SQL Server Wait Statistics

Authors: Enrico Van De Laar

1st Edition

1484211391, 9781484211397

More Books

Students also viewed these Databases questions