title: How to check a specified string is a valid URL or not using C++ code
body: <p>there any possible way to check that the specified string is a valid url or not. The solution must be in c++ and it should work without internet.</p>
  
  <p>example strings are</p>
  
  <pre><code>good.morning
  foo.goo.koo
  https://hhhh
  hdajdklbcbdhd
  8881424.www.hfbn55.co.in/sdfsnhjk
  ://dgdh24.vom
  dfgdfgdf(2001)/.com/sdgsgh
  \adiihsdfghnhg.co.inskdhhj
  aser//www.gtyuh.co.uk/kdsfgdfgfrgj
  </code></pre>