ok, the answer to this is probably simple, but i haven't done it in a while...
the following works...
but the following, for some reason, won'tCode:...
int main() {
char name[10]={'\0'};
cin.getline(name,10);
}
could anyone explain why? thanks in advance. borland 5.02Code:...
#include <string>
using namespace std;
int main() {
string name;
cin.getline(name,10);
}