[求助]老是内存报错
#include <iostream>
using namespace std;
class Debarkation
{
char *name,*password;
public:
//输入帐户和密码
void get()
{
cout << "\n Please the importation Bank account 'MAX 19 letter of alphabet': ";
cin.getline(name,20);
cout << "\n Please input the password 'MAX 19 letter of alphabet': ";
cin.getline(password,20);
}
};
int main()
{
Debarkation a1;
a1.get();
system("Pause");
}
一输入完毕就内存报错,麻烦各位指点下