Though of course you should use the char type when doing string handling, because the index of the classic ASCII table fits in 1 byte. You could however do string handling with regular ints as well, although there is no practical reason in the real world why you would ever want to do that.
@Griwes: the question is how to get to char*, not "is there any point calling from C++ into existing
char char_arr [100]; int num = 42; sprintf(char_arr, "%d", num); char_arr now is the string "42". sprintfautomatically adds the null character \0 to
I am trying to convert an integer to a char.. How can I do this..?
Задание: 68 (Serge I: 2010-03-27). Найти количество маршрутов, которые обслуживаются наибольшим числом рейсов.
Byte to Int Читаем Serial и записываем в int Получение целого однозначного числа(1..9) Получение целого многозначного значения (10+)
Now I want convert p(char *) to pwcsName(WCHAR *). Can anybody suggest me how do this? Is it done using "mbtowc" function or MultiByteToWideChar...
Преобразование char в string и обратно Есть массив char x, в нём содержатся элементы 1,2,3; нужно получить 3 строки типа string, в первой... Продемонстровать неявное преобразование типов: из целого в вещественный и обратно Помогите решить задачи по С++, никак не могу, вся...
I'm working with a char[] (char array?) from some of the example code of the MKR GSM1400. I've simplified what I'm trying to do to the very basics.
Если нужно перевести число в строку на си (char *), то лучше всего использовать стандартную функцию