Posts: 23
Threads: 2
Joined: Apr 2018
Reputation:
0
Do you think anyone can help you with the information you gave us? You said it throws an error, it would be logical to at least post the error here.
My wild guess is that you didn't specifically make the variable a string. Can't help much more than that without more details.
Posts: 23
Threads: 2
Joined: Apr 2018
Reputation:
0
The error says everything. It expects a closing bracket but it got an identifier.
sizeof wants to get the size of the variable itself (in this case the length of the array) so it expects tpInfo[][];
Posts: 41
Threads: 9
Joined: Apr 2017
Reputation:
0
Enums are eventually heterogeneous form of an array. At least that's what I thought so far. A slot within the enum returns 1, such confusion. I assumed the slot is reserved for the mentioned string. But the value that it's returning kinda threw me off guard.
My question is never the less answered. Thank you.
This may be closed.
Posts: 2
Threads: 0
Joined: Dec 2017
Reputation:
0
May be syntax is wrong.....but wait I will respond quickly for it
Posts: 41
Threads: 9
Joined: Apr 2017
Reputation:
0
Using sizeof(tpInfo[][tpName]) was of no help. Same errors occured