Click here to Skip to main content
15,920,468 members
Home / Discussions / C#
   

C#

 
GeneralRe: Binding to data that will be resloved asyncronously Pin
AlphaDeltaTheta1-Jun-13 15:22
AlphaDeltaTheta1-Jun-13 15:22 
AnswerRe: Binding to data that will be resloved asyncronously Pin
Anna King3-Jun-13 2:55
professionalAnna King3-Jun-13 2:55 
AnswerRe: Binding to data that will be resloved asyncronously Pin
BobJanova3-Jun-13 4:14
BobJanova3-Jun-13 4:14 
GeneralRe: Binding to data that will be resloved asyncronously Pin
AlphaDeltaTheta3-Jun-13 17:15
AlphaDeltaTheta3-Jun-13 17:15 
QuestionC# Project On Image Processing Pin
Bishwajit Nepali31-May-13 23:47
Bishwajit Nepali31-May-13 23:47 
AnswerRe: C# Project On Image Processing Pin
Eddy Vluggen1-Jun-13 11:05
professionalEddy Vluggen1-Jun-13 11:05 
GeneralRe: C# Project On Image Processing Pin
Bishwajit Nepali24-Sep-13 8:29
Bishwajit Nepali24-Sep-13 8:29 
AnswerRe: C# Project On Image Processing Pin
Anna King3-Jun-13 3:00
professionalAnna King3-Jun-13 3:00 
AnswerRe: C# Project On Image Processing Pin
Pete O'Hanlon3-Jun-13 3:23
mvePete O'Hanlon3-Jun-13 3:23 
AnswerRe: C# Project On Image Processing Pin
Bishwajit Nepali3-Jun-13 6:12
Bishwajit Nepali3-Jun-13 6:12 
GeneralPracticing Passing Parameters Pin
N8tiv31-May-13 16:25
N8tiv31-May-13 16:25 
GeneralRe: Practicing Passing Parameters Pin
OriginalGriff31-May-13 21:15
mveOriginalGriff31-May-13 21:15 
GeneralRe: Practicing Passing Parameters Pin
N8tiv3-Jun-13 7:19
N8tiv3-Jun-13 7:19 
GeneralRe: Practicing Passing Parameters Pin
OriginalGriff3-Jun-13 7:59
mveOriginalGriff3-Jun-13 7:59 
GeneralRe: Practicing Passing Parameters Pin
Richard MacCutchan31-May-13 23:21
mveRichard MacCutchan31-May-13 23:21 
You need to use the argument array that is provided by the system, as shown below:
C#
static void Main(string[] args)
{
    int number = Convert.ToInt32(args[0]);
    int power = Convert.ToInt32(args[1]);
    Console.WriteLine(Math.Pow(number, power));
}

You would then call the program in a command window by something like:
programname 23 3

Use the best guess

GeneralRe: Practicing Passing Parameters Pin
N8tiv3-Jun-13 1:02
N8tiv3-Jun-13 1:02 
GeneralRe: Practicing Passing Parameters Pin
Richard MacCutchan3-Jun-13 1:20
mveRichard MacCutchan3-Jun-13 1:20 
GeneralRe: Practicing Passing Parameters Pin
N8tiv3-Jun-13 2:39
N8tiv3-Jun-13 2:39 
GeneralRe: Practicing Passing Parameters Pin
Richard MacCutchan3-Jun-13 6:15
mveRichard MacCutchan3-Jun-13 6:15 
GeneralRe: Practicing Passing Parameters Pin
N8tiv3-Jun-13 21:01
N8tiv3-Jun-13 21:01 
GeneralRe: Practicing Passing Parameters Pin
Richard MacCutchan3-Jun-13 21:15
mveRichard MacCutchan3-Jun-13 21:15 
GeneralRe: Practicing Passing Parameters Pin
N8tiv3-Jun-13 3:46
N8tiv3-Jun-13 3:46 
GeneralRe: Practicing Passing Parameters Pin
Richard MacCutchan3-Jun-13 6:11
mveRichard MacCutchan3-Jun-13 6:11 
QuestionTo detect all USB devices. Pin
ravi inder jeet singh31-May-13 15:44
ravi inder jeet singh31-May-13 15:44 
AnswerRe: To detect all USB devices. Pin
Dave Kreskowiak1-Jun-13 6:51
mveDave Kreskowiak1-Jun-13 6:51 

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.