Logo

Programming-Idioms

  • Scheme
  • C++

Idiom #289 Concatenate two strings

Create the string s by concatenating the strings a and b.

#include <iostream>
#include <string>
std::string a{"Hello"};
std::string b{"world"};
auto s = a + b;
S : constant String := A & B;

New implementation...