Thread: Some errors in my Program

  1. #1
    Registered User
    Join Date
    Mar 2014
    Posts
    20

    Some errors in my Program

    Hey guys, I have spent two weeks writing this program and now I have finally completed it. Only a few errors come up when I compile it so I feel as if hopefully one those are fixed more don't appear. I have attached my file since I am not at my home computer so I cant not open it on this computer. I have tried to fix what it tells me to but I must be misunderstanding it! Let me know what you think guys and if you see something that will cause errors while compiling I would appreciate if you say something. Thanks guys for a new programmer I feel like this is a good program but just needs a tweak. Thanks for looking at this! Ps. This was created in Microsoft Visual Studio! 2010 I believe
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    Nov 2012
    Posts
    1,393
    If you need help you could do the following things to elicit some specific help from the board visitors:

    1. It is better to post the code in code tags in the message, so everyone can read it without downloading files.
    2. Say exactly what result you got when you tried to compile it: what is the error and what line caused that error.

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    4,513
    I have spent two weeks writing this program and now I have finally completed it. Only a few errors come up when I compile it so I feel as if hopefully one those are fixed more don't appear.
    Based on your description, it sounds like you wrote a bunch of code without compiling and testing along the way - but instead, waited for the code to be "complete" before compiling.

    Before you even start writing code, you need to make sure of the following:

    - You completely understand the problem you're trying to solve
    - You have the basic logic flow planned ahead of time, on paper (notes, flowcharts, etc)

    This is especially important for new programmers attempting to write programs of of relative sophistication.

    When you completely understand the problem you need to solve, you should start breaking that problem down into smaller "sub-problems". Keep doing this until each "sub-problem" is easily solvable on its own. Then start solving them one at a time. Write a few lines of code, compile, and test. Make sure what you have so far works. When that looks good, write a few more lines of code, compile, test. Build up your program gradually and methodically, testing and correcting as it grows.

    Oh, wait - let me stop here. I already went over this with you...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The last few errors in my first program!
    By krazymanrebirth in forum C Programming
    Replies: 23
    Last Post: 09-15-2009, 12:02 PM
  2. Errors in Dev-C++ program
    By sinking2008 in forum C Programming
    Replies: 5
    Last Post: 05-15-2008, 09:00 AM
  3. errors in c program
    By akshara.sinha in forum C Programming
    Replies: 1
    Last Post: 12-22-2007, 06:15 PM
  4. Errors in my program
    By gjack72 in forum C++ Programming
    Replies: 3
    Last Post: 11-17-2005, 02:45 PM
  5. Errors with program
    By nizbit in forum C Programming
    Replies: 37
    Last Post: 12-19-2004, 09:56 PM