for-each 반복문
#include #include #include #include using namespace std; int main() { //int fibonacci[] = { 0,1,1,2,3,5,8,13,21,34,55,89 }; vector fibonacci= { 0,1,1,2,3,5,8,13,21,34,55,89 }; //for (int& number : fibonacci)number = 10; for (auto& number : fibonacci)number = 10; for (int number : fibonacci)cout
2024. 3. 10.