Summary
Error “no matching function for call to’atoi/atof'” error
Code
First make sure you set
using namespace std;
Secondly, pay attention to that you used a string instead of a char array
So:
change to
string inputstr = "111";
i = atoi(inputstr.c_str());
Done
Read More:
- How to Solve Error vim :call CompileRunGcc()
- How to Solve Android Linux5.10 Kernel do_gettimeofday Function Error
- C#: How to Use Itextsharp to Manipulate PDF Files
- How to Solve No approve protocol error when running kettle on Linux
- [Solved] ERROR: No matching distribution found for tkinter
- [Solved] KVM Failed to Startup Error: error: Network not found: no network with matching name ‘default‘
- [Solved] Linux C++ warning: ISO C++ forbids converting a string constant to ‘char*‘ [-Wwrite-strings]
- [Solved] ioctl_cfg80211.c:1130:4: error: too many arguments to function ‘cfg80211_roamed’
- scp Command: Unable to negotiate with xxx.xx.xx.xx port 22: no matching cipher found.
- How to Solve A-LOAM Ceres Version Error
- linux C called object ‘maze’ is not a function or function pointer printf(“%d\t“, maze(i, j))
- [Ubuntu] How to Solve dpkg Error: dpkg: error: failed to open package info file ‘/usr/local/var/lib/dpkg/status’ for reading: No such file or directory
- C# WPF Framework: How to Build Caliburn.Micro Quickly
- C#: How to get the value or text value of the select drop-down list
- How to Solve labelme Install Error in Ubuntu
- How to Solve dyn_small_obs_avoidance Compile Error (eigen version Issue)
- How to Solve Ubuntu “Failed to fetch” Error
- Linux: How to Solve pyperclip Module Error
- How to Solve Error: “Hdaudio hdaudioc0d2: unable to bind codec”
- How to Solve Roscore Run error [Install ROS]