about Quincy C about space.~

Thread Starter

longcrystal

Joined Mar 22, 2010
20
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??
 
Top