@kevin001 If you want to convert the char to int and a character '1' provides a ascii number that's not 1, you need to remove the offset '0' to realign it to count from 0-9.
Going from int to std::string to char* isn't the same as int to char*.
void ReadAccount(int id, char *name, int money) {.
int search(char (*text1)[30], char *text2); Also note that scanf("%s", &dumpchar); invokes undefined behavior by passing pointer to object having wrong
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
int main(void). { /* with array/string literals at initialization, the sizes are technically unnecessary.
Реализация функции char *padl(const char *string, int len, int c=' ') Реализовать функцию возвращающую указатель на новую строку
Think of the char data type as a small integer type. That’s exactly what it is. We just happen to typically store ASCII (or other) character
2. easiest way to append char - using simple assignment.