#include #include //For getpid() extern "C" {int rand(); void srand();} //Tells compiler rand() & srand() //is external C code const LIMIT=100; main() { srand(getpid()); //Give the random number generator a seed bool cont=true; cout<<"Welcome to Alan's guessing game!\n\n"; int total = 0; int plays = 0; while (cont) { cout<<"I am thinking of a number between 1 and 100...."<>guess; count++; total++; if (guess!=num) { if (guess > num) cout<<"Lower!"<> again; if (again!='y' && again!='Y') cont=false; cout<