Click here to Skip to main content
16,005,162 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to execute a command in a string? Pin
Guffa1-Oct-07 0:12
Guffa1-Oct-07 0:12 
GeneralRe: Cargo.mdf database Pin
Pete O'Hanlon30-Sep-07 23:30
mvePete O'Hanlon30-Sep-07 23:30 
GeneralRe: Cargo.mdf database Pin
pierrecor30-Sep-07 23:42
pierrecor30-Sep-07 23:42 
QuestionArray Pin
Assaf8230-Sep-07 23:00
Assaf8230-Sep-07 23:00 
JokeRe: Array Pin
Rocky#30-Sep-07 23:01
Rocky#30-Sep-07 23:01 
GeneralRe: Array Pin
Assaf8230-Sep-07 23:07
Assaf8230-Sep-07 23:07 
AnswerRe: Array Pin
Pete O'Hanlon30-Sep-07 23:04
mvePete O'Hanlon30-Sep-07 23:04 
AnswerRe: Array Pin
Muammar©1-Oct-07 0:31
Muammar©1-Oct-07 0:31 
Here's a couple of tips you can use:

1. create an array to hold your values
2. create an additional temporary array
3. iterate (for loop is preferable in your case)
4. in each loop, you'll have to compare a value from the array of original values with those already in the temporary array, and add it "sorting logic must be implemented here"
5. once sorted, simply pick the last value in the temp array by moving to its last index

another way to do it is to use two nested loops.

Good luck!


Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)

QuestionWhy no DoubleClick event for button Control in C# Pin
Seraph_summer30-Sep-07 22:56
Seraph_summer30-Sep-07 22:56 
AnswerRe: Why no DoubleClick event for button Control in C# Pin
Pete O'Hanlon30-Sep-07 23:02
mvePete O'Hanlon30-Sep-07 23:02 
QuestionConnection error Pin
Muammar©30-Sep-07 22:50
Muammar©30-Sep-07 22:50 
AnswerRe: Connection error Pin
Christian Graus30-Sep-07 23:16
protectorChristian Graus30-Sep-07 23:16 
GeneralRe: Connection error Pin
Muammar©1-Oct-07 0:05
Muammar©1-Oct-07 0:05 
QuestionCargo.mdf database Pin
pierrecor30-Sep-07 22:49
pierrecor30-Sep-07 22:49 
AnswerRe: Cargo.mdf database Pin
Christian Graus30-Sep-07 23:16
protectorChristian Graus30-Sep-07 23:16 
GeneralRe: Cargo.mdf database Pin
pierrecor30-Sep-07 23:27
pierrecor30-Sep-07 23:27 
QuestionHow to call a class or function accoring to a given text name? Pin
Seraph_summer30-Sep-07 22:43
Seraph_summer30-Sep-07 22:43 
AnswerRe: How to call a class or function accoring to a given text name? Pin
Pete O'Hanlon30-Sep-07 22:56
mvePete O'Hanlon30-Sep-07 22:56 
GeneralRe: How to call a class or function accoring to a given text name? Pin
Seraph_summer30-Sep-07 23:10
Seraph_summer30-Sep-07 23:10 
GeneralRe: How to call a class or function accoring to a given text name? Pin
Pete O'Hanlon30-Sep-07 23:22
mvePete O'Hanlon30-Sep-07 23:22 
Question.NET Ftp class problem Pin
Stevo Z30-Sep-07 22:23
Stevo Z30-Sep-07 22:23 
AnswerRe: .NET Ftp class problem Pin
partymonkey1-Oct-07 2:49
partymonkey1-Oct-07 2:49 
GeneralRe: .NET Ftp class problem Pin
Stevo Z1-Oct-07 3:07
Stevo Z1-Oct-07 3:07 
GeneralRe: .NET Ftp class problem Pin
TJoe1-Oct-07 3:10
TJoe1-Oct-07 3:10 
GeneralRe: .NET Ftp class problem Pin
Stevo Z1-Oct-07 3:11
Stevo Z1-Oct-07 3:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.