title: How to get the window id of a window using c++ program in ubuntu?
body: <p>I am using ubuntu. The command to get window id of a window by its name in terminal is </p>
  
  <p>xdotool search --name "name of the window"</p>
  
  <p>But i want to get the same using c++ program.</p>