Logo

Programming-Idioms

History of Idiom 153 > diff from v13 to v14

Edit summary for version 14 by fantasy:
New Cpp implementation by user [fantasy]

Version 13

2018-03-10, 23:57:35

Version 14

2018-05-08, 00:50:41

Idiom #153 Concatenate string with integer

Create string t as the concatenation of string s and integer i.

Idiom #153 Concatenate string with integer

Create string t as the concatenation of string s and integer i.

Extra Keywords
int concat
Extra Keywords
int concat
Imports
#include <string>
Code
auto t = s + std::to_string (i);