I would like that case 1: should display how many elements do i want, and that i can assign values to those elements. Mine because of the j++ goes infinite, so i can enter infinite values to infinite arrays.
How could i do this?
Cate elemente vrei sa adaugi: 3
Elementul[1] = 2
Elementul[2] = 2314
Elementul[3] = 635643
after entering the third value, it should display the sum(i can do that, but i`m having difficulties making the inputs from the "cin")
while (loop == 1)
{
cout << "1. Adaugare" << endl;
cout << "2. Multiplicare" << endl;
cout << "3. Impartire" << endl;
cout << "4. Modulo" << endl;
cout << "5. TVA" << endl << endl;
cout << "Alege 1-5 (9 to exit): ";
cin >> enter;
switch(enter)
{
case 1:
cout << "Cate elemente vrei sa adaugi: ";
cin >> elements;
for ( j=1; j<=i; j++)
{
cout << "Elementul [" << j << "]=";
cin >> elements_added;
i++;
a[i] = elements_added;
}
break;