Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to call function after timer Pin
Member 141922163-Dec-20 22:06
Member 141922163-Dec-20 22:06 
GeneralRe: How to call function after timer Pin
OriginalGriff3-Dec-20 22:20
mveOriginalGriff3-Dec-20 22:20 
QuestionTake ownership from trustedinstaller to administrator c# or vb Pin
Member 123929042-Dec-20 10:49
Member 123929042-Dec-20 10:49 
AnswerRe: Take ownership from trustedinstaller to administrator c# or vb Pin
Dave Kreskowiak2-Dec-20 18:21
mveDave Kreskowiak2-Dec-20 18:21 
QuestionCombine Array Values in C# Pin
Member 130810652-Dec-20 3:51
Member 130810652-Dec-20 3:51 
AnswerRe: Combine Array Values in C# Pin
Richard MacCutchan2-Dec-20 4:02
mveRichard MacCutchan2-Dec-20 4:02 
AnswerRe: Combine Array Values in C# Pin
Richard Deeming2-Dec-20 4:08
mveRichard Deeming2-Dec-20 4:08 
AnswerRe: Combine Array Values in C# Pin
OriginalGriff2-Dec-20 4:31
mveOriginalGriff2-Dec-20 4:31 
You get a value from an array by using an index - a numeric value that ruins from 0 to (N - 1), where N is the number of elements in the array. So valid indexes for your myarr array woudl be 0, 1, and 2.
If you want "a", then you use myarr[0]
If you want "b", then you use myarr[1]
If you want "c", then you use myarr[2]

That index value can be in a variable:
C#
int index = 2;
Console.WriteLine(myarr[index]);
Would print "c" for example.

Think about what your tutor wants you do to, and work out how you would do it manually - that may help you work out what your code needs to do!

Give it a try - this isn't complicated!

Hint: you only need one loop!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

AnswerRe: Combine Array Values in C# Pin
Gerry Schmitz2-Dec-20 5:33
mveGerry Schmitz2-Dec-20 5:33 
QuestionUnity connection with a smartwatch and getting heart rate data Pin
SkyVenus30-Nov-20 23:30
SkyVenus30-Nov-20 23:30 
AnswerRe: Unity connection with a smartwatch and getting heart rate data Pin
Sandeep Mewara1-Dec-20 0:06
mveSandeep Mewara1-Dec-20 0:06 
GeneralRe: Unity connection with a smartwatch and getting heart rate data Pin
SkyVenus1-Dec-20 3:11
SkyVenus1-Dec-20 3:11 
AnswerRe: Unity connection with a smartwatch and getting heart rate data Pin
Gerry Schmitz1-Dec-20 5:34
mveGerry Schmitz1-Dec-20 5:34 
GeneralRe: Unity connection with a smartwatch and getting heart rate data Pin
OriginalGriff1-Dec-20 9:30
mveOriginalGriff1-Dec-20 9:30 
GeneralRe: Unity connection with a smartwatch and getting heart rate data Pin
Gerry Schmitz1-Dec-20 18:23
mveGerry Schmitz1-Dec-20 18:23 
QuestionDifferences Pin
michaelbarb30-Nov-20 5:53
michaelbarb30-Nov-20 5:53 
AnswerRe: Differences Pin
OriginalGriff30-Nov-20 6:20
mveOriginalGriff30-Nov-20 6:20 
GeneralRe: Differences Pin
michaelbarb30-Nov-20 6:39
michaelbarb30-Nov-20 6:39 
QuestionIs my program idea possible? Pin
Dioxazine27-Nov-20 20:09
Dioxazine27-Nov-20 20:09 
AnswerRe: Is my program idea possible? Pin
OriginalGriff27-Nov-20 20:20
mveOriginalGriff27-Nov-20 20:20 
GeneralRe: Is my program idea possible? Pin
Dioxazine28-Nov-20 5:54
Dioxazine28-Nov-20 5:54 
GeneralRe: Is my program idea possible? Pin
OriginalGriff28-Nov-20 6:17
mveOriginalGriff28-Nov-20 6:17 
GeneralRe: Is my program idea possible? Pin
Dioxazine28-Nov-20 8:09
Dioxazine28-Nov-20 8:09 
GeneralRe: Is my program idea possible? Pin
OriginalGriff28-Nov-20 8:22
mveOriginalGriff28-Nov-20 8:22 
GeneralRe: Is my program idea possible? Pin
Liktor Janos11-Dec-20 7:42
Liktor Janos11-Dec-20 7:42 

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.