Original Post
how do i get my program to repeat in c++. i use the example in my book. heres my source.
#include
int main()
{
char answer;//my answer thingy
do //beginning o loop
{
double age;
cout<<"Enter age ";
cin>>age;
if(age==1)
cout<<"Liar";
cout<<"What is your real age";
double realage;
cin>>realage;
if(realage=1)
cout<<"That does it this program is self destructing";
cout<>answer;
}while(answer==''y'');
cout<<"Thats nice"<