Last active
April 16, 2019 15:14
-
-
Save a1exlism/3f3f164a10f6a4a9aedaf06bfdf57525 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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