
05.01.2010, 03:09
|
|
Участник форума
Регистрация: 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;
}
|
|
|