12 lines
188 B
C++
12 lines
188 B
C++
#include <iostream>
|
|
#include <fstream>
|
|
using namespace std;
|
|
|
|
void SaveGame(int x, int y) {
|
|
ofstream outfile("save.json");
|
|
|
|
outfile << x << " " << y << std::endl;
|
|
|
|
outfile.close();
|
|
}
|