Thread: while(!feof(f))...

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2005
    Location
    Austria
    Posts
    1,990
    Code:
        fscanf(f,"%c",fitxer[i].cTipus);
        fscanf(f,"%d", fitxer[i].nCasella);
    fscanf expects the address of the varibles to read.
    Kurt

  2. #2
    Registered User catasturslykid's Avatar
    Join Date
    Jul 2013
    Location
    Barcelona, Spain
    Posts
    72
    Quote Originally Posted by ZuK View Post
    Code:
        fscanf(f,"%c",fitxer[i].cTipus);
        fscanf(f,"%d", fitxer[i].nCasella);
    fscanf expects the address of the varibles to read.
    Kurt
    That was the error. Thank you so much!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. while(!feof)
    By mconflict in forum C Programming
    Replies: 12
    Last Post: 04-02-2012, 12:30 PM
  2. HELP: feof
    By dlf723 in forum C Programming
    Replies: 5
    Last Post: 07-23-2010, 08:49 AM
  3. feof() from FAQ
    By salvadoravi in forum C Programming
    Replies: 6
    Last Post: 01-25-2008, 01:08 PM
  4. feof()
    By XSquared in forum C Programming
    Replies: 2
    Last Post: 06-02-2004, 12:16 AM
  5. feof ....EOF
    By GanglyLamb in forum C Programming
    Replies: 12
    Last Post: 12-04-2002, 12:38 PM