how to use quotation marks in c++ stream
Hi all
I'm writing some code to speed up some code writing, basically it produces some code I use in every project. I produce the outputs with fstream filestr;, open a file and write to some data to it. However some code has quote marks that I need to output, however I can't use quote marks. EG filestr<<"#include "Header.h""<<endl; I get round this with some awful filestr.put ('"'); However I'm sure there must be a straight forward way to do this. Can anyone advise? Thanks :) |
Escape them: "#include \"Header.h\"".
|
Thanks!
|
Please mark your thread as solved (look under Thread Tools at the top) if your question has been answered.
|
All times are GMT -5. The time now is 01:47 AM. |