I have to store following datas in virtual database in c using multi-dimensional arrays. I have database in text file like something like following =================================== | ID | name | address | dsday | fdfsr | x212 Boew asdfad asdffd sfd 2a23 adfas asdfas dsdssd dd 3J32 sdfas asddfd sdfsfdf asd 232c asdfa asdsdd dswew dsd a323 sdffa dsddsd weegw dsf 382f wees sdasdf sdfeas sdf =================================== I dont know what is going wrong, please write how to use multi-dimensional array to store such database. or is there anyother way to store this data in c?
"please write how to use multi-dimensional array to store such database" If its homework i can't help but I can give you some pointers how to read a textfile and store it in an 2d/3d array and output the array on screen. Anyway, if you do a google search i'm sure you will get some results.
Sorry I'm not familiar with c. but you can something like this in java. String [][] x = new String [5][5]; x[0][0] = x212; x[0][1] = aaa; etc... But hope this will help: http://www.eng.iastate.edu/efmd/cmultarray.html