It is better to use free weights instead of machines.
As others have mentioned, you have to eat right - 5-6 small meal a day, high protein intake (eggs,meat, whey), complex carbs (oatmeal, buckwheat, pasta), a lot of veggies (avocado, broccoli). Fruits are good, but not too much, because they are full of sugar.
Cardio exercises are good, but also you have to workout at the gym, because only cardio will not give you pretty curves that both men and women want.
I hope this helped.