Hello, everyone. I need help with a C++ assignment.
Topics:
Introduction to classes (continued)
Overloading function names
Abstract data types
Friend functions
Overloading operators
(Each function except main should have a function header similarto this
example:)
/* ******************** getSize ********************
asks user for size
size is saved in calling function via reference parameter
*/
The assignment requires me to change a previous code Iwrote for a previous assignment. Here is that code:
“
#include <iostream>
#include <cctype>
#include <string.h>
#include <sstream>
using namespace std;
//Define a class named Car
class Car
{
public:
char reportingMark[5];
int carNumber;
string kind;
bool loaded;
string destination;
};
void input(Car *T);
void output(Car *T);
int main ()
{
Car *T = new Car;
input(T);
output(T);
delete T;
return 0;
}
/*
******************** inputFunction ********************
*/
void input(Car *T)
{
string str, s;
cout << ” Enter the reporting mark as
PayPal Gateway not configured
PayPal Gateway not configured