about scanf

This is a discussion on about scanf within the C Programming forums, part of the General Programming Boards category; does anyone know what this + sign is for in here, what it does? Code: fscanf(fin,"%3d%f+%4d%d%*f",&n,&x,&i,&j);...

  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    84

    about scanf

    does anyone know what this + sign is for in here, what it does?


    Code:
     fscanf(fin,"%3d%f+%4d%d%*f",&n,&x,&i,&j);

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    there is probaby a + sign in the data file. fscanf() will just ignore it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. scanf() consideres useless
    By Snafuist in forum C Programming
    Replies: 15
    Last Post: 02-18-2009, 07:35 AM
  2. Help with a basic scanf procedure.
    By killpoppop in forum C Programming
    Replies: 9
    Last Post: 11-03-2008, 03:39 PM
  3. scanf issue
    By fkheng in forum C Programming
    Replies: 6
    Last Post: 06-20-2003, 07:28 AM
  4. Scanf and integer...
    By penny in forum C Programming
    Replies: 3
    Last Post: 04-24-2003, 06:36 AM
  5. scanf - data is "put back" - screws up next scanf
    By voltson in forum C Programming
    Replies: 10
    Last Post: 10-14-2002, 04:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21