WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Iterating through arrays | Loop and Break

Iterating through arrays

Any loop can be used to iterate through the array elements. Example :

Example

#include <iostream>
#include <iomanip> // for setw

using namespace std;
int main() 
{
	int n[10]; // n is an array of 10 integers
	// initialize elements of array n to 0
	for (int i = 0; i < 10; i++)
		n[i] = 0; // set element at location i to 0
	cout << "Element" << setw(13) << "Value" << endl;
	// output each array element's value
	for (int j = 0; j < 10; j++)
		cout << setw(7) << j << setw(13) << n[j] << endl;
		
	getchar();

	return 0;
}

Output

Element        Value
      0            0
      1            0
      2            0
      3            0
      4            0
      5            0
      6            0
      7            0
      8            0
      9            0
Share

You may also like...