Original Post
#include <cstdio>
#include <cstdlib>
int main( void )
{
char Buffer[100];
char* Name= new char[100];
int number;
printf( "Please Input A Number: " );
scanf( "%s", Name );
sprintf( Buffer, "%s", Name );
printf( "Hi %s!!", Buffer );
rewind( stdin );
rewind( stdout );
delete [] Name;
return(EXIT_SUCCESS);
}
The sprintf() function.....is there a C++ equivalent to it? That also handles std::string?
--------
"Do you believe in Ghost?"