Search notes:

C++ Standard Library: iterating over an array

// 
// g++ -std=c++11 iterate.cpp
//
#include <array>
#include <iostream>

int main() {

  std::array<int, 6> a = {1, 1, 2, 3, 5, 8};

  for (int i : a) {
    std::cout << i << std::endl;
  }

}
Github repository about-cpp-standard-library, path: /array/iterate.cpp

See also

Iterate over anonymous array
for
C++ Standard Library

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758193826, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/C-C-plus-plus/CPP-Standard-Library/array/iterate(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78