Greetings to everyone

I've been doodling on my assignment for OOP C++, my main idea is to create a fully featured C++ program that represents the real

number system,(Real,rational,irrational....etc), I would to know how is it possible to create a function that can generate a certain number of irrational numbers, The code below is a small snippet from my program that generates a list of rational numbers.

Code:

void RationalNumbers::displayRationalNumbers(double P_p,double P_q) //
{
cout<<"How many rational numbers do you want to generate from your given values?"<<endl;
cin>>EndUserRequest;
cout<<"\n\nRational numbers division starting \nwith numerator as "<<P_p<<" and denominator as "<<P_q<<endl;
for(int i=0; i<=EndUserRequest; i++)
{
resultOfRational = P_p/P_q;
cout<<resultOfRational<<" at "<<i<<endl;
P_p++; // postfix increment operator used to increment given values for numerator and denominator
P_q++;
}
system("pause");
}

Code:

void RationalNumbers::readRationalNumberInfo()
{
double p1,q1;
cout<<"Please enter a value for each of the following to generate Rational numbers"<<endl;
cout<<"\nThe following calculation will be in the form of p/q where p and q are integers and q cannot be zero"<<endl;
cout<<"P: "<<endl;
cin>>p1;
cout<<"Q: "<<endl;
cin>>q1;
if(p1 >=1 && q1 >=1)
displayRationalNumbers(p1,q1); // passes arguments to member function parameters
else
{
cout<<"Please enter valid values for each of the following! "<<endl;
readRationalNumberInfo();
}
}

Yours sincerely

Thanks,

Hamad