Files
  • main.cpp
main.cpp
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;
}