This is what i have so far, i know lines 15 and 16 have to be in a while loop somehow along with more information. Mainly i dont know how to use the constructor in the while loop.
4 #include <iostream>
5 using namespace std;
6 #include "Random.h"
7
8 int main()
9 {
10 int variable;
11
12 cout << "What is your secret number between 1 and 100?" << endl;
13 cin >> variable;
14
15 Random oracle(1,100);
16 cout << oracle.get() << endl;
17
18 }
19

New Topic/Question
Reply



MultiQuote





|