c++ - Using map function to map to user menu options to specific functions
问题描述
I am new to C++ and need some help with the following:
If i have no namespace this works fine as soon as i have this i get a error :
Severity Code Description Project File Line Suppression State Error (active) E0109 expression preceding parentheses of apparent call must have (pointer-to-)
I am attaching a solution where i have implemented this code to show the error.
What i am tryng to achive is to use this map to call my menu options a user can select, it has a header file as well as the cpp implemtation file in it.
I have attached the source code with the error showing when trying to compile this.
I would greatly appreciate some help - sample attached done in visual studio Sample Code
解决方案
推荐阅读
- reactjs - 月范围过滤器反应
- windows - PyCharm 启动错误:无法检测 Windows Subsystem for Linux (WSL) Ubuntu 上的图形环境
- django - 使用 Ajax 和 Django 添加注释
- php - 如何修复“此路线不支持 GET 方法。支持的方法:POST。'?
- java - 为什么直接写入文件时PrintWriter中没有autoflush参数?
- python - 用 pandas 计算分组的总数
- python - 如何检查所有包是否满足版本要求?
- typescript - 打字稿路径在 tsconfig.json 中不起作用
- javascript - 如果出现以下情况,如何禁用 HTML 元素
- css - 在列填充网格中跨越列的元素