declare an array to have 3 elements (int doors[3]
each one will represent a door

fill the above array randomly(use srand,rand ) with the numbers 1,2,3
1=goat
2=price
3=goat

do this first ,post your code and i will help you.