Thread: Hello World Problem

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Instead of these hieroglyphics at the top of your program:
    Code:
    #include <iostream.h>
    use these hieroglyphics instead:
    Code:
    #include <iostream>
    using namespace std;
    With some compilers(= the thing you run your programs with), you may have to include a line of code before the last line as well:
    Code:
    ....
       cin.get();  //or system("pause");
       return 0;
    }
    Last edited by 7stud; 06-12-2005 at 01:10 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. searching problem
    By DaMenge in forum C Programming
    Replies: 9
    Last Post: 09-12-2005, 01:04 AM
  2. Bin packing problem....
    By 81N4RY_DR460N in forum C++ Programming
    Replies: 0
    Last Post: 08-01-2005, 05:20 AM
  3. Words and lines count problem
    By emo in forum C Programming
    Replies: 1
    Last Post: 07-12-2005, 03:36 PM
  4. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  5. binary tree problem - help needed
    By sanju in forum C Programming
    Replies: 4
    Last Post: 10-16-2002, 05:18 AM