Array Vector Addition

Submitted on: 5/31/2016 10:01:51 PM
By: Sebastian Nava  
Level: Beginner
User Rating: Unrated
Compatibility: Microsoft Visual C++
Views: 14408
     This code shows you how to create an array for a vector addition. The addition of an "A" array and a "B" array which the result shows in a "C" array

				// Suma_Vectores.cpp: define el punto de entrada de la aplicaciÛn de consola.
#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
	float a[5],b[5],c[5];
	int i;
	cout<<"Suma de vectores: Programa que lee Arreglo A, y Arreglo B. Suma los valores y da como resultado Arreglo C"< ";cin>>a[i];
	cout<<"Ingrese otros 5 valores para el segundo vector"< ";
	cout<<"El tercer vector sera la suma de los valores ingresados en los vectores anteriores"< "<

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.