Sorry,
Current code is:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
Type: Posts; User: Sarah87
Sorry,
Current code is:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
I understand what you mean, about how they won't match, because of the number there, but how do I go about fixing that? I continue using strcmp? What do I add to it? Sorry, I'm very confused now :(
In an earlier post, I was told to replace what I had in my original code with a strcmp, which I did, and now you're telling me not to use the strcmp - I'm getting conflicting responses here...
That did the trick as far as letting me input text into command. But after I input text, eg Command: "I 6" ... nothing happens, I hit enter and it just stops. According to my program, I should be...
Ok, thanks for the suggestions to fix my program.
Initialising i=0 solved the send/don't send error.
I was particularly silly not to use the strcpy function, so thanks for pointing that out to me!...
Hi there,
I'm having some problems with my latest programming attempt.
----------------------------------------------------------------------------------------------------------------
So you...
Thanks for the help with those Adak, I was quite lost there. At last my program is finished and working perfectly! =D A BIG BIG thanks to all those who helped (you know who you are) I really do...
Ok, I'm a little lost as to what to do next. Basically, I can now run my program - It comes up with the original board, asking me to play. I hit 'y' and it makes a new board with the wrong pattern...
Excellent! That did the trick, thank you! Now the program actually runs, asks me to play, after I enter 'y' - it creates another board, then stops =/ But progress at last. I'll have a go at fixing...
Wow, progress (kinda) at last... I now have far less errors.
Here is my new code:
#include <stdio.h>
#include <string.h>
void display_fctn (char b1[][21], char b2[][21]);
Actually, if you want me to be honest... I posted the problem in 2 discussion groups, so that I could get a range of responses in utter urgency of handing this assignment in (yes, it's already late)...
Hey guys, =) First year programing student here
I'm having some trouble running a program I have written for the C Program "Conway's Life"
Some help fixing my errors would be HUGELY appreciated....