![]() |
#2
KANCY2013-03-08 18:14
|
#include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;
char* fun(int&p,char *m)
{
string s=NULL;
while (p!=0)
{
s+=p%10;
p/=10;
if (p!=0)
s+=*m;
}
return s;
}
int main(int argc, char* argv[])
{
string st;
cout<<"Enter number:"<<endl;
int i;
cin>>i;
st=fun(i,c);
cout<<"st"<<endl;
return 0;
}