Results 1 to 3 of 3

Thread: C

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date: May:2013
    Location: Bulgaria
    Posts: 1

    Question C

    ! , :
    Code:
    typedef struct
    {
        int id;
        char* text;
        int correct_answer;
        char* date;
        char* author;
        int difficulty;
        struct Question* next;
        char** answer;
    } Question;
    ( id, , 4 ..). - text . enter, , 4- .

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    - fgets().
    - char* answer[4]; , ..

    Code:
    Question q;
    
    q.answer[0] = (char*) malloc(...)
    q.answer[1] = (char*) malloc(...) ..
    .
    malloc, - char answer[4][256], (255 ), .
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    Registered User
    Join Date: Nov:2005
    Location:
    Posts: 3,317
    scanf .

Posting Permissions

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

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |