Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Here is the working code (no errors)
#include <iostream>
#include <string>
using namespace std;
struct autom {
bool so;
};
void func_init(struct autom arr[], const int v) {
for (int i = 0; i < v; i++) {
arr[i].so = false;
}
}
int main() {
const int v = 10;
autom mas[v];
func_init(mas, v);
for (int i = 0; i < v; i++) {
cout << mas[i].so;
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question