Roy Cooper, the Democratic challenger, told supporters he is confident that he will defeat Gov. Pat McCrory.