diverses in ofstream objekt speichern



  • hallo ich wuerde gerne:

    <?xml version="1.0" encoding="UTF-8"?>
    <Worksheet><Version major="6" minor="0"/><View-Properties><Zoom percentage="100"/></View-Properties><Styles><Layout alignment="left" bullet="none" firstindent="0.0" leftmargin="0.0" linebreak="space" name="Normal" rightmargin="0.0" spaceabove="0.0" spacebelow="0.0"/><Layout alignment="centred" bullet="none" name="Maple Plot"/><Font background="[0,0,0]" bold="true" executable="true" family="Monospaced" foreground="[255,0,0]" name="Maple Input" opaque="false" size="12"/></Styles><Group><Input><Text-field layout="Normal" prompt="> " style="Maple Input">

    das in ein ofstream objekt speicher allerdings geht das nicht.
    hat jemand ne ahnung wie man dem kompiler sagt, dass er nicht gleich jedes " als anweisung interpretiert?

    mfg lookias



  • in dem Du es als sogenannte Escape Sequenz darstellst, mittels

    \"
    

    anstelle von einem "


Anmelden zum Antworten