about Quincy C about space.~

Discussion in 'Programmer's Corner' started by longcrystal, Sep 3, 2010.

  1. longcrystal

    Thread Starter New Member

    Mar 22, 2010
    20
    0
    i am doing halfway actually i stuck in one part ,got any can help me about the C programming some part??actually i want to ask let say below code:


    #include <stdio.h>

    int main()
    {

    char description[100]="A Nice car for a drive.";




    printf("Description:");
    scanf("%s",&description);

    printf("|Description:\n");
    printf("|%2s%s\n"," ",description);

    return 0;

    }


    if i build success the code,i want to type in space to space like A nice car for a drive,then i want the prinf to execute the word are space to space how i write the code..because now my code is cannot be space to space to print out the word.if i no space no problem,but when i space it the word execute one word only somebody can help me??
     
Loading...