我正在制定一项方案,收集“游艇驾驶”的结果。 该方案将促使用户在1到4之间拥有一个房间号码,然后促使用户了解每个房间收集的瓶子数量。 用户应当选择“公平”类型,显示每个房间和所收集的瓶子数量。
Here is my code right now, I am having difficulty expanding the program to support multiple rooms.
namespace BottleDrive
{
class Program
{
static void Main(string[] args)
{
int roomNumber;
int numberOfBottles;
char quit;
Console.WriteLine("Enter the Room number you are in.");
string roomSelect = "";
roomSelect = Console.ReadLine();
roomSelect = int.Parse(roomSelect);
if (roomSelect >= 1)
{
Console.WriteLine("Enter the number of bottles collected by room one");
string room1Bottles = "0";
room1Bottles = Console.ReadLine();
int room1 = int.Parse(room1Bottles);
if (room1 == 1)
{
room1Bottles += room1;
Console.WriteLine("Room one has " + room1 + " many bottles collected");
}
}
if (Console.ReadLine() = quit)
{
Console.WriteLine("Room one has collected:" + room1Bottles + "
Room two has collected:" + room2Bottles + "Press space to quit");
string systemExit = "";
if (Console.ReadLine = "")
{
systemExit(0);
}
}