Please Help!!!!1

This is a discussion on Please Help!!!!1 within the C++ Programming forums, part of the General Programming Boards category; Hello to all. I'am totally new to programming in C++, and already its ........ing me off. I dont know whats ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    7

    Please Help!!!!1

    Hello to all. I'am totally new to programming in C++, and already its ........ing me off. I dont know whats wrong with the program. I write it how it says. http://www.cprogramming.com/compiler.html so if there is any Compilers you know of that are good and free just reply to this post. Thank you for taking the time for reading this. Have a nice day.

  2. #2
    ___
    Join Date
    Jun 2003
    Posts
    806
    Want to be more descriptive in whats wrong. (Hey I can help for once!)
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  3. #3
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    What compiler? And what problem are you having?

    http://www.bloodshed.net/ <- Dev-C++ IDE with the GCC compiler

    Note, to be standard C++, that code really should be:
    Code:
    #include <iostream>
    using namespace std;
    int main()
    {
      cout<<"The Compiler Works";
      return 0;
    }
    **edit**
    If the screen is flashing on really quickly, and then disappearing, read the FAQ.

    Cheers
    Last edited by Zach L.; 07-13-2003 at 10:52 PM.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  4. #4
    ___
    Join Date
    Jun 2003
    Posts
    806
    I didn't think about that. You're supposed to put

    using namespace std

    after your includes. It allows you do use the cout function. If you don't do the above it won't reconize cout. You can do something like

    Code:
    std::cout << "Hey" << endl;
    I think thats it. Not sure though
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  5. #5
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    >> I think thats it.
    Yep, that'll work in place of the using declaration.

    **edit**
    You'd need std::endl instead of endl then too.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  6. #6
    ___
    Join Date
    Jun 2003
    Posts
    806
    Well that made me feel smart! I better go to sleep soon before I ruin this good feeling of intelligence!
    "When I die I want to pass peacefully in my sleep like my grandfather did, not screaming and yelling like the passengers in his car."

  7. #7
    Registered User
    Join Date
    Mar 2002
    Posts
    249
    Originally posted by ZakkWylde969
    that made me feel smart!
    You like to say that, don't you?

  8. #8
    Registered User
    Join Date
    Jul 2003
    Posts
    7

    Thanks alot

    I found out what was wrong. Hope to answer some of your guys questions in the future.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. help1
    By Joanna in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 11-03-2003, 12:13 AM
  2. Help!!!!!!!!!!!!!!!!!!1
    By redsoxj69 in forum C Programming
    Replies: 8
    Last Post: 04-25-2002, 02:38 PM
  3. Help!!!!!!!!!!!!!!!!!1
    By incognito in forum C++ Programming
    Replies: 9
    Last Post: 01-27-2002, 11:33 PM

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