M
mamboknave
From the keyboard I enter just one character and push Return key.
Then this getline goes in Segmentation fault.
Why so???
char *const SL = "";
parse_usr_data(SL);
....
void parse_usr_data(char *SL)
{
....
std::cin.getline(SL,2);
....
}
Then this getline goes in Segmentation fault.
Why so???
char *const SL = "";
parse_usr_data(SL);
....
void parse_usr_data(char *SL)
{
....
std::cin.getline(SL,2);
....
}