Just need some quick advice.

Updated on July 4, 2018 in [A] C# .Net
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
2 on July 2, 2018

I’m trying to make a study app for this class I’m in (It’s not a computer class). I want to use c# but I haven’t used it in years, so I am a bit fuzzy on a lot of it. My question is what subjects of c# should I refresh myself on to do so? I want to have a bank of questions that will appear randomly, but also only once, that way I can’t just memorize the order. I feel like it should just be made of if statements and arrays. If I’m wrong just let me know. I do not want anyone to write this for me, just asking what I should freshen up on.

  • Liked by
Reply
0 on July 3, 2018

No don’t use if statements. Use arrays with switch statements. All the questions in a question array with indexes. Make a random number generator and switch the indexes of the array with the switch statement. Hope it was helpful but if you wanna learn more check these

ARRAYS>>https://www.youtube.com/watchv=RQ0JHMGiobo&list=PLPV2KyIb3jR6ZkG8gZwJYSjnXxmfPAl51&index=10&t=0s

          SWITCHSTATEMENTS>>https://www.youtube.com/watch?v=Qs-                                                  LAYkp9YU&index=5&list=PLPV2KyIb3jR6ZkG8gZwJYSjnXxmfPAl51

 

 

  • Liked by
Reply
Cancel
0 on July 4, 2018

you can simply  use a list. do a list shuffle on start, and just Remove() the question from the list after it has been displayed. Cheers.

  • Liked by
Reply
Cancel