English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm taking an independent study course on C++ programming through my college. So far I've created a mean and standard deviation program, a linear regression program, and a few other much simpler programs. I am now working on a program to add up to 12 vectors together, and am having a lot of trouble with it. If anyone could help me find an example C++ vector addition program to use as a template, it would be greatly appretiated. Thanks a lot.

2006-11-08 05:51:29 · 2 answers · asked by Inferno13 6 in Science & Mathematics Engineering

2 answers

I assume you are using standarrd template classes ?
have a look here :

http://www.mochima.com/tutorials/STL.html#Containers_and_Iterators

( btw I dont recommand atl as part of an introductionary copurse in c++ it is a difficult syutax)

2006-11-08 06:48:08 · answer #1 · answered by ramesh the great 1 · 0 0

This is a good reference site:
http://www.cplusplus.com/main.html

You almost certainly want to use a structure or class. The exercise that you're doing is a very standard application that screams for use of those parts of the language.

2006-11-08 13:59:53 · answer #2 · answered by modulo_function 7 · 0 0

fedest.com, questions and answers