I have a question. What language are like really amazing games written in, such as NASCAR 3, Half-life, Rainbow Six, etc..

What courses should I take to make a game somthinng like this, high school and college?

Thanks