Skip to content

Commit a982c7e

Browse files
authored
Add std::to_string
1 parent 7e38a92 commit a982c7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ s1 == "hello world" // Comparison, also <, >, !=, etc.
352352
s1[0]; // 'h'
353353
s1.substr(m, n); // Substring of size n starting at s1[m]
354354
s1.c_str(); // Convert to const char*
355+
s1 = to_string(12.05); // Converts number to string
355356
getline(cin, s); // Read line ending in '\n'
356357
~~~~
357358

0 commit comments

Comments
 (0)