Bananahammock Posted January 31, 2011 Posted January 31, 2011 Does anyone know VB.NET arrays? I have homework that involves me reading in a list of scores from a file and putting them into an array and then doing calculation in the array. Thanks, Banana Quote
Creed Posted January 31, 2011 Posted January 31, 2011 Wouldn't they be somewhat similar to arrays in other languages? Seems like most of those languages have similar syntax for variable definitions and what not. Quote
Duckie Posted January 31, 2011 Posted January 31, 2011 Sub Main() Dim sport(5) As String 'declaring an array sport(0) = "Soccer" sport(1) = "Cricket" sport(2) = "Rugby" sport(3) = "Aussie Rules" sport(4) = "BasketBall" sport(5) = "Hockey" 'storing values in the array WriteLine("Name of the Sport in the third location" & " " & sport(2)) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.