C++ Looping Problem

closed account (z8RDizwU)
Our instructor gave me this problems
1. Create a program that will display the ff. pattern from
-5, 1, 1-5, 2,.....20

2. Make a program that will display the sum, difference, product, quotient & average of the 3 numbers. Consider (1,2 &3) as the 3 numbers.


Any tips on making a FOR loop code? I am using Microsoft Visual C++ 6.0

Thanks in Advance :))
Get a newer compiler. Preferably one newer than 16 years.
closed account (z8RDizwU)
We are asked to make the program in MS Visual C++.6.0 :/
Drop the class.
I gave similar advice to someone here:

http://www.cplusplus.com/forum/general/141544/#msg747513

Copy/paste:

I wrote:
IMO you should consider dropping this class and sending a note to the school board about the curriculum. You're not going to learn anything worthwhile with a 15+ year old compiler. The only thing you're going to learn is how to write broken code that won't work in the real world.

EDIT:

I'm overstating that. Let me correct myself. I recommend the following:

1) Definitely send a note to the school board about the outdated curriculum. Teaching Turbo C++ in 2014 is completely unacceptable.

2) If you can find another programming course that is more modern... even if it is something other than C++ (like a Java class or something), take it, and drop your current class.

3) If there are no other classes available.. that's a bummer. Whether or not you want to stick it out is your decision. You will learn some useful things, but you'll also learn a bunch of really bad things that you will eventually have to 'unlearn'.
Topic archived. No new replies allowed.