Thread: Dev-C++ Not Working! Help ME!!!

  1. #16
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    The compiler is working it is telling you there are errors in your code or that somthing is left out ie using std::cout;

  2. #17
    Registered User
    Join Date
    Jul 2003
    Posts
    97
    WOW! i am so sorry, i thought u guys were just telling me to make a cooler program. all the stuff is all different now. do i need the namespace::cout thing after #include on every file i make?

  3. #18
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    have a read through the FAQ and see if that helps. also, take a look at the tutorials. there is an explanation portion of namespaces there; try reading it, if you feel it is too advanced right now, worry about it later. for now, after you #include the headers you use, it's easiest to include the: using namespace std; line.

  4. #19
    Registered User
    Join Date
    Aug 2003
    Posts
    44
    In most of your more simple console sources it will be a good idea to begin with this structure:
    Code:
    #include <iostream>
    
    using namespace std;
    
    int main();
    {
        return 0;
    }
    You have to declare all of the statements you're using that aren't keywords (keywords usually light up in some form or fashion or boldify (I love that word.)), hence the include and using.

    NEVER void main out. At the very least what will happen is somebody jumping down your throat about it.

    Also Dev C++ 4.9.blahblahwhatever is only a beta. If you have problems with it, get version 4.
    Check out all my dimensions:
    Height, width, and for a limited time only... Depth!
    -sb

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 05-07-2009, 11:31 AM
  2. Dev C++ |Random Coding| Not Working!
    By oobootsy1 in forum C++ Programming
    Replies: 6
    Last Post: 03-05-2004, 10:13 PM
  3. OPENGL Dev C++; Fualty LIBS
    By Blizzarddog in forum C++ Programming
    Replies: 5
    Last Post: 01-02-2004, 09:40 AM
  4. Dev C++ help please!!!
    By caroundw5h in forum C Programming
    Replies: 7
    Last Post: 11-27-2003, 09:48 AM
  5. Tutorial about Bloodshed Dev!
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 11-13-2001, 07:42 PM