#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    I need help for struct function


    hi
    i have a problem
    Code:
    struct mf_type{ char name[MAXNAME]; 
    int value; 
    int point1; 
    int point2; 
    int slope1; 
    int slope2; 
    struct mf_type *next; }G_small,G_means;
    i don't have all of the values

    one of them in variation and comes from the inputs
    but other are fixed!

    how can i write

    Code:
    struct mf_type G_small {
    :confused:
  2. #2
  3. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Location
    India
    Posts
    95
    Rep Power
    4
    try like this.

    struct mf_type G_small={
    .value=1,
    .slope1=2,
    };
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    May 2004
    Posts
    3,417
    Rep Power
    887
    How can you write what? You'll have to ask a more specific question than that if you want any useful assistance.
    I no longer wish to be associated with this site.

IMN logo majestic logo threadwatch logo seochat tools logo