Relative Content

Tag Archive for cloopsinputscanftypedef

Typedef instances only saves the last input

I’m trying to get a few(3 for now) names as the candidates for a vote and assign them to typedef instances with the array I have defined. But when I run the code only the last name gets saved in the array as you can see in the second loop only the last input gets printed out. Can someone please let me know what I’m doing wrong here?