My problem is that when i enter a second name into t it just ignores it or crashs the system, am running borland 5.5. When i enter Oli its fine but when i enter Oli Dl it crashs.
#include<iostream.h>
#include<iomanip.h>
void main()
{
char t[100] = {0};
char key = 'n';
do
{
key = 'n';
cout<<"Please enter your name"<<endl;
cin >> t;
cout<<"If your not called " <<t<< " Press n"<<endl;
cin >> key;
}
while (key == 'n');
cout<<"test";
cin.get();
cin.get();
}