Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The C# Programming Language

Name: Anonymous 2012-03-25 23:26

Frameworks aside, tell me what you think of the C# language itself.

I think it's average and Could work better than Sepples if it had a proper library and could get compiled properly

Name: Array and Counter 2013-03-28 5:50

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static string[] FriendArray = { "Friend A", "Friend B", " Friend C", " Friend D", " Friend E" };
        static int[] MarkArray = { 5,3,1,2,4};


        static void Main(string[] args)
        {

            int intLow = MarkArray[0];

            for (int i = 0; i < MarkArray.Length; i++)
            {
                Console.WriteLine("The Mark is " + MarkArray[i] );
                if (MarkArray[i] < intLow)
                {
                    intLow = MarkArray[i];
                   
                }
            }

            Console.WriteLine("Lowest = " + intLow);
            Console.WriteLine("");

            SearchIndex(8);


            Console.ReadLine();
        }

        static void SearchIndex(int intSearch )
        {
            int intFoundIndex = -1;
            int i;
            for (i = 0; i < MarkArray.Length; i++)
            {
                if (MarkArray[i] == intSearch)
                {
                    intFoundIndex = i;
                }
            }

            Console.WriteLine("Found at index = " + intFoundIndex);
            if (intFoundIndex == -1)
            {
                Console.WriteLine("NOT Exists");
            }
            else
            {
                Console.WriteLine("Friends = " + StudentArray[intFoundIndex]);

            }

        }
    }
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List