Answer the question
In order to leave comments, you need to log in
Which function is used to convert a character string to numbers, and when and how are symbolic constants used?
Which function is used to convert a character string to a number, and when and how are symbolic constants used? and can you show how to convert a character string to a numeric one?
Answer the question
In order to leave comments, you need to log in
1. std::stoi/std::strtoi and similar functions
Examples here: https://en.cppreference.com/w/cpp/string/basic_str...
2. What exactly do you not understand about the use of constants? Give an example of something you don't understand?
const int bad_id = -1;
...
int new_id = bad_id;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question