Confused: What is wrong with void??

This is a discussion on Confused: What is wrong with void?? within the C++ Programming forums, part of the General Programming Boards category; [/B]this can be useful for the OS in some ways, havent quite figured out how though .[/B] I believe in ...

  1. #16
    Registered User Frobozz's Avatar
    Join Date
    Dec 2002
    Posts
    546
    [/B]this can be useful for the OS in some ways, havent quite figured out how though .[/B]
    I believe in DOS you check the return code by using errorlevel.

    XP stable? Don't count on it... your just not running the apps he is.

  2. #17
    Registered User
    Join Date
    Nov 2002
    Posts
    126
    When a program runs, your operating system expects an integer value to be placed on the stack that indicates the successfulness of the program. If the operating system does not get this int on the stack, it's possible(though not likely) for it to do some flaky stuff. int main() is just good practice.

    BTW, Windows XP is terrible for gaming, and one of the slowest OS's available. Wait till you see Win 2003, you're gonna hate it with a passion.

  3. #18
    Grammar Police HybridM's Avatar
    Join Date
    Jan 2003
    Posts
    355
    Windows XP is fine for gaming, you just need a computer that doesn't use a crank to boot up.

    Good thing i wasn't planning on using 2k3, and i hope not many of you are either. It's not for desktop pcs it's for networks.

    Linux is good, OS X is (supposedly) good, but windows is good too. Most people just bash windows because of the big bad brand name it carries.
    Thor's self help tip:
    Maybe a neighbor is tossing leaf clippings on your lawn, looking at your woman, or harboring desires regarding your longboat. You enslave his children, set his house on fire. He shall not bother you again.

    OS: Windows XP
    Compiler: MSVC

  4. #19
    Registered User
    Join Date
    Nov 2002
    Posts
    126
    I mean that if you used the same hardware configuration and connection with different OS's, XP would most likely be the slowest. I think maybe we gettin a little bit off topic...

  5. #20
    Registered User
    Join Date
    Aug 2002
    Posts
    87
    >> using void main() 'should' not give any problems with current compilers.

    >gcc 3.2 refuses ``void main''. Would you say it's not a relevant compiler, or won't soon be?

    the should was placed in parenteses as that was to the best of my knowledge =] i am not saying that any compiler is better then another

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Inserting a swf file in a windows application
    By face_master in forum Windows Programming
    Replies: 12
    Last Post: 05-03-2009, 11:29 AM
  2. i cannot see the mouse arrow
    By peachchentao in forum C Programming
    Replies: 6
    Last Post: 12-10-2006, 03:14 AM
  3. need help with handelling multiple source files
    By DarkMortar in forum C++ Programming
    Replies: 38
    Last Post: 05-26-2006, 10:46 PM
  4. oh me oh my hash maps up the wazoo
    By DarkDays in forum C++ Programming
    Replies: 5
    Last Post: 11-30-2001, 11:54 AM

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