Код: Выделить всё
//Inside the header.h
class telefonbok{
std::map telebok;
std::map aliasbok;
}
Код: Выделить всё
//Inside the cpp file
void telefonbok::alias(string name, string alias){
if (telebok.find(name) == telebok.end()) {
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/33782619/c-pointer-not-updating-the-value[/url]