Thread: program problem

  1. #1
    Registered User
    Join Date
    Feb 2002

    program problem

    Hi all
    Im having a problem with writing a file.
    In 504571p3 the file 504571NF is output for use in 504571p4,
    But when I run 504571p4 with the file the program halts.
    If p4 is run with custmast.dat then I get the desired results.
    What is wrong with the way Im writing 504571NF. As this is not the same as custmast.dat
    The programs and relative files needed are attached.
    any help much appreciated

  2. #2
    Registered User Zeeshan's Avatar
    Join Date
    Oct 2001
    London, United Kingdom
    Maybe giving ONLY the relevant code-bit would be better ? Most people don't have time to actually download you whole stuff, and check out every possible cause of error.

  3. #3
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Bangalore, India
    That's right Zeeshan. Also, Our company has a firewall here, so no downloads allowed here. Probably, more people have more such problems, so it's better you paste the code.

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Just a note on getting help:

    1) Don't post links, most of us will just pass the question by if we have to do more than copy/paste code into our compilers and compile it.

    2) Break your code down to the bare minimum so that the problem can be found more easily. We don't like sifting through 5000 lines of nonsense just to find one spot where you dereference a null pointer. More often than not, this breaking down of the code will reveal the problem to you and you don't even have to ask your question.

    3) If the problem is a run-time error or anything to do with occurances when the program is running, and the code you post doesn't compile, don't expect many responses. I personally will fly through the threads quickly, marking each one for further viewing and threads with code that doesn't compile or uses header files that weren't posted as well is high on my list of things to be ignored. If the problem is a compile error or warning then this isn't a problem.

    4) Please, for your own sake, research your question thoroughly before posting it to us. We don't hesitate to flame you a little bit for asking a question that is a) Answered in the FAQ, b) Was already answered recently, c) Can be found easily with a web search, d) Can be found in any book, and most importantly e) Is completely off topic for the forum the question is posted in (ie. asking a C++ question in the C forum).

    My best code is written with the delete key.

  5. #5
    Registered User
    Join Date
    Feb 2002
    Thx for the tips prelude.

    In breaking down to paste I have I think stumbled across the possible cause of the problem.

    The program now runs as should and writes the file in the correct format.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multi Thread Program Problem
    By ZNez in forum C Programming
    Replies: 1
    Last Post: 01-03-2009, 11:10 AM
  2. Program Termination Problem
    By dacbo in forum C Programming
    Replies: 3
    Last Post: 01-23-2006, 02:34 AM
  3. Inheritance and Dynamic Memory Program Problem
    By goron350 in forum C++ Programming
    Replies: 1
    Last Post: 07-02-2005, 02:38 PM
  4. Replies: 20
    Last Post: 06-12-2005, 11:53 PM