@vncpetrov/

Concatenation2

C++

No description

fork
loading
Files
  • main.cpp

This Plugin Crashed!

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

int main() {
  string a = "1.5";
  string b = "2.5";
  string concatenation = "The sum is: " + a + b;
  cout << concatenation << endl;  // The sum is: 1.52.5

  return 0;
}