You can convert a char type simply by assigning to an int.
void ReadAccount(int id, char *name, int money) {.
you should change char* to char, right now numberstring is an array of pointers – josefx Jun 1 '12 at 9:10.
int search_book(){ int select_search; char dumpchar[30]
will print out the char with ascii value 49 (one corresponding to '1'). If you want to convert a digit (0-9), you can add 48 to it and cast, or something like Character.forDigit(a, 10)
Перевожу char в int, но на выходе неверное число, вот упрощений вариант
You can convert a value of type char to type int with a typecast as well, but it won't have the same effect--in fact, the char type is already a small integer type, which can be promoted to type int implicitly anyway--but when you do so, it'll normally retain its original value, which is the.
Gundam Wing Eng Dub Ep 33-49.
...С const char* numbercsz(signed long long number) { char* result = new char[21], *index = result
Читаем Serial и записываем в int [B]Получение целого однозначного числа(1..9)[/B] IntVar=(Serial.read() - '0')