asdf

closed account (9EU9z8AR)
ooos
Last edited on
http://www.cplusplus.com/doc/tutorial/files/

1
2
3
  ofstream outputFile("output.txt",  ios::app);
  outputFile << "Lizard";
  outputFile.close();
closed account (9EU9z8AR)
dfgh
Last edited on
When you get the user input, write it to file.
When you get the computer input, write it to file.
closed account (9EU9z8AR)
cvb
Last edited on
closed account (9EU9z8AR)
nhy
Last edited on
Go on, just try it. You've already written the code right here. Why not write that code in your programme and see how it works out?
Topic archived. No new replies allowed.