Untitled

 avatar
user_7248805
plain_text
2 years ago
533 B
4
Indexable
#include <iostream>
using namespace std;
struct gnom
{
	char pol;
	int age;
	int height;
};

int main()
{
	gnom malorostoc;
	malorostoc.age = 5;
	malorostoc.height = 2;
	malorostoc.pol = 'm';
	gnom mmalorostoc;
	mmalorostoc.age = 4;
	mmalorostoc.height = 1;
	mmalorostoc.pol = 'w';
	gnom polurostock;
	polurostock.height = 3;
	polurostock.pol = 'w';

	int fem = 0;
	if (malorostoc.pol == 'w') fem++;
	if (mmalorostoc.pol == 'w') fem++;
	if (polurostock.pol == 'w') fem++;
	else cout << "patriarxat";


}
Editor is loading...