Thread: newbie need some help

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    1

    newbie need some help

    hi


    i have got the free borland compiler and done what the tutorial said to set it up but when i copy and paste the code to test it meaning:-

    Code:
    #include <iostream>
    
    int main()
    {
        std::cout<< "I work!" << std::endl;
    }
    i save it and run it has it say on the tutorial but it come up saying

    Borland C++ 5.5.1 for win32 Copyright (c) 1993, 2003 Borland
    test.cpp:
    Error E2209 test.cpp 1: Unable to open include file 'iostream'
    Error E2090 test.cpp 5: Qulifier 'std' is not a class or namespace name
    tion main()
    Error E2379 test.cpp 5: Statement missing ; in function main()
    *** 3 errors in compile ****

    whats happen here please help

    thanks paulley

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Perhaps you're missing a config file.
    http://faq.cprogramming.com/cgi-bin/...&id=1043284351

  3. #3
    The N00b That Owns You!
    Join Date
    Jul 2005
    Location
    Canada!
    Posts
    178
    i reccomend using Dev-C++ over Borland for beginning programming, iots free and available at www.bloodshed.net but anyways if that did run it would run and close instantly try this when you fix your prob:

    Code:
    #include <iostream>
    
    using namespace std;
    // the above makes it so you dont have to do std:: befor cout cin endl etc..
    
    int Main()
    {
         cout << "I Work" << endl;
         cin.get(); // waits for the user to press enter before continuing
         return 0; // exit the program, because Main is a int it must return a integer, by returnng 
         // 0 it ends the function, in essance 0 on success anything else on fail
    }
    i hope it helps

    The Noob

    PS: this should be in the C++ Programming Forum
    New Function!!!!

    glAddIdol(C+noob);

    The feeling of rusty spoons against my salad fingers is almost ORGASMIC

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newbie: array question :(
    By cstudent in forum C Programming
    Replies: 2
    Last Post: 04-09-2008, 06:46 AM
  2. getting to grips with allegro and ms vc++ (newbie)
    By jimjamjahaa in forum C++ Programming
    Replies: 4
    Last Post: 11-18-2005, 07:49 PM
  3. Newbie in problem with looping
    By nrain in forum C Programming
    Replies: 6
    Last Post: 11-05-2005, 12:53 PM
  4. Some help for a newbie?
    By Ilmater in forum C++ Programming
    Replies: 23
    Last Post: 04-19-2004, 07:44 PM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM