how can i merge the values of the arrays?
if i get the values of each array in a file.txt and file2.txt
void ReadList()
{
ifstream fin;
fin.open ("1.txt");
for(A=0; A<10; A++)
fin >> Array[A];
fin.close();
ifstream fin2;
fin2.open("2.txt");
for(B=0; B<20; B++)
fin2 >> Array[B];
fin2.close();
N=A+B;
cout << Array[N];
}
in N=A+B.. im not sure.. how?
when I run the program, only the 10 numbers in A appears.. B is not included..