topical media & game development

talk show tell print


? / basic-program-code-01-Ex1-02.c

  // Ex1_02.cpp A simple console program
  include <iostream>                    // Basic input and output library
  int main()
    std::cout << "This is a simple program that outputs some text." << std::endl;
    std::cout << "You can output more lines of text" << std::endl;
    std::cout << "just by repeating the output statement like this." << std::endl;
    return 0;                            // Return to the operating system

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.