joejoejoe
joejoejoe
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
I understand what you mean but if the user input is a string data type how do I covert it to a Friend data type?
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
If the Friend objects aren't string values, then what are they?
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
Actually, I have another question, would a Array.IndexOf() even work in this context?
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
I must be missing something.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
Creating a function to loop through the array returned the same result.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
Sorry I don't follow.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
We haven't been taught how to use linq yet so it'll have to be a loop.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
Anything that works would be fine with me lol
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
No.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
The program is not doing that.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
Later, I would be prompted again to find the birthday of the friend I want. If I type in "John" it should return the array position of that friend.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
For instance, on the initial prompt to enter friend details into the array, I include "John".
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
That's right.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
line 36. I was expecting it to find the position of the name entered, return the value and then print the friend's details.
41 replies
CC#
Created by joejoejoe on 6/2/2023 in #help
I'm having trouble with an IndexOf returning the position in a array
41 replies