Jul 26, 2010 by Drew | Posted in Programming & Design
I am taking a Visual C# class, and I've had a bit of a difficult time understanding some of the concepts. If you can help me with the following, I would greatly appreciate it. I am using Visual Studio 2008 Professional with .NET 3.5 SP 1.
"Create a class named Friend. Its fields include a Friend’s name, phone number, and three integer fields that together represent the Friend’s birthday—month, day, and year. Write a program that declares an array of eight Friend objects and prompts the user to enter data about eight friends. Display the Friend objects in alphabetical order by first name. Save the program as FriendList.cs."
I have the following code, but after running it in VS, the program stops because it cannot Compare two strings. I'm not sure if I've coded something incorrectly for the Sort portion. If you can point me to where I'm going wrong, I would greatly appreciate it.
I changed the friends array to 2 instead of 8 for simplicity.
------------------------------------------------------------------
using System;
public class CreateFriendList
{
public static void Main()
{
Friend[] friend = new Friend[2];
int x;
string name;
string phone;
int month;
int day;
int year;
for (x = 0; x < friend.Length; ++x)
{
GetData(out name, out phone, out month, out day, out year);
friend[x] = new Friend(name, phone, month, day, year);
}
Array.Sort(friend); Console.WriteLine("Sorted List:");
for (x = 0; x < friend.Length; ++x)
Display(friend[x]);
public static void GetData(out string name, out string phone, out int month, out int day, out int year)
{
string inString; Console.Write("Please enter your friend's name: ");
inString = Console.ReadLine();
name = Convert.ToString(inString); Console.Write("Please enter your friend's number: ");
inString = Console.ReadLine();
phone = Convert.ToString(inString);
Console.Write("Please enter your friend's birth MONTH: ");
inString = Console.ReadLine();
month = Convert.ToInt32(inString);
Console.Write("Please enter your friend's birth DAY: ");
inString = Console.ReadLine();
day = Convert.ToInt32(inString);
Console.Write("Please enter your friend's birth YEAR: ");
inString = Console.ReadLine();
year = Convert.ToInt32(inString);
}
public class Friend //: IComparable
{
private string name;
private string phone;
private int month;
private int day;
private int year;
public string Name { get; set; }
public string Phone { get; set; }
public int Month { get; set; }
public int Day { get; set; }
public int Year { get; set; }
public Friend(string friendName, string friendNumber, int friendMonth, int friendDay, int friendYear)
{
Name = friendName;
Phone = friendNumber;
Month = friendMonth;
Day = friendDay;
Year = friendYear;
}
SSL 6064e Console: The "Fischer Price" Of Studio Consoles
Hanging out in Chicago Recording Company's Studio 5, Chris Shepard runs into an old friend -- the studio's SSL 6064e mixing console. CRC ...
Studio eyeing 'The Hunger Games' as video game. Dangerous?
20.05.12
The record-breaking success of “The Hunger Games,” which raked in $155 million in its opening weekend, means a mountain of merchandise must be close behind. And no major franchise is complete these days without a video game. The Hunger Games Adventures for Facebook and Hunger Games: Girl on Fire for Apple devices have already amassed loyal followers, despite the exclusion of a full-fledged arena in both games. The Hunger Games Adventures has 200,000 monthly users, according to Facebook.
After almost 6 years or being on the market, people are beginning to wonder when the next generation of video game consoles are going to hit. Well, some developers are beginning to drop some very obvious hints.
Jun 21, 2011 from andrewnino(Andrew Nino) in Gaming
After almost 6 years or being on the market, people are beginning to wonder when the next generation of video game consoles are going to hit. Well, some developers are beginning to drop some very obvious hints.
Protest against Harman international management destroying Studer Ltd.(Ex Revox, studio mixing consoles)http://harman-do-not-kill-studer.org/In a move to cut down wage costs, Harman International want to close down the Studer equipment production in Switzerland.Their only intention is to fulfill the Harman cost-cutting program.Stud...
May 20, 4894 from jamespungello(James Pungello) in Gaming
After almost 6 years or being on the market, people are beginning to wonder when the next generation of video game consoles are going to hit. Well, some developers are beginning to drop some very obvious hints.
Backbreaker's small but extremely passionate following got some bad, but not really unexpected news. "Unfortunately, and unofficially, it is very unlikely that we will revisit [Backbreaker]/full-on football again," the game's lead developer told a forum member.
Tainted Blue Stage II: The Story of an NYC Recording Studio ...
by David Weiss
Then, as now, the merits of high-end studio NYC felt like a great novel, and more elbow room has been great since 2005 (Sony Hit plant Legacy A509, reasoning intact Clinton Recording all RIP). But instead respectfully competitive Cubed Times 723 Seventh Avenue, which houses Quad and Tainted Downhearted and Chancellor Studios NY on consecutive floors, track / mix knob is furious.
Today, Tainted Morose owner Andrew Koss feels wiser - and worry no more - that aspect continues to deviate.For studios incredible level as the body, the selection of dimensions beautiful console remains one of the most critical decisions, and Koss just changed gears in a surprising way: the preliminary Lawrence P. Swist oversee designed space is no longer an SSL 9080J houses, but newly acquired Euphonix System 5....
Recording: Shining Star Studios Install SSL AWS 900+ In Primary ...
by kclark@prosoundweb.com
Shining Diva Studio, a breathe music recording studio that serves the greater Bangkok, Thailand acreage, recently installed a Substantial Dignified Judiciousness AWS 900+ SE console in Studio A.
The studio offers a full perfection of microphones, outboard gear, and instruments to clients and theAWS 900+ SE provides Shining Heavenly body Studio the excellent way to withdraw all those elements together for clients while controlling their Wisdom Pro DAW.
“I have always loved the astute of SSL’s SuperAnalogue signal circuit,” said Pichet Permsubhirunya, possessor of Shining Take the lead Studio.
“We have meticulously put together a accumulation of excellent microphones, outboard mic pre amps, EQ, dynamics, reverb and accomplish units to advise us fashion superb sounding recordings.”
studio console | eBay
eBay: studio console ... Related Searches: mixing console, recording mixer, recording studio equipment, recording console, recording studio, console. Include description ...
Studio Consoles
SEFOUR S 60 STUDIO RACK TOBACCO. Product Details... €351,91* *(including 21 % tax) ... DJ Corner 2 Studio Consoles. Last Updated: Sunday, 09 October 2011 10: ...
A design which features slider controls like you would see on a mixing console in a recording studio. This design will also make a great gift idea for musicians, DJs and people that work with audio/sound design.
Vector Land @ Zazzle
Price: $4.40
What's hot
Episode 4 [HD] TV Series Episode Video on Demand
Price: $2.99
Console Media
I've enjoyed working with Coldplay and U2's mixer Mark "Spike" Stent
Photography by Brian A Petersen at www.brianapetersen.com
See more on the Waves plugin at
www.waves.com/content.aspx?id=12015
Grammy® award-winning Mark “Spike” Stent...
Part of an audio sound mixer with a microphone
Twitter
Oct 30, 2011 from Kristeen Ducasse
Bassett Mirror Studio Entertainment Console: BMC has the looks today\'s homemakers are buying! Our design teams ...
Oct 29, 2011 from Estela Hardin
OnQ legrand HA5009-GB 7 Inch LCD Console With Standard LyriQ in Studio Design - Black: This OnQ legrand HA5009-G...
Oct 29, 2011 from bbccumbriasport
Last night's show with studio guest, former Carlisle United midfielder Steve Soley ( @ ), to hear again:
Oct 29, 2011 from Home Theater Systems
--> OnQ legrand HA5009-TI 7 Inch LCD Console With Standard LyriQ in Studio Design - Titanium at Amazing Prices http://customhomeaudio.homet
Oct 28, 2011 from Dorine Sweney
OnQ legrand HA5009-GB 7 Inch LCD Console With Standard LyriQ in Studio Design - Black: This OnQ legrand HA5009-G...