I don't think it's very elegant but this is what I came up with that eventually worked:
#include <stdio.h>
#include <string.h>
#define NUMSTR 10
#define STRLNG 9
Type: Posts; User: jstrahn
I don't think it's very elegant but this is what I came up with that eventually worked:
#include <stdio.h>
#include <string.h>
#define NUMSTR 10
#define STRLNG 9
Hi guys,
Hoping someone can get me pointed in the right direction. I've tried a million different things and worked on this for hours.
The goal is to merge two files of names, sort them and...
Thanks again guys. Can't believe I let something so small hold me up for so long. Here's my finished code that prints an array with minimum temperature, maximum temperature and average temperature...
Thank you for the pointer. I previously had it that way and then changed it to the actual numerical values to try to make it easier to understand in my head when I was troubleshooting the problem.
...
I feel so dumb. For some reason I had in my head that by defining is as temp[31][2], that meant the columns would be 0, 1 and 2. Rather than 2 columns. I changed
int temp[31][3] = {0}
and it...
Hi guys,
Hoping someone can clarify where I am in error. I am attempting to read values from a file into a 2d array temp[31][2] (31 rows, 3 columns)
I only want the values from the file to be...