I have made a program in C++ which does not accept the value of a an enumeration variable defined within a structure, when I pass the structure into a function.
It does not even accept the value YES or NO in the main function.

Help me out please. :)

Code:
#include <iostream>
using namespace std;

struct student
{
	char name[20];
	int age;
	enum {YES,NO}
...