本文介绍了如何声明用于电影院座位预订的多维数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请在Visual Basic.Net中获得有关多维数组的帮助.如何声明多个元素(如电影院中的座位)的数组.座位上有数字.座位将排成4排5列.座位将由客户保留.我需要窗口形式.
我尝试弄清楚如何声明矩阵,但仍然失败.
例如:
将座位数(4,5)设为整数''声明座位号
输出将采用以下格式:

座位A:空缺
座位B:空缺
C座:保留
座位A:空缺
B座位空缺
座位C空缺
保留座位
座位B已预订
空位C
座位空缺
座位B空缺
座位C已预订
我只需要声明它们.
非常感谢

Please I need help on multidimensional Array in visual basic.Net. How to declare array for multiple elements such seats in a cinema. the seats has numbers on them. the seats will be in 4 rows and 5 colunms. The seats are to be reserved by clients. I need in window form.
I try to figure our how to declare the matrix but I keep failing.
for instance:
Dim seats(4, 5) as integer ''declaring seat number
the out put will be in this format:

seat A: vacant
seat B: vacant
seat C: reserved
seat A: Vacant
seat B vacant
seat C Vacant
Seat A rserved
Seat B reserved
Seat C vacant
Seat A vacant
Seat B vacant
Seat C reserved
I only need the declaration of these.
Thanks alot

推荐答案



这篇关于如何声明用于电影院座位预订的多维数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 10:18