@vncpetrov/

ConcatenationExample

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8974748293749877","path":"main.cpp","file":{"path":"main.cpp","content":{"asEncoding":{"base64":"I2luY2x1ZGUgPGlvc3RyZWFtPiAKCnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKICBzdHJpbmcgZmlyc3ROYW1lID0gIkl2YW4iOwogIHN0cmluZyBsYXN0TmFtZSA9ICJJdmFub3YiOwogIGludCBhZ2UgPSAxOTsKCiAgc3RyaW5nIHN0ciA9IGZpcnN0TmFtZSArICIgIiArIGxhc3ROYW1lICsgIiBpcyAiICsgdG9fc3RyaW5nKGFnZSkgKyAiIHllYXJzIG9sZCI7CgogIGNvdXQgPDwgc3RyIDw8IGVuZGw7CiAgcmV0dXJuIDA7Cn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream> 

using namespace std;

int main() {
  string firstName = "Ivan";
  string lastName = "Ivanov";
  int age = 19;

  string str = firstName + " " + lastName + " is " + to_string(age) + " years old";

  cout << str << endl;
  return 0;
}