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