Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C#

Name: Anonymous 2009-08-14 20:29

OK,

I need to make an array for an amount of rooms, the price, and address for dwellings. I have the properties in a class, but in Main I need to have the user input the amount of rooms, price, and address (3 different entries) and have the inputs go to an array. But how do I get the inputs to go to the array, while still using the 'filtering' code in their properties in the class?


I am confused beyond confused, and I'm sure you are after reading this. But if you can help, thank you.

Name: Anonymous 2009-08-14 20:58

I'll try and sum it up better.

I have a class that has properties for price, address, and amount of rooms. In MAIN, the user inputs the amount of rooms, price, and address. That input has to go into an array that also accesses the properties in the Class to go through the if statements for each of the 3 classes(one is int, another is double, and 3rd is string).

The output is supposed to look like:

House 1. Rooms: #  , Price: $# , Address: 1 asdlfkj.  

and it is supposed to loop 4 times for 4 different dwellings.

I have it working, but the inputs basically don't access the properties in the class at all.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List