I am running my C# executable from cmd and I want to be able to see the return values when the program is done.
Right now i run the program from cmd, it runs and then nothing.
What do I have to do to set up cmd or my program in order to read these return values?
Loading
DanPosted Oct 23, 2009, 6:29 PM
That worked perfectly. Thanks for your help guys.
Kirtan PatelPosted Oct 23, 2009, 10:04 AM
@ [email protected]
will solve your problem quickly
thanks :)
Roei BarPosted Oct 23, 2009, 10:02 AM
a
Console.WriteLine
on every value you want to see
naura paxPosted Oct 23, 2009, 9:57 AM
you'd need to write code in your program like following to give output in console-
Console.WriteLine("My answers are {0} and {1}",ans1,ans2);