Quote:
#include <iostream.h>
#include <stdlib.h>
#include <cstring>
#include <string>
#include <fstream>
using namespace std;
string name; // Is the name for the mailing labels
string address; // Is the address for the mailing labels
string zip; // Is the zipcode for the mailing labels
string state; // Is the state for the mailing labels
string city; // Is the city for the mailing labels
int number_of_boxes; // Number of labels neeeded
int box_number; //Current Label
ofstream mailing_labels;
int main()
{
mailing_labels.open("D:\\mailing_labels.dat");
cout <<"Please enter the name of the person you are shipping these items to: " <<'\n'; //Asks for the name
cin >> name; //Accepts the name
cout <<"Please enter the street address you are shipping to: "<<'\n'; //Asks for the street address
cin >> address; //Accepts the street address
cout <<"Please enter the city you are shipping to: "<<'\n'; //Asks for the city
cin >> city; //Accepts the city
cout <<"Please enter the two letter abbreviation of the state you are shipping to: "<<'\n'; //Asks for the state
cin >> state; //Accepts the state
cout <<"Please enter the zip code you are shipping to: "<<'\n'; //Asks for the zip code
cin >> zip; //Accepts the zip code
cout <<"How many boxes are you shipping? "<<'\n'; //Asks for number of boxes
cin >> number_of_boxes; //Accepts number of boxes
system("PAUSE");
return 0;
}