I knew it was going to be something stupid.
Thank you very much for all the help.
Regards,
Niall.
Type: Posts; User: niallheavey
I knew it was going to be something stupid.
Thank you very much for all the help.
Regards,
Niall.
(46) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\niall\documents\college\4th year\2nd semester\ee402\5bit parity code\5bit parity code\source.c(6)' was matched
cool, sorted that.
Just the end of file thing now.
Its quite strange, when I click the error its going right to the top of the code, inside the #include<stdio.h> line.
I'm sure this is just...
Ok, had posted that last one before I realised there was a reply!!!!
Changing bit_array to codeword_array worked for a lot of them, down to 7 errors now.
code is
#include <stdio.h>
#include...
Ok, should it be declared globally? I have done it like this now....
int codeword_array[20];
int i=0;
int bit;
int bit_array[i];
printf("Welcome to the 5-bit parity code...
#include <stdio.h>
#include <string.h>
#include <math.h>
int main()
{
int codeword_array[20];
int i=0;
int bit;
Ok, thats grand thanks,
But still giving the errors that i'm missing ;'s around line 14. Dunno where this is happening though,
Any ideas?
Ok, that got rid of a couple, thanks for that. The next one's are:
(14) : error C2143: syntax error : missing ';' before 'type'
(14) : error C2143: syntax error : missing ';' before 'type'...
(14) : error C2143: syntax error : missing ';' before 'type'
(14) : error C2143: syntax error : missing ';' before 'type'
(14) : error C2143: syntax error : missing ')' before 'type'
(14) : error...
Hi all,
1st time poster.
I have a fairly simple task that I need to carry out, however I am not terribly good at C programming, so bare with me!!!!
Basically I need to take in a string of 15...