. Advertisement .
..3..
. Advertisement .
..4..
The error subscripted value is neither array nor pointer nor vector appears when doing my program.
To be honest, I’m new to this field, so I don’t know what is the cause of the error. Experts please help me fix this error. Your help it will be very helpful for me. Thank you so much.
The cause:
Because the subscript value does not comply with the criteria of an array or pointer, the operated item is not permitted to have a subscript value.
Solution:
Here is my advice to fix the issue subscripted value is neither array nor pointer nor vector.
Before carrying out the operation, you must first determine whether the object is a pointer; if not, you must change the object’s type to a pointer.