I'm trying to pull individual values from an array and put them into text, but keep running into errors with syntax.
#include <iostream>
#include <ostream>
using namespace std;
// PV, PM, FUE, RAP, PRE, SAB, ESP
int luch_bas [7] = {6,3,5,3,2,1,2};
int main ()
{ cout << "Tiene los atributos siguientes: \n";
cout << "Puntos de Vida (PV)... " luch_bas[0] "\n";
cout << "Puntos de Magia (PM)..." luch_bas[1] "\n";
cout << "Fuerza (FUE) ..." luch_bas[2] "\n";
cout << "Rapidez (RAP) ..." luch_bas[3] "\n";
cout << "Precisión (PRE) ..." luch_bas[4] "\n";
cout << "Sabiduría (SAB) ..." luch_bas[5] "\n";
cout << "Espíritu (ESP) ..." luch_bas[6] "\n";
}
The error log I keep getting is "expected ';' before 'luch_bas'", but I'm not exactly sure where the missing ; is supposed to go? I'm sure there's a much better way to code this; I am still learning.