You can convert a char type simply by assigning to an int.
int length = 10; char len = length + '0'; printf("%c", len); This gave me : for 58 on the ascii chart not 10 that I wanted.
int search_book(){ int select_search; char dumpchar[30]
I know that for cannot convert char to char * you just use the & in front of the char, but I cannot figure out what to do in this case.
int a = 65; char c = (char) a; Note that since characters are smaller in size than integer, this casting may cause a loss of data.
Then, we will convert it back.
Преобразование char* в const wchar_t * Есть кусок кода, при компиляции выскакивает ошибка о о неудачном преобразовании...
Может кто подскажет, как правильно преобразовывать wchar_t в char* и наоборот char* в wchar_t ? IDE: C++ Builder :: Embarcadero RAD Studio XE (build 3953, +update1) Пример кода, при выполнении которог�� вместо номера версии файла (типа 1.2.34.567) выдается не читаемый...