Hallo. Also ich habe folgendes Problem, beim compilieren des Programmes wird folgende Warnung angezeigt: In function 'void multiplex(bool, bool, bool, bool)': 72: error: invalid types 'bool[int]' for array subscript 90: error: invalid types 'bool[int]' for array subscript 108: error: invalid types 'bool[int]' for array subscript 126: error: invalid types 'bool[int]' for array subscript Könnte mal bitte jemand drüberschauen woran es liegen könnte (mal abgesehen davan das ich kompletter C-anfänger bin)?
1 | inline void multiplex(bool multi0, bool multi1, bool multi2, bool multi3) |
2 | {
|
3 | ...
|
4 | if (multi0[1] == true) |
In der Funktion ist multi0 ein einzelnes bool, kein Array. Was du also eigentlich haben möchtest:
1 | inline void multiplex(bool multi0[], bool multi1[], ... |
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.