#ifndef HEAD #define HEAD #include #include #endif /********************************************************** * Second example C++ program in Lippman on page 21 of text* * Preprosor commands added for practice * * namespace directive added for completeness * * \n is replaced with the macro endl * * Ruben Saifr June 29th, 2008 * **********************************************************/ using namespace std; int main(){ string word; while( cin >> word) cout << "word read is: " << word << endl; #ifdef DEBUG cout << "what was that word?\n" << word << '\n'; #endif cout << "ok: No more words to read: bye!" << endl; return 0; }