trovare il valore massimo in un array c++ w3

C++
  string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
cars[0] = "Opel";

  cout << cars[0];

  // Now outputs Opel instead of Volvo

  
Source

Also in C++: