Project compiling, but not executing correctly

This is a discussion on Project compiling, but not executing correctly within the C++ Programming forums, part of the General Programming Boards category; Hi, I asked you guys earlier how to change ascii to integer, and you guys helped tremendously. I finished my ...

  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    4

    Project compiling, but not executing correctly

    Hi, I asked you guys earlier how to change ascii to integer, and you guys helped tremendously.

    I finished my file, but it is giving me seriously strange output.

    I was wondering if someone could look it over and see what might be wrong.

    http://pages.prodigy.net/lecaswell/_...rjectFINAL.cpp the code
    http://pages.prodigy.net/lecaswell/_images/project1.dat the data file I'm reading from

    Any help would be much appreciated.

    Basically, I need to read in the name, the age, and each hole of a golf course. It reads the name ok, but the age and scores go crazy.

  2. #2
    Slave MadCow257's Avatar
    Join Date
    Jan 2005
    Posts
    735
    I don't have time to figure out what the problem is right now (time to go to school), but I noticed that your code didnt compile. (25 errors) The problem can be fixed by removing the .h from #include <fstream.h>; also, the first library you included was uneeded.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HELP! 1st Project!
    By Zionstorm in forum C++ Programming
    Replies: 3
    Last Post: 09-15-2008, 09:36 AM
  2. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  3. Project details: Dedicated
    By Stack Overflow in forum Projects and Job Recruitment
    Replies: 9
    Last Post: 02-22-2005, 02:10 PM
  4. Another question on classes
    By hpy_gilmore8 in forum C++ Programming
    Replies: 26
    Last Post: 05-24-2003, 09:11 AM
  5. help with project using classes
    By DoItAllMom115 in forum C++ Programming
    Replies: 7
    Last Post: 04-30-2003, 10:27 PM

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