All pastes #588423 Raw Edit

Miscellany

public cpp v1 · immutable
#588423 ·published 2007-06-25 14:45 UTC
rendered paste body
void save(){  char cc;  int icount,icount2;  ofstream ausgabe("save.mms", ios::out);    cc=ipass+48; // Durchlauf schreiben  ausgabe.put(cc);  cc=95; // Unterstrich als Platzhalter  ausgabe.put(cc);    cc=iuse_colors+48; //Anzahl der benutzten Farben schreiben  ausgabe.put(cc);  cc=95;  ausgabe.put(cc);    cc=iuse_sticks+48;//Anzahl der benutzten Stifte schreiben  ausgabe.put(cc);  cc=95;  ausgabe.put(cc);  for(icount=0;icount<max_sticks;icount++)  {    cc=iguess[icount]+48;    ausgabe.put(cc);  }  cc=95;  ausgabe.put(cc);  for(icount=0;icount<=ipass;icount++)  {    for(icount2=0;icount2<max_sticks;icount2++)    {      cc=irow[icount][icount2]+48;      ausgabe.put(cc);    }    cc=95;    ausgabe.put(cc);  }  cout << "Spiel wurde nach " << ipass << " Eingaben gespeichert";}