I'm just kidding around. Apparently gmghulamabbas works best with half char arrays and half strings, though.
Seriously, though...
If you like char arrays so much why don't you program in C instead of C++?
char arrays are just as much a part of C++ as they are of C. Just because the STL exists doesn't mean that it has to (or even should) be used for everything all the time.
dear Bazzy
i used both char for name and string for adress and its right but if i take both as a string then it does not work. i want to know the reason of this.
thanks
You don't have to press enter twice, the second time you pressed it was for address input. If you don't see "Enter your complete address: " being displayed, you may have to call cout.flush() after it (before getting address)