如何在程序中将三个人的姓名和地址存储到三维数组a [3] [20] [50]中 [英] how to store name and address of three persons into an three dimensional array a[3][20][50] in a program

查看:56
本文介绍了如何在程序中将三个人的姓名和地址存储到三维数组a [3] [20] [50]中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

二维只能工作,我们只能存储名称,以便存储两者.

two dimensional its working only we can store name only in order to store both is there any possibility

推荐答案

创建一个结构来实现这一目的.
create a structure to achieve this.
struct person {
   int id;
   varchar name;
   varchar address;
}



然后创建一个结构数组.



then create a array of structure.


请通过以下链接:

http://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/aa288453 (v = vs.71).aspx [
Please go through following link:

http://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx[^]
http://msdn.microsoft.com/en-us/library/2yd9wwz4.aspx[^]
http://msdn.microsoft.com/en-us/library/aa288453(v=vs.71).aspx[^]

Thanks,
Ambesha


这篇关于如何在程序中将三个人的姓名和地址存储到三维数组a [3] [20] [50]中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆