Search:

Type: Posts; User: shibby

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    2,173

    Reading thru it now /* test and remove...

    Reading thru it now




    /* test and remove newline character */
    if ((l = strchr(storage[linesRead], '\n')) != NULL)
    *l = '\0';
  2. Replies
    13
    Views
    2,173

    Ah right so there could be a \n which is causing...

    Ah right so there could be a \n which is causing the problem.

    Will fiddle about and see what i get can get done.
  3. Replies
    13
    Views
    2,173

    Basicly even thou my file says the word red and...

    Basicly even thou my file says the word red and my const pointers say red they are not the same.

    For example if i compared my arrBandsFile[0] (which holds the word red) to my const pointer which...
  4. Replies
    13
    Views
    2,173

    no one :'(

    no one :'(
  5. Replies
    13
    Views
    2,173

    The fgets worked a treat Thanks!!! but one...

    The fgets worked a treat Thanks!!!
    but one slight problem which is now hopefully the last.
    Basicly the user has 2 choices, they can enter in the colours themselves via a menu or a list they have...
  6. Replies
    13
    Views
    2,173

    Ok new problem When it loops to add each line...

    Ok new problem

    When it loops to add each line to the var and then to the array, It does it character by character, i need each line to have its own place in the array.

    BandsFileArr[0]r...
  7. Replies
    13
    Views
    2,173

    LOL How can I be so stupid? And how can you...

    LOL
    How can I be so stupid? And how can you people put up with someone like me.

    many thanks!!!

    I will probley run to some little problems later, but I'll be sure to carry on using this thread.
  8. Replies
    13
    Views
    2,173

    Grab from file to array problems

    **EDIT**

    New help needed please see below


    Please be gently i'm still struggling to get to grips with C

    Basicly i want to read from my file.
    I put the first line as the Resis
    Second line...
  9. Replies
    3
    Views
    3,568

    Thanks Guys. No idea why i didn't think of...

    Thanks Guys.

    No idea why i didn't think of this before.

    Silly me.

    But thanks again.
  10. Replies
    3
    Views
    3,568

    Nearest value in array

    Hi

    Say I have a 2D array with some data
    that holds a resistance and what temperature that result gives.

    Now I do a a calculation that gives me a resistance. But in my array i have not got that...
Results 1 to 10 of 10