I've started working with console application for a while some of the programs that executed worked properly and gave the correct output, but some executed properly but no output was displayed in Debugger, here's one of of them
classProgram{publicstaticvoidPrintDucks(List<Duck> ducks){
foreach (Duck duck in ducks)Console.WriteLine(duck.Size.ToString()+"-inch "+ duck.Kind.ToString());Console.WriteLine("End of ducks!");}staticvoidMain(string[] args){List<Duck> ducks =newList<Duck>(){newDuck(){Kind=KindOfDuck.Mallard,Size=17},newDuck(){Kind=KindOfDuck.Muscovy,Size=18},newDuck(){Kind=KindOfDuck.Decoy,Size=14},newDuck(){Kind=KindOfDuck.Muscovy,Size=11},newDuck(){Kind=KindOfDuck.Mallard,Size=14},newDuck(){Kind=KindOfDuck.Decoy,Size=13},};
ducks.Sort();Console.ReadKey();}}
When i press the start button, under the output tab its shows symbols loaded, but in the Debug//ConsoleApplication.exe nothing seem to appear it's just blank,
Do i need to include a library in the program class so that output is displayed ?
Question
Ch33f
I've started working with console application for a while some of the programs that executed worked properly and gave the correct output, but some executed properly but no output was displayed in Debugger, here's one of of them
When i press the start button, under the output tab its shows symbols loaded, but in the Debug//ConsoleApplication.exe nothing seem to appear it's just blank,
Do i need to include a library in the program class so that output is displayed ?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts