Search:

Type: Posts; User: jstrahn

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    8,110

    I don't think it's very elegant but this is what...

    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
  2. Replies
    3
    Views
    8,110

    Remove duplicate strings from char array

    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...
  3. Thanks again guys. Can't believe I let something...

    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...
  4. Thank you for the pointer. I previously had it...

    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.
    ...
  5. I feel so dumb. For some reason I had in my head...

    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...
  6. Reading values from file to first 2 columns of 2d array, assigning 0 to 3rd column

    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...
Results 1 to 6 of 6