If any person shall enter upon any locomotive engine or car on any railroad in this State, and by threats, the exhibition of deadly weapons or the discharge of any pistol or gun, in or near any such engine or car, shall induce or compel any person on such engine or car to submit and deliver up, or allow to be taken therefrom, or from him, anything of value, he shall be guilty of train robbery, and on conviction thereof shall be punished as a Class D felon.
N.C. Gen. Stat. § 14-88