| | |
Code problem with an array displaying list
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
After entering 8 names,phone numbers,and birthdays. A list appears at the bottom of the console which is suppose to display name,phone number, and birthday. Well with this code the name shows up so does the phone number,but the birthday doesn't show . Can someone help.
Thanks
for(x = 0; x < friend.Length; ++x)
Console.WriteLine
("Name is {0}, phone is {1}, and bday is {2}",
x +1, friend[x].GetName(), friend[x].GetPhone(),
friend[x].GetBday());
Thanks
for(x = 0; x < friend.Length; ++x)
Console.WriteLine
("Name is {0}, phone is {1}, and bday is {2}",
x +1, friend[x].GetName(), friend[x].GetPhone(),
friend[x].GetBday());
![]() |
Similar Threads
Other Threads in the C# Forum
- Previous Thread: C# VS 2005 - Crystal reports question
- Next Thread: Nesting A Table
| Thread Tools | Search this Thread |
.net access algorithm angle array barchart bitmap box broadcast c# capturing check checkbox client combobox control conversion convert csharp custom database datagrid datagridview dataset datetime dbconnection degrees delegate design development disappear draganddrop drawing encryption enum event excel file firefox form format forms function gdi+ httpwebrequest image index input install java label leak libraries list listbox mandelbrot math monodevelop mouseclick msword mysql operator path pause photoshop picturebox pixelinversion post programming radians regex remote remoting richtextbox round server sleep socket sql statistics stream string table tcpclientchannel text textbox thread time timer update usercontrol validation virtualization visualbasic visualstudio webbrowser windows winforms wpf xml






