I realise this may be a simple problem but i've really been pulling my hair out at the moment.
I've got a text file, which I need to read each of the 15 characters (numbers and letters) on each line in to a new record in an array (called defarray) - but I can't seem to do it. I've managed to work out the code to read the text file and output each line but not save it into an array.
Text file (fp called = 'definitions') looks like;
I've looked at the sites you've offered but dont seem to be able to make anything with them which suit my requirements.
I may not have explained the problem that well, or perhaps C can't do whats needed as i've extensively looked across the net and not managed to find a function which does what i need.
I've been attempting to read in each line of a text file as a new record in a multidimensional array making a sort of 'string' array. So I can do the same with another file and then compare each line of file 1 to all the lines in file 2.
file 1 file 2
So the program would detect file 2 contains 'AAA' and report it back to the user.
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...