theory.h
class Theory
{
public:
int read_theory();
int read_text(string);
};
int Theory::read_theory() {
setlocale(LC_ALL, "Russian");
n=2;
count_pages=2;
string **ptrarray = new string*[count_pages];
//then columns
for (int count = 0; count <= count_pages; count++)
ptrarray[count] = new string[10];
read_text(ptrarray,n);
}
system("pause");
return 0;
}
int Theory::read_text(string **ptrarray,int n)
{
cout << ptrarray;
return 0;
}
int read_text(string **arr,int count,int k);
read_text(ptrarray, count_pages, 10);
int Theory::read_text(string **ptrarray,int count,int k)
{
system("cls");
for (int i = 0; i < 10; i++)
{
cout << ptrarray[n][i];
cout << endl;
}
return 0;
}