This was written by Sammy Cahn, with music by Jimmy Van Heusen, in 1960. Cahn and Van Heusen also wrote "To Love and Be Loved" for the 1959 film Some Came Running
, starring Frank Sinatra and Dean Martin.
In that movie, there is a scene in which, after a poker hand with both Sinatra and Martin at the table, Sinatra's character says, "Ain't that a kick in the head." This scene would have been shot before the song was written. So the question is, did the line originate in James Jones' novel of the same name, or in the screenplay, or was it an ad lib? In any case, it seems likely to have been the be the impetus for the song.
C Plus - Austin, TX