Thread: How do I get a computer to detect its own name and hardware?

  1. #31
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    Quote Originally Posted by eddwills
    I've only been learning C++ for a few days....
    well done then edd!!!! that's rather impressive even if you do have prior programming experience!

  2. #32
    edd of all trades
    Join Date
    Feb 2006
    Location
    Stafford, England
    Posts
    24
    hehe, thanks a lot :flattered:

    I really couldn't have gotten it anywhere near as good without all of the help from you guys though.

  3. #33
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    i didn't mean to seem narky, i was just trying to get a point
    across, someone as enthusiastic as yourself has great potential,
    so i was just trying to steer you well clear of possible problems
    with warnings in the future.

    Originally Posted by Xterria
    I love the enthusiasm put into this program.
    i think we can all echo that! well done, oh and thanks for the
    credit as well!
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  4. #34
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Quote Originally Posted by Richie T
    leaving out return 0 will result in a compiler warning.
    Bad compiler, then. The automatic return is part of the C++ standard and must not result in any diagnostic messages on a conforming compiler.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #35
    C++ beginner
    Join Date
    Jun 2004
    Posts
    66
    Quote Originally Posted by eddwills
    I know it's probably a pile of lame compared to the sort of stuff most of you guys can probably make, but I'm happy with it, especially for a first C++ project.

    I called it 'Get To Know Your Computer'.

    You can download the .exe here and the source here.

    As you might have guessed, it's Windows only. Sorry about that guys, Linux may be better, but I need my adobe/macromedia suites/3dmax/computer games/everything else
    Very neat little program! Pretty nice concept I must say! Though I am sad that my computer's name is DESKTOP-1. Sort of depressing eh?
    Oh my goodness.

Popular pages Recent additions subscribe to a feed