@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.
void ReadAccount(int id, char *name, int money) {.
Going from int to std::string to char* isn't the same as int to char*.
int search(char (*text1)[30], char *text2); Also note that scanf("%s", &dumpchar); invokes undefined behavior by passing pointer to object having wrong
I'm wondering how to convert a char[] array to a char *. For example, in my code I am trying to access a web server using a hostname like "example.com".
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
int main(void). { /* with array/string literals at initialization, the sizes are technically unnecessary.
2. easiest way to append char - using simple assignment.
Компилятор Visual C++ поддерживает char и wchar_t как встроенные типы данных для кодировок ANSI и UNICODE.Хотя есть более конкретное