newbie frustration

This is a discussion on newbie frustration within the C++ Programming forums, part of the General Programming Boards category; I have just installed dev-c++ and wanted to start learning so of course i came here to use the tutorials ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    1

    Angry newbie frustration

    I have just installed dev-c++ and wanted to start learning so of course i came here to use the tutorials and i used the first example on dev-c++ and for some reason it was not working at all. I checked over again and again to see if i missed typed anything and I did not. I really do not know wah i did wrong, or if i did anything wrong at all. Can anyone helped the frutrated newbie, cause I have been wanted to learn C++ so badly and i really need some help to get over this hurdle. thanks

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,451
    Be more specific than "it doesn't work". We can guess that much by the very existence of your post.

    Which version of dev-c++ did you download?
    Which example (paste it or use a link)
    What error message(s) did you get?
    Which OS are you using
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2003
    Posts
    13
    another helpfull thing to post would be the steps you took.
    Decode the coded.

  4. #4
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    they use an antiquted (sp?) header...
    Code:
    #include <iostream.h> 
    int main() 
    {
      cout<<"HEY, you, I'm alive!  Oh, and Hello World!"; 
      return 0;    
    }
    should be
    Code:
    #include <iostream> //note the absence of '.h'
    using namespace std; 
    
    int main() 
    {
      cout<<"HEY, you, I'm alive!  Oh, and Hello World!"; 
      return 0;    
    }
    it should give you some warning or something...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  5. #5
    Geo Geo Geo-Fry
    Join Date
    Feb 2003
    Posts
    116
    my guess would be the consule window dissapears before you can see the output. if thats the case there are numerous things you can do. i use dev-cpp and i prefer
    Code:
    #include <string>
    ...
    ...
    system("Pause");
    return 0;
    }
    some ppl dont like that because you have to include another header, just search the board and you will find plenty of alternatives.
    "You can lead a man to Congress, but you can't make him think."
    "The Grand Old Duke of York
    -He had ten thousand men.
    -His case comes up next week."
    "Roses are red, violets are blue, I'm schizophrenic, and so am I."
    "A computer once beat me at chess, but it was no match for me at kick boxing."
    "More and more of our imports are coming from overseas."
    --George W. Bush
    "If it weren't for electricity, we'd all be wacthing TV by candlelight."
    --George W. Bush

  6. #6
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    isn't system() in the <cstdlib> header?
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  7. #7
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    Question <iostream.h>

    why is that antiquated.
    I thought the old way was
    Code:
     
    #include<iostream>
    
    using namespace std;
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  8. #8
    mustang benny bennyandthejets's Avatar
    Join Date
    Jul 2002
    Posts
    1,401

    Re: <iostream.h>

    Originally posted by xviddivxoggmp3
    why is that antiquated.
    I thought the old way was
    Code:
     
    #include<iostream>
    
    using namespace std;
    Nup that's the right way to do it. <iostream.h> is the outdated one.
    benforbes@optusnet.com.au
    Microsoft Visual Studio .NET 2003 Enterprise Architect
    Windows XP Pro

    Code Tags
    Programming FAQ
    Tutorials

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. Newbie programmer with his first frustration
    By galactic_ronin in forum C++ Programming
    Replies: 14
    Last Post: 02-20-2008, 01:39 PM
  3. Some help for a newbie?
    By Ilmater in forum C++ Programming
    Replies: 23
    Last Post: 04-19-2004, 07:44 PM
  4. C++ newbie / linux not so newbie question
    By goldmonkey in forum C++ Programming
    Replies: 7
    Last Post: 12-13-2003, 11:27 AM
  5. Newbie Game Develpoers Unite!
    By Telenosis in forum Game Programming
    Replies: 10
    Last Post: 06-22-2002, 02:02 PM

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