12345
int armor []; int main () { cout << armor [] (?) << endl; }
123456789101112131415
#include <iostream> class Armor { public: Armor() { std::cout << "new armor created!" << std::endl; } }; int main() { Armor my_armor; Armor more_armor; Armor yet_more_armor; }
new armor created! new armor created! new armor created!
12345678
#include <iostream> using namespace std; int armor [] = { 1, 2, 4, 8 }; int main; { cout << "Armor:" << armor [] << endl; }
Armor: 1 Armor: 2 Armor: 4 Armor: 8