Skip to content

Instantly share code, notes, and snippets.

@Angel-Rojas
Last active June 8, 2017 00:49
Show Gist options
  • Save Angel-Rojas/7c85a15fe981ba5a187c to your computer and use it in GitHub Desktop.
Save Angel-Rojas/7c85a15fe981ba5a187c to your computer and use it in GitHub Desktop.
Concatenate and how it works '+'
/*
* ConcStrings.cpp
*
* Created on: Apr 30, 2015
* Author: Angel Rojas
*/
#include <iostream>
#include <string>
using namespace std;
int main()
{
string first = "What's up";
string mid = "dude";
string last = "!";
string Emit = first + ' ' + mid + ' ' + last;
cout << Emit << endl;
}
// output is : What's up dude !
@pathawks
Copy link

pathawks commented May 1, 2015

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment