Need help with this programme

This is a discussion on Need help with this programme within the C++ Programming forums, part of the General Programming Boards category; I just started programming in C and I'm having a problem with this excersise. Please reply if you have any ...

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    1

    Need help with this programme

    I just started programming in C and I'm having a problem with this excersise. Please reply if you have any suggested solutions.

    N.B
    The text file is attached.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,317
    Welcome to the boards. If you haven't already done so then please take some time to familiarise yourself with the faq:
    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

    Make sure you have a look at the the posting guidelines:
    http://cboard.cprogramming.com/annou...ouncementid=51
    Following the rules will ensure you get a prompt answer to your question.

    Remember, too, that the board has a search facility, a link is at the top of your screen:
    http://cboard.cprogramming.com/search.php
    It will often get you a quicker answer to your questions than waiting for a response to one you have posted.


    If you have any questions about this you may ask or you can contact one of our forum leaders:
    http://cboard.cprogramming.com/showgroups.php

    -----------------------------------------

    If your program really is in C, it should probably go in the C sub-forum. As is noted in the homework announcement make sure you show some effort. For example, what are your thoughts on how to solve these problems? Have you started on any of them? What have you tried?

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Not a good sign when there's an error on the first page:
    Code:
    fscanf(fptr,%19s %lf %39[^\n]”, fuel,&amount,description);
    There's a missing ".

    [edit] It seems like you have posted this question elsewhere: http://www.codeguru.com/forum/showthread.php?t=424250 [/edit]
    Last edited by dwks; 05-24-2007 at 12:18 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Closing a programme with cin.get
    By Dontgiveup in forum C++ Programming
    Replies: 2
    Last Post: 03-14-2009, 02:35 PM
  2. How to view the programme before it disappears
    By yousuf in forum C Programming
    Replies: 2
    Last Post: 03-22-2008, 08:12 AM
  3. Replies: 3
    Last Post: 05-13-2007, 08:55 AM
  4. Gui Programme does'nt Compiles from DOS
    By Shadowhunt in forum C++ Programming
    Replies: 1
    Last Post: 06-06-2003, 08:05 AM
  5. Simple C++ GUI programme does'nt run from dos
    By Shadowhunt in forum C++ Programming
    Replies: 4
    Last Post: 05-31-2003, 05:30 AM

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