Where can I find an overview of type conversion, for example. string to integer, etc.?
Because of the comments, so far Iβll clarify: I am looking for a list / table that says: To convert a string to int, use: ... And the same for other data types (where possible): double to int, char to a string ...
If it is a string to / from other types, then stringstream or increase :: lexical_cast .
For other types, it will depend on the types, but maybe look at the standard casting patterns? static_cast and dynamic_cast should do most of what you need, or there are const_cast and reinterpret_cast, which, as a rule, are only useful for working with older systems.
Threads are essentially C ++ string conversion operators.
You also have an available C conversion method from sprintf, but it is massively error-prone and insecure.
The standard library has functions for converting strings β int. You should take any C ++ reference or search Google.
I am more familiar with C, but I believe that the C ++ functions are the same: atoi, strtoi, etc.
I would recommend reading a link about a string class , and then something about for different data types in general .
Source: https://habr.com/ru/post/1302744/More articles:WCF requests handle Thread Agile? - multithreadingNo need to reference the windows.forms assembly? - c #ASP.NET MVC OutputCache JSONP - jsonpHanoi Tower, python -> scheme, shows an error. What am I missing? - pythonExecute code at the end of the current process? - c #Drupal - Panels - Use NID Options - drupalerror causing cffeed - coldfusionHow to configure Avalon docking manager to resize, for example VS? - wpfCreate C # bindings for a complex C ++ class system? - c ++"(1: k) Matching trees" is solvable in polynomial time? - algorithmAll Articles