// /*--------------------------------------------------------*\ // | Main Program: Traditional "Hello World" program, // | personalized // |*--------------------------------------------------------*| // | Date: 13 August 1996 // | Author: Bruce W. Weide // | // | Brief User's Manual: // | Asks for your name, then outputs "Hello, " followed // | by your name on a line by itself, and then quits. // | // \*--------------------------------------------------------*/ ///------------------------------------------------------------- /// Global Context --------------------------------------------- ///------------------------------------------------------------- #include "RESOLVE_Foundation.h" ///------------------------------------------------------------- /// Interface -------------------------------------------------- ///------------------------------------------------------------- program_body main () { object Character_IStream input; object Character_OStream output; object Text name; input.Open_External (""); output.Open_External (""); output << "What is your name? "; input >> name; output << "Hello, " << name << "\n"; input.Close_External (); output.Close_External (); }