The following C++ source code will tell you the value of any element of Pascal's Triangle:

int Find(int tlayer, int telement)
{
int a, b;
if(telement == 0 || telement == tlayer)
 return (1);
else
  {
  a = Find(tlayer-1,telement-1);
  b = Find(tlayer-1,telement);
  }
return(a+b);
}

'telement' (target element) is the element of a row, while 'tlayer' (target layer) is the row. You probably don't want to use this code to find very large elements as recursion can be really slow. Your mileage may vary.