C
C#8mo ago
StrixyBixy

index outside the bounds of array error

so i have this program that is supposed to make the user add the amount of students in a class then fill out the names. for some reason after the user inputs how many students are in the class and starts filling out the names it breaks. it pulls up with the error of the index outside the bounds of array error
No description
7 Replies
StrixyBixy
StrixyBixy8mo ago
No description
ZacharyPatten
ZacharyPatten8mo ago
the screenshot you shared doesn't even compile
StrixyBixy
StrixyBixy8mo ago
what do you mean
ZacharyPatten
ZacharyPatten8mo ago
if your code isn't valid C# then it won't even compile meaning you can't even run it read before you click the debug button do you see the squiggly red line under [total_students]? also is your "Error List" visible in Visual Studio? you should see an error
Anu6is
Anu6is8mo ago
you are probably executing an older version of the code, when you have an error VS will ask if you want to run the last compiled version. You need to fix the error on line 19 and rebuild
StrixyBixy
StrixyBixy8mo ago
hey i was wondering why cant i double+ double oh nvm hey im trying to print out an array but the output keeps coming out as this
StrixyBixy
StrixyBixy8mo ago
No description
Want results from more Discord servers?
Add your server
More Posts
✅ Unsuccessfully trying to parse web pages.I want to parse last.fm for artists but my code works only first iteration, in all iterations where ❔ Career PathCurrently I'm learning and getting better at desktop development but I've seen many posts and forums❔ Benchmarking object size differenceI've got a small PR here to move a few `bool` fields into an existing "status" `int`. My understandi❔ How can I diff 2 strings?How can I find the difference between two strings (added/removed/modified characters/words)❔ In need of a way to process inputs to produce outputs, other than using hardcoded if statementsHi all, I currently have a program that prompts the user to ask a question, then based on the parame❔ € symbol prints to console in Rider, but not Visual StudioHey all, Sorry if this is a stupid question, but I'm using Rider IDE on Ubuntu and working on a col❔ Local Environment throwing exception when calling HttpClient.GetStringAsyncI am running the below code via Visual Studio Code, and a "The requested address is not valid in its❔ How to stop WebClient.DownloadString encoding apostrophies?Does anyone know why WebClient.DownloadString encodes certain characters (e.g. apostrophe) even when❔ implementing openvpn to my c# wpf appI am trying to make a vpn app for my school project and I was wondering how I could implement openvp❔ Finding course for computer science on C#Hi there! I’m looking for a course, which covers Computer Science curriculum on C#. I mean compute