void Answers::operator= ( Answers& cpy ) { num_answers = cpy.num_answers; for (int i = 0; i < num_answers; i++) answers[i] = cpy.answers[i]; }
Usecode_value &operator=(const Usecode_value& v2) { if (&v2 == this) return *this; if (type == (int) array_type) delete [] value.array; type = v2.type; if (type == (int) int_type) value.intval = v2.value.intval; else if (type == (int) string_type) value.str = v2.value.str; else if (type == (int) array_type) { value.array = new Usecode_value[1+count_array(v2)]; int i = 0; do value.array[i] = v2.value.array[i]; while (value.array[i++].type != (int) end_of_array_type); } return *this; }
void Answers::operator=	(	Answers& cpy	)	{	num_answers = cpy.num_answers;	for (int i = 0; i < num_answers; i++)		answers[i] = cpy.answers[i];	}