why cant i type in my address???
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
const int maxstring = 120;
typedef char stringtype[maxstring];
void newuser(){
system ("cls");
stringtype name;
string type, id, cnumber, address;
double amount;
ofstream out;
cout << "ENTER YOUR NAME: ";
cin >> name;
out.open(name, ios::out);
out << "USERNAME/NAME : " << name << endl;
cout << "ENTER IDENTITY CARD NUMBER: ";
cin >> id;
out << "IDENTITY CARD NUMBER : " << id << endl;
cout << "ENTER YOUR ACCOUNT TYPE(current/savings): ";
cin >> type;
out << "ACCOUNT TYPE : " << type << endl;
cout << "ENTER YOUR CONTACT NUMBER: ";
cin >> cnumber;
out << "CONTACT NUMBER : " << cnumber << endl;
cout << "ENTER YOUR ADDRESS: ";
cin >> address;
out << "ADDRESS : " << address << endl;
cout << "AMOUNT TO BE DEPOSITED: ";
cin >> amount;
out << "AMOUNT DEPOSITED: RM" << amount;
out.close();
}
int main(void){
newuser();
return 0;
}