Hello,
Visual C++ tells me that there are some undeclared identifiers in eleventh and fourteenths lines of this particular code, which I'm sure they have been declared:
//99 Bottles of Beer
//includes
#include <iostream> //for std::cout and std::endl
int main ()
{
for (int beer = 99; beer == 1; beer--) // The only declared var
std::cout << beer << " bottles of beer on the wall" << std::endl;
std::cout << beer << " bottles of beer" << std::endl; // The first supposedly undeclared variable
std::cout << "Take one down" << std::endl;
std::cout << "Pass it around" << std::endl;
std::cout << beer - 1 << " bottles of beer on the wall" << std::endl << std::endl; // The second one is here
return 0;
}
Thanks for any help in advance.
Hoping that the memory will leave her spirit soon.