There are multiple issues with your code.
1. naming a class "object" is bad. See my comment above.
2. Making all class members public means you're not interested in using it like you would use a class in OOP. What you have is a C struct, not a class. If that's what you intended, fine - but then don't use class, use struct!
3. Formatting doesn't appear to be your strongest point: you should strive to use consistent rules how you format your data structures and functional code. It doesn't matter all that much what rules you use, as long as it's consistent, and readable. At the moment, your code is neither. And this makes it more difficult for us to read and understand what your code is doing. Hint: there are plenty of language-sensitive editors that can help you in keeping your code nicely formatted - it's really not that much effort.
4. The class definition of recipe is incomplete. This makes it impossible for us to decide how it is initialized, and what members it has.
5. You function recipe::log() calls multiple functions that are not standard C++ functions and your code does not have any #include statements that would give us a hint where these functions may be coming from. While most can make an educated guess about setbkcolor() or clrscr(), the bets on title() are off. Yet another thing that takes our time figuring out, although it would be trivial for you to provide this vital information.
6. This line:
ax.recipe[i]=a3;
will break your program! You have not provided a size for this array, which means technically it is size 0, and any attempt to access an element at any offset is undefined behaviour! what happens afterwards in your code doesn't really matter, because anything can happen as long as you don't fix that!
Sorry for boldface, I didn't mean to shout - just wanted to put an emphasis on the thing that I consider the most likely cause of your problem. You still should take the other points to heart.