Hello, I have a problem with the structure.
abridged version:
class AVL_Tree { private: std::string dirName;//имя директории в которой будет сохранена структура struct Tree_ // структура для представления узлов дерева { Key key; Tree_(Key k) { key = k; //тут был код сохранения , я его удалил чтобы не занимал место std::string dir=dirName; cout<<dir<<"место хранения структуры"<<endl; } }; Tree_ *root; } I do not understand why, but Tree_(Key k) does not see the dirName variable.
1) Severity Code Description C2327 'lib :: AVL_Tree> :: dirName': This is not a type name, static, or enumerator
2) Severity Code Description 'dirName': Undeclared identifier
Could you tell me what the problem is?