- 1
Where is the mistake
Hello can anyone help find where is the mistake? Thank u so much https://code.sololearn.com/cEt0T7fyXS5R/?ref=app
4 Respostas
+ 5
🏐Volley You need to provide details on what you expect to happen with your code. We have no idea what the mistake could be when there is not any compile error.
But...
Part of your problem likely has to do with the fact that you are declaring an array but you are not assigning the values in your for loop to a unique index of that array. Therefore each value gets assigned to index 0 and overwrites all previous values.
student alpha[ENTRIES] ;
Assignment in for loop should be cin >> alpha[i].name;
+ 3
Syntactically this code is correct, and is running without any errors.
+ 3
Duplicate question
https://www.sololearn.com/Discuss/2666449/?ref=app
+ 1
Oh okay thank u Elizabeth Kelly 😃