Guess where the treasure is by typing in row and column index numbers
Created by Phil Gardner
last edited Feb 27 2021 by Phil Gardner
C++ program for Raspberry Pi, Apple mac or Linux PC. Uses 2D arrays, data-types, constants, iteration and random numbers.
Load the source-code into your IDE, then build and run.
Alternatively, to compile the source-code from the command-line:
g++ -o treasure treasure.cpp
(This makes a new executable file called treasure.)
To run from the command-line:
You can also paste the code into repl.it and run from there.