Skip to content

Instantly share code, notes, and snippets.

@a1exlism
Last active April 16, 2019 15:14
Show Gist options
  • Save a1exlism/3f3f164a10f6a4a9aedaf06bfdf57525 to your computer and use it in GitHub Desktop.
Save a1exlism/3f3f164a10f6a4a9aedaf06bfdf57525 to your computer and use it in GitHub Desktop.
// C lang way
char str[MAXN];
sprintf(str, "%d", num);
// Cpp way c++11
std::string str = std::to_string(num);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment