Hey guys,i need a bit of help in borland C++
i have problems reading a name if i dont know how many character the name has i tryed something like this but it didnt work

:
cout<<"plz insert ur name here:";
while(f==0){
cin>>a[t];
t++;
if(a[t]==NULL){
f=1;}}
cout<<"Hello ";
for(q=1;q<=t;q++)
cout<<a[q];
cout<<" be ready to start the game";
but it didnt work out i mean it was reading character till the infinit
then i saw smt with :
sting name;
cin>>name;
cout<<name;
but it seems like the declaration in borland and visual c++ is not the same at variabiles... could someone give me an ideea or the code plz?(in the last example i used sting.h)