#include <iostream>
#include <string>
// Diese Funktion vertauscht zwei Strings miteinander
void swap(std::string& a, std::string& b)
{
  std::string temp = a;
  a = b;
  b = temp;
}
int main()
{
  std::string first = "Fernando Alonso";
  std::string second = "Sebastian Vettel";
  swap(first, second);
  // Nun ist Vettel Erster und Alonso Zweiter
  std::cout << first << std::endl;  // "Sebastian Vettel"
  std::cout << second << std::endl;  // "Fernando Alonso"
  return 0;
}
