Thread: help me out

  1. #1
    Registered User
    Join Date
    Apr 2008

    help me out

    is it possible to write a function in a c++ program that will format my drive D or C or whatever i want, if so, please let me knw abt the code


  2. #2
    Registered User
    Join Date
    Jun 2008
    of course there are ways to format a drive, but I would assume that the current drive your working on would not be able to be done due to the OS, but thats a little overhead that you're not looking for.

    there are simple solutions to your question that all involve using the OS through a command line program, which makes the solution system dependent.

    due to the nature of the problem, and how harmful it could be if others got a hold of it, I'm not leaving any code.

  3. #3
    Join Date
    Oct 2007
    Inside my computer
    Careful here. What do you want this for?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  4. #4
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Unbelievable. Yeah, right. Like we're supposed to write code to wreck a hardrive's content.... If you want this, you do it via the OS, etc. etc..

Popular pages Recent additions subscribe to a feed