If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Please Help, Very Simple Code, Newbie, Really Frustrated

There's a simple program developing technique called Stepwise Refinement. Use it and you'll get this to work in no time. All programming will be so much easier.

The idea is that you start with a small working program. Then you expand it little by little in small working steps. Eventually you'll have a big working program. It's a top-down method so you start with the overall scaffolding and then you add details successively. But remember, never continue if it doesn't work. It should work from start to finish.

So start over with a clean sheet and apply Stepwise Refinement. You won't need a debugger because the program will be correct all the time.

Re: Please Help, Very Simple Code, Newbie, Really Frustrated

I am using Turbo C++ , the ancient one as that is only taught to us in school.....
I do not know how to use a debugger for TC++.
Please post a link teaching its use as well.....

Doesn't the TC++ menu have a "Debug" option? If so, then there is very little to learn. It should be practically self-explanatory as to what it does and how to use it. Just keep pressing the "Step" or whatever command the debugger uses, and you will see what is happening.

But overall, the TC++ compiler should not really be used to learn C++ programming in this day and age. So many things that you're writing now will not compile with an ANSI C++ compiler, starting with the "cout" statements and the lack of any reference to the namespace std.