Skip to content

Instantly share code, notes, and snippets.

/* CarData4.cpp
Dustin White
CIS 251
Spring 2014
Mr. Miller
*/
#include <cstdlib>
#include <iostream>
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
const int MAX=100; // user number will determine how much to output
class CarData //defining class "wrapper"
{
private:
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
const int MAX=100; // user number will determine how much to output
class CarData //defining class "wrapper"
{
private:
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
const int MAX=100; // user number will determine how much to output
class CarData //defining class "wrapper"
{
private:
#include <cstdlib>
#include <iostream>
#include <fstream>
using namespace std;
class CarData //defining class "wrapper"
{
private:
double year, mileage;
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
int stocknum[10], year[10], option;
bool swapped = true;
string make[10], model[10], tempstring;
int mileage[10], price[10];
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
int stocknum[10], year[10], option;
bool swapped = true;
string make[10], model[10], tempstring;
int mileage[10], price[10], tempdouble;
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
static const int MAX = 3;
int stocknum[MAX], year[MAX], option;
bool swapped = true;
string make[MAX], model[MAX], tempstring;
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
static const int MAX = 2;
int stocknum[MAX], year[MAX], ctr, option;
bool swapped = true;
string make[MAX], model[MAX], tempstring;
#include <cstdlib>
#include <iostream>
#include <string.h>
using namespace std;
static const int MAX = 2;
int stocknum [MAX], year [MAX], ctr, option;
bool swapped = true;
string make [MAX], model [MAX], tempstring;