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

friend classes in c++ | Loop and Break

friend classes in c++

A friend class in C++, can access the private.protected and public members of the class in which it is declared as a friend. On declaration of friend class all member function of the friend class become friends of the class in which the friend class was declared. Friend status is not inherited; every friendship has to be explicitly declared.

Example

#include <iostream>

class B
{
	// B declares A as a friend...
	friend class A;

private:
	void privatePrint()
	{
		std::cout << "firend classes" << std::endl;
	}
};

class A
{
public:
	A()
	{
		B b;
		// ... and A now has access to B's private members
		b.privatePrint();
	}
};

int main()
{
	A a;
	getchar();
	return 0;
}
Share

You may also like...