====================================================================
// Some comment
// /
// Some more comment
int main(int, char **) { return 0; }
====================================================================
compiling with g++ will yield the following warning:
x.cc:2:2: warning: multi-line comment
What is the point of this warning? Shouldn't the preprocessor
> > > just ignore everything between the // and the end-of-line?
> >
> > No, backslash-newline conversion happens before comments
> > are discarded. You really do have a multi-line comment;
> > one that would be dangerous if your next line weren't a
> > comment as well.
在//注释行的最后不能加 / ,加 / 表示下一行看成是注释,如果下一行不是注释的话会出错