Показать сообщение отдельно

  #4  
Старый 05.01.2010, 03:09
Ins3t
Участник форума
Регистрация: 18.07.2009
Сообщений: 272
Провел на форуме:
2083691

Репутация: 330
По умолчанию

Например так:

Цитата:
#include <iostream>
#include <stdlib.h>
using namespace std;
char function(int i, char * result);
int main(int argc, char * argv[])
{
char * result = new char[50];
function(123456, result);
cout<<result;
delete result;
cin.get();
return 0;
}
char function(int i, char * result)
{
itoa(i,result,10);
return 0;
}
 
Ответить с цитированием