A candidate needs 270 electoral votes to win the presidency. However, if neither candidate reaches this threshold, the election is thrown to the House of Representatives and they vote (1 vote per state) to decide who becomes president.
a majority (270)
270
The Electoral College
270
270 votes
bob
Ted Cruz did not win the 2016 Republican nomination for presidency. Therefore, he did not receive any electoral votes in the U.S. Electoral College.
McCain will receive all 34 Electoral College Votes. Texas is a winner take all State.
Mitt Romney did not receive any electoral votes in Arizona. No candidate will receive any electoral votes until the general election in November. I think you might want to know how many delegates he received to the Party convention.
He will receive four electoral votes in Idaho. The election has not happened yet, but the Republicans would win Idaho even if they didn't run a candidate.
If a candidate does not receive 270 electoral votes in the presidential election, the decision goes to the House of Representatives to choose the president from the top three candidates with the most electoral votes.
The electors are committed to a certain candidate. Their vote is a matter of pubic record. It is not likely that they will contrary to their party.