Please don't bash me. I really don't understand it. I know how to use sprintf and stuff but sscanf?
On a tutorial is says:
Doesn't ssprint do the same thing?.....sscanf is just like scanf, only it gets the input from a string
Code:#include <iostream> #include <cstdio> #include <cstdlib> using std::cin; int main( int argc, char *argv[] ) { char Buffer[255]; char Name[255]; printf("Input your name: "); scanf( "%s", Name ); sprintf( Buffer, "Your Name: %s", Name ); printf("%s", Buffer); cin.get(); return 0; }