Last active
June 8, 2017 00:49
-
-
Save Angel-Rojas/7c85a15fe981ba5a187c to your computer and use it in GitHub Desktop.
Concatenate and how it works '+'
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
/* | |
* 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 ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍