says string does not name type

#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;


}


}
What is this supposed to be? char String x
Where are your semicolons?
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...
Topic archived. No new replies allowed.