fork(23) download
  1. #include <array>
  2. #include <string>
  3. #include <iostream>
  4.  
  5. int main()
  6. {
  7. std::array<std::string, 3> texts { "Apple", "Banana", "Orange" };
  8. for (auto& text : texts) {
  9. std::cout << text << '\n';
  10. }
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
Apple
Banana
Orange