ive got a problem why does 'the_number' always = 1 ?
Code:#include <iostream> #include <ctime> #include <cstring> using namespace std; class game { public: int the_number; int guess; }; int main() { game guess_game; guess_game.the_number = rand() %10; cout <<"the number is "<<guess_game.the_number<<endl; cin.get(); return 0; // exit success }