I want the following printout to appear in the my screen when I run my code:
\begin{tabular}
\hline \\\
For that, I am using the following command on my code:
std::cout<<"\begin{tabular}<< std::endl;
std::cout<<"\hline \\\"<< std::endl;
And I'm getting the following compiler message (regarding the second line of code):
unknown escape sequence: '\h'
and the following incomplete printout:
egin{tabular}
hline\
Where in the first one the "\b"
is missing and the first and last \
are missing for the second sentence.
The question is: does anyone know how I can print the \
symbol as text, such that it will get printed and not be interpreted as a command, etc?
Aucun commentaire:
Enregistrer un commentaire