urgent : take int from char (c programming)

Discussion in 'Programming' started by adscience, Mar 3, 2007.

  1. #1
    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?
     
    adscience, Mar 3, 2007 IP
  2. adscience

    adscience Peon

    Messages:
    128
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    be sure it will be in c not c++
     
    adscience, Mar 3, 2007 IP
  3. Arkserver

    Arkserver Banned

    Messages:
    2,533
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    "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.
     
    Arkserver, Mar 4, 2007 IP
  4. nvidura

    nvidura Well-Known Member

    Messages:
    1,780
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    150
    #4
    nvidura, Mar 11, 2007 IP