trying to make a highscore table -__-"
hello ppl...
am trying 2 make a score table for some game..not doing so gd..
as am coding without knowing whats going on..
explain 2 me like a 5 year old ..cuz this is really hard.. O_o
anyway here's the code..
_______
using System;
using System.Collections;
using System.Linq;
using System.Text;
namespace ManicMailman
{
public class Hiscore
{
static void Main(string[] args)
{
int[] highscores = new int[4];
for (int i = 1; i < 4; i++)
{
highscores[i] = i;
Console.WriteLine(i + "." + highscores[i]);
}
}
private int addScore()
{
int arr, score;
Array.Sort(arr);
if(score > arr[3])
arr[3] = score;
else if (score > arr[2] && score < arr[3])
arr[1] = score;
else if (score > arr[1] && score < arr[2])
arr[1] = score;
for(int i = arr.length-1; i>=0; i--)
{
}
}
}
}