Search:

Type: Posts; User: Adak

Search: Search took 0.04 seconds.

  1. The data is TELLING you, EXACTLY how many rows of...

    The data is TELLING you, EXACTLY how many rows of data it has - you're just ignoring it, and blithely going ahead with getchar(), etc.

    Why?

    names are strings - not just chars. Digits are...
  2. Your numbers are strictly formatted. Reading them...

    Your numbers are strictly formatted. Reading them in from the file with fscanf() would be normal.

    First, read in the first line, which tells you how many lines of data there are:
    fscanf(pf, "%d",...
Results 1 to 2 of 2