Thread: C++

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Red face C++


    main is stand for programming?? LIKE

    #include <iostream>

    using namespace std;

    int Main()
    {
    cout<<"HEY, you, I'm alive! Oh, and Hello World!\n";
    cin.get();

    return 0;
    }
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0
    it should be "main" not "Main" thats it...
  4. #3
  5. Contributing User

    Join Date
    Aug 2003
    Location
    UK
    Posts
    5,112
    Rep Power
    1803
    What exactly is the question here? "main is stand for programming??" is neither a question nor comprehensible English. Proficiency in English is not required, but some level of clarity is. Try Google Translate perhaps.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Main()


    i try to ask that Main() cannot be other work and if c'not why ??
  8. #5
  9. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,392
    Rep Power
    1871
    Because C is case sensitive, and the correct way to write it is main.
    Main just another function name of no special significance.
    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
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2010
    Posts
    68
    Rep Power
    0
    Originally Posted by salem
    Because C is case sensitive, and the correct way to write it is main.
    Main just another function name of no special significance.
    i was just curious to know ....

    according to your reply does it mean

    C- is case sensitive
    C++ - is not case sensitive
    java - is case sensitive...


    1 more question :
    why is java always emphasizing that its case sensitive in its description while i didnt see such a highlight about c or c++ in their description respectievely...

    I maybe wrong ... but I had these doubts since long..
  12. #7
  13. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jan 2003
    Location
    USA
    Posts
    7,172
    Rep Power
    2222
    C++ is case-sensitive.

    For that matter, so is UNIX and Linux.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Thumbs up Main()


    tq

IMN logo majestic logo threadwatch logo seochat tools logo