Thread: D drive
View Single Post
Old 04-16-2010, 04:52 AM   #29
Krisx
Rookie
 
Join Date: Apr 2010Krisx has a Profile Picture
Posts: 10
Rap Worlds Cash: 85.00
Rep Power: 0
Krisx might aswell go to jail now...Krisx might aswell go to jail now...


Re: D drive

Quote:
Originally Posted by Nico View Post
Perhaps he's more of an Objective-C guy.
Maybe he is a Procedural C guy


Untested but should be actual valid code. lol
Code:
#include <stdio.h>
#include <stdlib.h>

char* Responce(char* name) {
    if(name == "Pan y Pepsi")
        return "lawln00b";  
    else if(name == "Krisx")
        return "pro hax0r";
    else
        return "and you are?";
}

int main(int argc, char* argv[])
{
    char* name;
    name = (char*)malloc(sizeof(char)*100);
    
    while(1)
    {
        printf("Enter Name: ");
        fgets(name, 100, stdin);
        printf("%s\n\n", Responce(name));
        
    }   
}
Anyways your harddrive is divided into 2 parts. These parts are called "partitions" which basically divides the memory into whatever you want or whatever is set. If you got rid of your D drive then your C drive would increase in memory, or you could redivide it again and get another harddrive if you wanted a multiboot menu to run a different operating system.

The D drive is just a place to store things. Normally used to backup information incase the OS corrupts and breaks.

Here is further information:
http://en.wikipedia.org/wiki/Disk_partitioning

Last edited by Krisx; 04-16-2010 at 05:00 AM.
Krisx is offline   Reply With Quote