title: C++ tokeniser, skip the lines start with '//' and the ad hoc '/**/'
body: <p>I am practising to write a tokeniser in C++, however, I assume that I will need to take a file with some comments as the input file. Then how can I skip the comments like those in the following picture.
  Any ideas?<a href="https://i.stack.imgur.com/QTVlW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QTVlW.png" alt="enter image description here"></a></p>