-
October 9th, 2014, 10:52 AM
#1
Total novice on SharpDevelop: how to build a uni-dimensional table/list of numbers?
Hello.
I just downloaded SharpDevelop version 4.3.3, a software to program things in C# (which looks to be the same thing as "C sharp").
I previously used that software for 4 hours in class, so I am a total novice in programming.
My question will look extremely stupid but here it comes: how do you build a uni-dimensional table/list of numbers?
I saw the teacher do it, it was just one simple line or two, but I don't remember it very precisely...
I remember that we had to input a number that is the length of the list of numbers... And at the end we could input all our values, all separated by commas.
Thanks in advance for your answers.
-
October 10th, 2014, 08:44 AM
#2
Re: Total novice on SharpDevelop: how to build a uni-dimensional table/list of number
I think I've found the answer:
int[] name = new int[number-of-elements]{elements-separated-by-commas}
-
October 11th, 2014, 12:22 AM
#3
Re: Total novice on SharpDevelop: how to build a uni-dimensional table/list of number
for reference dot net perls is a nice site
all about arrays
http://www.dotnetperls.com/array
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|