#include<iostream>
#include<string>
#include"Order.h"
usingnamespace std;
int main()
{
string yourName;
int yourNumber;
int yourQuantity;
double yourPrice;
int Yes;
Order newOrder;
cout<< "Enter your First and last name: "<<endl;
cin>> yourName;
newOrder.setName(yourName);
cout<< "Enter your member ID number: "<<endl;
cin>> yourNumber;
newOrder.setNumber(yourNumber);
cout<< "Enter the quantity bought: "<<endl;
cin>> yourQuantity;
newOrder.setQuanity(yourQuantity);
cout<< "Enter the price per unit: "<<endl;
cin>> yourPrice;
newOrder.setPrice(yourPrice);
cout<< "Thank you! Your name is: " << yourName
<< "\nYour ID number is: "<< yourNumber
<< "\nThe amount purchased is: " <<yourQuantity
<< "\nThe price per unit is: " << yourPrice
<< "\nThe total amount due before shipping is: "<< yourQuantity * yourPrice<<endl;
system("CLS");
cout<< " Would you like to ship this product? "<<endl;
cin >> Yes;
newOrder.SetShip(Yes);
system("pause");
return 0;
}
Those errors mean VS was unable to find a main function.
I used VS2015 Community, created an empty project and added your code. After killing several nasty bugs in your Order.cpp file I was able to successfully compile the code.
The bugs were in your setter and SetShip methods. Here is what I changed them to: