1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#include <iostream>
#include <math.h>
#include <string>
using namespace std;
int main()
{
string f_name, m_name, l_name, add1, add2, add3, city, state, zip, order_date, total_items, order_total, ship_date;
cout << "Enter first name ";
getline(cin, f_name);
cout << "Enter middle initial ";
getline(cin, m_name);
cout << "Enter last name ";
getline(cin, l_name);
cout << "Enter address 1 ";
getline(cin, add1);
cout << "Enter add2 ";
getline(cin, add2);
cout << "Enter add3 ";
getline(cin, add3);
cout << "Enter city ";
getline(cin, city);
cout << "Enter state ";
getline(cin, state);
cout << "Enter zip ";
getline(cin, zip);
cout << "Enter order date ";
getline(cin, order_date);
cout << "Enter total items ";
getline(cin, total_items);
cout << "Enter order total ";
getline(cin, order_total);
cout << "Enter ship date ";
getline(cin, ship_date);
cout << f_name + " " + m_name + " " + l_name << endl << add1 + " " + add2 + " " + add3<< endl << city << state << zip << endl << "Order Date:" << order_date + " " << "Total Items:"
<< total_items + " " << "Order Total:" << order_total << endl << "Ship Date:" << ship_date << endl;
return 0;
}
|