Find the answer to your Linux question:
Results 1 to 5 of 5
How to create a database using c language it includes structures, pointers,arrays and switch.. please help me masters!...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    2

    create a database using c language


    How to create a database using c language it includes structures, pointers,arrays and switch.. please help me masters!

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Hello and welcome to the forums!

    Homework questions aren't permitted here, but post if you'll post the code that you have so far, someone might be able to help you with that.
    oz

  3. #3
    Just Joined!
    Join Date
    Apr 2011
    Posts
    2
    #include <stdio.h>




    typedef struct {
    char name[51];
    char student_no[16];
    } Student;

    int main(void) {
    Student student1;
    student1.name = "Fagballs";
    student1.student_no = "0120-1213-4423";
    return 0;
    };

    this is the **** ive done.

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined! hunter_thom's Avatar
    Join Date
    Apr 2010
    Posts
    89
    I doubt your professor will appreciate the Student's name.

    There are no pointers. Are you familiar with using pointers? If so then you probably know how to proceed. If not, perhaps this helps:

    The C Book — Pointers

    You can't just write 10 lines of code and expect it to be done, or done for you.

  6. #5
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    I'm gonna jump in here and close this thread. It's obviously a homework assignment, and it sounds like you basically want us to design it for you.

    If you end up having questions on a specific concept and would like some help in understanding it, feel free to ask. But you need to start doing the work on your own first.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •