How Should I do this properly?
int main ( )
{
char *string="empty";
char item='2';
//at this point i am trying to convert 'h'
//into "h" so that i can use atoi( )
string=item;
cout << string << endl;
return 0;
}
Any and all help is greatly appreciated
int main ( )
{
char *string="empty";
char item='2';
//at this point i am trying to convert 'h'
//into "h" so that i can use atoi( )
string=item;
cout << string << endl;
return 0;
}
Any and all help is greatly appreciated