you could try to insert this instead:
Code:
char name[256];
char address[256];
char account[256];
cout << "Input suppliers name: ";
cin.getline(name, 256, '\n') //the userinput is added to variable: name
cout << "Input suppliers address: ";
cin.getline(address, 256, '\n') //the userinput is added to variable: address
cout << "Input suppliers account name: ";
cin.getline(account, 256, '\n') //the userinput is added to variable: account
And to check if it worked:
Code:
cout << name << endl << address << endl << account;
Hope it works