The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
could you help with my code what's going on, why I can't run it?
Â
////main.cpp//AssignmentC1////Created by JIAYUN Xu on 10/29/16.//Copyright © 2016 JIAYUN Xu. All rights reserved.//#include <iostream>#include <string>#include <cstdlib>using namespace std;class Car{private:string reportingMark;int carNumber;string kind;bool loaded;string destination;public://mutator functionsvoid setUp(string rtMark,int carNum, string k, bool ifloaded, string dest);void output ();Car();Car (const Car &obj);Car (string rMk, int cN, string k, bool ifload, string d);~Car();};Car:: Car(){reportingMark = " ";carNumber = 0;kind = "other";loaded = "false";destination = "NONE";}Car::Car(const Car &obj){reportingMark = obj.reportingMark;carNumber = obj.carNumber;kind = obj.kind;loaded = obj.loaded;destination = obj.destination;}Car:: Car(string rMk, int cN, string k, bool ifload, string d){setUp(rMk,cN,k, ifload, d);}void input (string &reportingMark, int &carNumber, string &kind, bool &loaded,string &destination);
-----------