linux command to reboot machine

C++
sudo reboot$ sudo shutdown -r nowwww.cyberciti.biz>faq>howto-reboot-linux
Source

Also in C++: