changed some stuff

This commit is contained in:
rattatwinko
2025-04-29 20:21:12 +02:00
parent 2f4f755781
commit b489370357
6 changed files with 51 additions and 0 deletions

11
arrays/array_for.cpp Normal file
View File

@@ -0,0 +1,11 @@
#include <iostream>
using namespace std;
int main() {
string cars[4] = {"Volvo", "Opel", "Volkswagen", "Auto"};
for (int i = 0; i < 4 ; i++) { // needs to be size of cars array else segfault
cout << cars[i] << "\n";
}
}