thanks, i got it to work.
Type: Posts; User: Pat010101
thanks, i got it to work.
Here:
#include <iostream>
#include <stdlib.h>
#include <string.h>
#define maxWord 3
int main(int argc, char *argv[])
{
I added this:
char tmp[10];
It had not affect, i still couldnt use chocie 1.
yes.
I tried making
[/color]* word[2];
into
[/color]* word[3];
But the program crashed when i tried it.
I tried doing [/color]* word[maxword];
but it also crashed.
I thought it was working. Now 2 and 3 work but choice #1 doesnt:
#include <iostream>
#include <stdlib.h>
#include <string.h>
#define maxWord 3
int main(int argc, char *argv[])
thanks
1 last question, i tried going over 2 possible choices and the third one didnt work.
#include <iostream>
#include <stdlib.h>
#include <string.h>
#define maxWord 1
actually, i just put those there because after i put in 1 or 2, it would say "press any key to exit" I just did that for the time being until i looped it back to the start.
Thank you! I got it to work correctly
I tried this but it came up the same :
#include <iostream>
#include <stdlib.h>
#include <string.h>
#define maxWord 1
int main(int argc, char *argv[])
{
char* word[2];
Hi,
when I choose the first choice in this program, "1"
it will come up with nothing. If I put in the second choice "2" it gives the defonition. How can i get it so It will do all choices, not...