Программы на C++. Форум разработчиков
-
Anonymous
Указатель C ++ не обновляет значение
Сообщение
Anonymous »
Код: Выделить всё
//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]
1759793947
Anonymous
[code]//Inside the header.h
class telefonbok{
std::map telebok;
std::map aliasbok;
}
[/code]
[code]//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]