Handed in Project 1

This commit is contained in:
2024-09-25 09:00:53 +02:00
parent cdf9c7047f
commit 282bb86783
7 changed files with 254 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#ifndef PROJECT_H
#define PROJECT_H
// NOTE: You cannot change this file. In "only" contains declarations and
// short descriptions of the functionality we provided to you.
// This function returns a randomly chosen integer from the interval [0, max].
int randomly_choose_a_number(int max);
// This function returns a number from the interval [1, max].
// The number is randomly chosen if we're in interactive mode and parameter
// choose_randomly is true, and read from the keyboard (std::cin) otherwise.
int choose_a_number(int max);
#endif