TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Michelle an
NA
3
0
trying to make a highscore table -__-"
Dec 12 2009 5:28 PM
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--)
{
}
}
}
}
Reply
Answers (
2
)
how save name of every control that add in run time and then can use them?
Saving a WPF C# App Richtextbox using savefiledialog