из int в char* - C++ - Обсуждение 185219 |
|
Обсуждение
Всего сообщений: 13
|
||||
Имя | Дата | Сообщение | ||
Читать обсуждение полностью: из int в char* |
||||
Ksan | 02.11.2010 12:44 |
https://www.cyberforum.ru/post1077828.html
Просьба помочь перевести переменную типа int в char*. Вот...
|
||
easybudda | 02.11.2010 12:50 |
https://www.cyberforum.ru/post1077853.html
fprintf(f, "%d", i);
|
||
МаксимМВ | 02.11.2010 12:52 |
https://www.cyberforum.ru/post1077862.html
Попробуй так:
#include <stdio.h>
#include <stdlib.h>
int...
|
||
Ksan | 02.11.2010 12:55 |
https://www.cyberforum.ru/post1077870.html
Спасибо
работает
но возник еще 1 вопрос (а создавать еще...
|
||
easybudda | 02.11.2010 12:57 |
https://www.cyberforum.ru/post1077878.html
man 3 printf
|
||
ForEveR | 02.11.2010 12:57 |
https://www.cyberforum.ru/post1077880.html
Ksan, Спецификатор у целых чисел такой. %d или %i
|
||
МаксимМВ | 02.11.2010 12:57 |
https://www.cyberforum.ru/post1077881.html
Вот по printf и функций семейства (fprintf, sprintf и др),...
|
||
taras atavin | 02.11.2010 13:01 |
https://www.cyberforum.ru/post1077892.html
int *i;
char *s;
uniton ipc
{
int i;
char *s;
};...
|
||
Ksan | 02.11.2010 13:06 |
https://www.cyberforum.ru/post1077906.html
Всем спасибо
вроде разобрался
вопрос исчерпан
|
||
easybudda | 02.11.2010 13:08 |
https://www.cyberforum.ru/post1077911.html
Во-первых i объявлена, как указатель на int, а ipc.i, как...
|
||
KpeHDeJIb | 02.11.2010 13:44 |
https://www.cyberforum.ru/post1078023.html
Думаю это обычный пример алиазинга адресов, все равно что...
|
||
Ksan | 02.11.2010 13:46 |
https://www.cyberforum.ru/post1078027.html
Я же написал
>> вопрос исчерпан
|
||
easybudda | 02.11.2010 14:07 |
https://www.cyberforum.ru/post1078092.html
Да я понял, о чём речь, просто в такой реализации оно...
|
||
|
||||
Similar |
Реализация функции char *padl(const char *string, int len, int c=' ') Как превести из char* в int и наоборот из int в char*? Форматирование строк, char to int & int to char Подскажите пожалуйста с int main(int argc, char*argv[]) |
|||
Ads |
|
|||
MoreAnswers |
Ошибка: initializing argument 2 of `char* fgets(char*, int, FILE*) Сделать преобразование unsigned char в char, а затем типу int конвертирование (char)int (char*)int [BCC32 Error] File1.cpp(74): E2285 Could not find a match for 'student1::student1(const char *,int,int)' |
|||