Visual C++

This is a discussion on Visual C++ within the C++ Programming forums, part of the General Programming Boards category; Okay I've been doing C++ for a while now and just got a real compiler, Visual C++. Well if I ...

  1. #1
    The Pantless Man CheesyMoo's Avatar
    Join Date
    Jan 2003
    Posts
    262

    Visual C++

    Okay I've been doing C++ for a while now and just got a real compiler, Visual C++. Well if I go to execut a simple program such as:
    Code:
    #include <iostream>
    using namespace std;
    
    int main()
    {
     cout << "Hello world!" << endl;
     return 0;
    }
    Then it says, 1 error(s), 0 warning(s) but it will not tell me what the error is, and it always has that 1 error... can anyone help?

  2. #2
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    in the little window where it says that, scroll up or make the window its in bigger.

    btw: compiles fine
    Last edited by RoD; 03-19-2003 at 06:33 PM.

  3. #3
    The Pantless Man CheesyMoo's Avatar
    Join Date
    Jan 2003
    Posts
    262
    Okay, that example did work well, I think it was that I was using conio... do I have to include a .h extension or what?

  4. #4
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    some header files seem to require the .h on them even though you declared namespace std; I cant explain that but i am sure that someone can.

  5. #5
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,643
    Read this.

    gg

  6. #6
    ! |-| /-\ +3 1337 Yawgmoth's Avatar
    Join Date
    Dec 2002
    Posts
    187

    Re: Visual C++

    Originally posted by CheesyMoo
    Okay I've been doing C++ for a while now and just got a real compiler, Visual C++.
    As opposed to a fake compiler?
    L33t sp3@k sux0rz (uZ it t@k3s 10 m1|\|ut3s 2 tr@nzl@te 1 \/\/0rd & th3n j00 h@\/3 2 g3t p@$t d@ m1zpelli|\|gz, @tr0(i0u$ gr@mm@r @|\|d 1n(0/\/\pr3#3|\|$1bl3 $l@|\|g. 1t p\/\/33nz j00!!

    Speling is my faverit sujekt

    I am a signature virus. Add me to your signature so that I may multiply.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21