I am trying to run through an array and its dimensions are being created as the program runs. I want to run specific elements of the array as array[0,columns/2], then array[1,columns/4] and array[1,columns*3/4], then array[2,columns*1/8],array[2,columns*3/8], etc Forgive for my poor english.
main()
{
cout << "This is the game that is called: Remove the prelast nucleotide of the second sequence and win!";
cout << endl;
int n;.
int step = 2;
bool checking1;
do
{
cout << "Please select the maximum of the first sequence (n): ";
checking1 = true;
if (!(cin >> n)||(n > 8)||(n <= 0))
{
cout << endl;
cout << "The maximum of the sequence (n) must be an integer (not char) between 8 and 1!";
cin.clear();
cin.ignore(100000, '\n');
checking1 = false;
cout << endl;
}
}while (checking1 == false);
int m;
bool checking2;
do
{
cout << "Please select the maximum of the second sequence (m): ";
checking2 = true;
if (!(cin >> m)||(m >= n)||(m <= 0))
{
cout << endl;
cout << "The maximum of the sequence (m) must be an integer (not char) between "<< n-1<< " and 1!";
cin.clear();
cin.ignore(100000, '\n');
checking2 = false;
cout << endl;
}