Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Help with C++ programming...?
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.
2 Answers
- 1 decade agoFavorite Answer
I assume you are using standarrd template classes ?
have a look here :
http://www.mochima.com/tutorials/STL.html#Containe...
( btw I dont recommand atl as part of an introductionary copurse in c++ it is a difficult syutax)
- modulo_functionLv 71 decade ago
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.