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 ...
Type: Posts; User: barrie
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 ...
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...
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..
@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...
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...
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;
...
i don't quite get this, could you give me an example?
thanks in advance
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...
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];
};
How can i copy the details (from the file);
What is football;A game; A car; A
to this structure?
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...
thanks for your very quick reply, i tried to implement this but it still doesn't seem to work :eek:
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.
...