Arrays in C#

Arrays in C#

using System;

class Tabl
{
public static void Main()
{
int[] Oken = new int[10];
Oken[0] = 1;
Oken[1] = 2;
Oken[2] = 3;
Oken[3] = 4;
Oken[4] = 5;
Oken[5] = 6;
Oken[6] = 7;
Oken[7] = 8;
Oken[8] = 9;
Oken[9] = 10;

Console.WriteLine(Oken[5]);
Console.WriteLine(Oken[9]);
Console.WriteLine(Oken[0]);
Oken[5] = 122222;
Console.WriteLine(Oken[5]);
}
}

We have the result:

D:\SharpDevelop Projects\CSharp>cs17
6
10
1
122222

D:\SharpDevelop Projects\CSharp>

2 thoughts on “Arrays in C#

  1. Lea

    My programmer is trying to persuade me to move to .
    net from PHP. I have always disliked the idea because of the expenses.
    But he’s tryiong none the less. I’ve been using WordPress on several websites for about a year and am nervous about
    switching to another platform. I have heard excellent things about blogengine.
    net. Is there a way I can import all my wordpress posts into it?
    Any kind of help would be greatly appreciated!

    Reply
    1. tomaszzackiewicz Post author

      .NET and PHP are totally different technologies. Do you mean using .NET in Web projects? Import all my wordpress things into blogengine? Go to the Tools — you can see Import and Export. If not, try to find any converter. You can export your staff into XML files. It’ll be easier to import to blogengine.

      Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s