CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2014
    Posts
    10

    Question 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.

  2. #2
    Join Date
    Oct 2014
    Posts
    10

    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}

  3. #3
    Join Date
    Apr 2014
    Location
    in northeast ohio
    Posts
    94

    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
  •  





Click Here to Expand Forum to Full Width

Featured