Help for the basics

This is a discussion on Help for the basics within the C++ Programming forums, part of the General Programming Boards category; Very new at this and am just messing about, so please bear with me cause I am probably making a ...

  1. #1
    Registered User
    Join Date
    Jun 2008
    Posts
    1

    Help for the basics

    Very new at this and am just messing about, so please bear with me cause I am probably making a very easy mistake but I...meh just read below.

    I have been using the tutorials on this site and got Dev-C++ cause it said it was good for begginers. I read through the little bit and then it came to actually entering something. So I went File - New - Project, put it on Console Application and typed what it told me, which was this:

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
      cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
      cin.get();
    }
    Then it told me to run it, which I did but it always says "Project is not compiled" So what do I do??

    Thanks in advance, hope I gave enough info there.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Posts
    23,027
    Well (I don't know dev-c++ very well, however), you must first compile your project into an executable!
    There should be a compile option in the menus somewhere. Select it first, and THEN run the program!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User Terran's Avatar
    Join Date
    May 2008
    Location
    Nashua, NH
    Posts
    100
    You shouldn't be using DevC++, it comes with a version of MINGw32 that's like 10 years old!!!

    look up wxDevC++, same thing, but with the wxWidgets library included and an updated compiler.

    There's a little green arrow in DevC++ (F9 key) that builds and executes your program.

    You need to build it before you can run it!

    Any other questions about Dev just ask, it's what i use!!! (and we all know how smart i am :-p )
    Last edited by Terran; 06-01-2008 at 05:16 PM. Reason: speeling

  4. #4
    ---
    Join Date
    May 2004
    Posts
    1,379
    I've been using Visual Studio Express but MingwStudio is quite good for newbies. I would be using it too but I couldn't get SDL to work with mingw under Vista.

  5. #5
    Registered User Terran's Avatar
    Join Date
    May 2008
    Location
    Nashua, NH
    Posts
    100
    I've actually been thinking about VSE because of the SDL / wxWidgets / Vista issues...
    Sorry, but i'm a Code::Blocks man now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. "Modern C++ and Basics of OO Programming" (e-learning course)
    By Erhard Henkes in forum C++ Programming
    Replies: 5
    Last Post: 09-16-2004, 04:01 PM
  2. Win Api Basics...
    By Devil Panther in forum Windows Programming
    Replies: 19
    Last Post: 09-09-2004, 12:28 PM
  3. C++ Basics part two
    By frenchfry164 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 11-22-2003, 11:34 AM
  4. Desire & Fear: Two Basics of Human..
    By zahid in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 11-16-2002, 11:11 PM
  5. The Basics
    By Granger9 in forum Windows Programming
    Replies: 5
    Last Post: 09-13-2002, 06:12 PM

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