Jul 31, 2011 at 4:56pm UTC
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main()
{
system ("color 2");
ofstream theFile("Order Form Summary.txt");
cout << "Enter Cutomer's Full Name: " << endl;
char String x
getline(cin, x);
cout << " " << endl;
cout << "Phone Number: " << endl;
string stringTwo
getline(cin, StringTwo);
cout << " " << endl;
cout << "Pick up/Delivery Date: " << endl;
string stringThree
getline(cin, StringThree);
cout << " " << endl;
cout << "Today's Date: " << endl;
string stringFour
getline(cin, StringFour);
cout << " " << endl;
cout << "Press CTR+Z to quit\n" << endl;
string name;
while(cin >> name){
theFile << name << endl;
}
}
Jul 31, 2011 at 4:59pm UTC
What is this supposed to be? char String x
Where are your semicolons?
Jul 31, 2011 at 5:09pm UTC
wow....i am really stupid. i forgot all about the semicolons. but i added them in there, and it still doesnt work. and i was told to put the "char" before the string. and it still doesnt work...