Search:

Type: Posts; User: barrie

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    8,037

    This also doesn't seem to work, still the same...

    This also doesn't seem to work, still the same problem.

    Here's my entire code.



    struct vragen { /* setup vraag structure */
    char vraag[MAXVRAAG];
    char antw[MAXANTW];
    char ...
  2. Replies
    7
    Views
    8,037

    i would like to store the whitespace because i...

    i would like to store the whitespace because i want to add a question for a quiz game, like,

    "What is soccer?"

    and do the same for the answers, then i would like to write it to a file, line per...
  3. Replies
    7
    Views
    8,037

    Q: How can you store whitespace in a string?

    Hi all, me again,

    I want to know how you can store whitespace in a string?

    e.g.: "what a beautiful day"

    my code doesn't seem to work..
  4. @citizen: thanks for the tip! i've changed this...

    @citizen: thanks for the tip! i've changed this to


    #define MAXVRAAG 30
    #define VRAGEN_COUNT MAXVRAAG

    like you said.

    But, i've encountered another problem; i can't seem to...
  5. MAXVRAAG is from #define MAXVRAAG 30 and...

    MAXVRAAG is from

    #define MAXVRAAG 30

    and used for the maximum amount of characters in a question (char vraag[MAXVRAAG]).

    I've made another const though, MAX 30, and used MAX for the loop, is...
  6. Thanks vart, this works like a charm! You gave...

    Thanks vart, this works like a charm!
    You gave me the insight, thanks for your time & effort!

    If someone is wondering; I changed my code to:



    struct vragen quiz[100];
    int i;
    ...
  7. i don't quite get this, could you give me an...

    i don't quite get this, could you give me an example?

    thanks in advance
  8. Yes vart i did, when i compile i get these...

    Yes vart i did,

    when i compile i get these errors:



    In function `void spelen()':
    expected primary-expression before '.' token
    expected primary-expression before '.' token
    expected...
  9. well i tried with this but still can't figure it...

    well i tried with this but still can't figure it out.. :



    struct vragen {
    char vraag[MAXVRAAG];
    char antw[MAXANTW];
    char antw1[MAXANTW];
    char keuze[2];
    };
  10. How can i copy the details (from the file); ...

    How can i copy the details (from the file);



    What is football;A game; A car; A


    to this structure?
  11. Need help; stuck with this; read file + compare with user input

    Hi all,

    I'm stuck with another problem.
    I'm trying to make a multiple choice quiz.

    Each question has 2 answers, one of them is the right one (A or B).

    The questions + answers are stored...
  12. thanks for your very quick reply, i tried to...

    thanks for your very quick reply, i tried to implement this but it still doesn't seem to work :eek:
  13. How to store sentences with whitespace into a txt file?

    Hi all,

    I've encountered a problem with my program. I'm trying to make a multiple choice quiz, you're able to add questions & answers to a text file which will be asked when you play the game.
    ...
Results 1 to 13 of 13