I received emails like this almost every semester.
Subject: Lab 1: Complex Type
To: frank.lin@sjsu.edu
Professor,
Attached is my code with my output text. I am wondering why my code cannot handle the dummy line.
Although it skips over it, it enters the previous number before twice.
Please see attachment and help guide me to a better understanding as to why this is happening.
-----------------
Let's explore what I need to do to help this student.
download the attachment (usually a zip file with many things in there).
unzip
create or import the project
compile and run, if platforms are different, I may have to adapt the code to my MacBook.
<< then, I will be able to understand what the sender is talking about >>
Guess what, in the spirit of "making it easy for people to help you", I would recommend a different approach to ask debugging questions:
If you have no clue about what's wrong, then ask "how shall I debug it?" It is a much better question than "tell me what's wrong". It is the asking for fish versus how to fish thing.
If you're much further beyond it, then try to
Describe your algorithm in words (versus just give people the code).
Describe what works.
Then, describe what's not working.
Describe what you have done to narrow the problem, e.g. I did a breakpoint after each input, single step through the code and verify the algorithm is indeed correct.
If code is needed, only the section in question is posted.
If you have done these preparation work, a knowledgable person (there are many in our class) probably can give you some opinion right off the bat. That's what you are looking for, right? A side note: send the technical email to the discussion group will have better response.