@vncpetrov/

Concatenation

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.43530464960816273","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgc3RyaW5nIGZpcnN0TmFtZSA9ICJNYXJpYSI7CiAgc3RyaW5nIGxhc3ROYW1lID0gIkl2YW5vdmEiOwogIHN0cmluZyBhZ2UgPSAiMTkiOwogIHN0cmluZyBzdHIgPSBmaXJzdE5hbWUgKyAiICIgKyBsYXN0TmFtZSArICIgQCAiICsgYWdlOwogIGNvdXQgPDwgc3RyIDw8IGVuZGw7ICAvLyBNYXJpYSBJdmFub3ZhIEAgMTkKfQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
#include <iostream>
using namespace std;

int main() {
  string firstName = "Maria";
  string lastName = "Ivanova";
  string age = "19";
  string str = firstName + " " + lastName + " @ " + age;
  cout << str << endl;  // Maria Ivanova @ 19
}