Hello, I am looking for some help with a program i am writing. It is supposed to ask you for the name of an object and the 'create' said object. It ends with an error message saying that the hard drive was wiped. The only problem is that i can't seem to get the String to work. Any ideas? And later on i would like to have the program 'type' itself out on the page and wait a few seconds between lines if at all possible. But my main concern is the String problem.
#include <iostream>
using namespace std;
#include <iomanip>
#include <String>
int main ()
{
system("cls");
int Object;
String Object;
cout << "Enter the object you wish to create: ";
cin >> Object;
cout << "Initializing \"" << Object << "\"" << endl;
cout << "Initailization Complete" << endl;
cout << "Compiling \"" << Object << "\"" << endl;
cout << "Compiling Complete" << endl;
cout << "Creating \"" << Object << "\"" << endl;
cout << "FATAL ERROR IN C DRIVE" << endl;
cout << "ABORTING CREATION OF \"" << Object << "\"" << endl;
cout << "Program succesfully aborted" << endl;
cout << "Hard drive wiped to protect computer" << endl;
cout << "Have a nice day." << endl;
system ("pause");
}