Search:

Type: Posts; User: katipo

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    2,498

    Many thanks brewbuck, I assumed there would be...

    Many thanks brewbuck,

    I assumed there would be a simple solution to this
  2. Replies
    2
    Views
    2,498

    Counting array elements

    Hi all,

    I'm trying to further my knowledge of C by linking some of my class work together so I get a better understanding of building more complete programs.

    At the moment I've got two small...
  3. Replies
    17
    Views
    2,383

    Thanks again Adak, I won't use your code for my...

    Thanks again Adak, I won't use your code for my work (it's for a school project - and I've now got it 90% completed) but I'll def. have a play with it at home and get my head around it

    Cheers...
  4. Replies
    17
    Views
    2,383

    Ok I worked out the problem, I don't need the...

    Ok I worked out the problem, I don't need the single speech marks around the case '1':
  5. Replies
    17
    Views
    2,383

    I think I'll go for MK27's solution - It's the...

    I think I'll go for MK27's solution - It's the only one I completly understand at the moment :)

    Edit:

    Ok I've made a start with the following code:


    {
    while (fscanf(rawdat, "%c %d %d...
  6. Replies
    17
    Views
    2,383

    I've included all my code so far, I started out...

    I've included all my code so far, I started out setting out my field then when that was looking fine commenting it out. You've lost me Adak, I think I've seen working on this too long without coffee,...
  7. Replies
    17
    Views
    2,383

    Hi itCbitC, Thanks for you reply, I had to...

    Hi itCbitC,

    Thanks for you reply, I had to google "linked list of nodes" as it was beyond the scope of the course work I am using. I couldn't find any decent tutorials on how to go about this. Do...
  8. Replies
    17
    Views
    2,383

    Trimming the fat out of my code for an Array

    Hi all,

    The problem I have got is a file which has a set of date like this:

    F 26 5
    F 64 4
    F 29 2
    M 12 3
    M 40 1
    F 38 4
  9. Replies
    3
    Views
    1,176

    Thanks Adak, I altered the line: while...

    Thanks Adak,

    I altered the line:

    while (fscanf(rawdat, "%c %d %d", &sex, &age, &range) != EOF)

    to:

    while (fscanf(rawdat, "%c %d %d &c", &sex, &age, &range, &newline) != EOF)
  10. Replies
    3
    Views
    1,176

    removing/ignoring carrage returns from a file

    Hi all,

    I'm trying to pull data from a .dat file which is arranged like this:

    F 26 5
    F 64 4
    F 29 2
    M 12 3
    M 40 1
Results 1 to 10 of 10