在vc6.0下面编译了一下
Firstly,ENTER the ending character you want.
If you don't require,just ENTER,and it would ending with the ENTER.
B
You choose B as the ending characterstic,NOW you can press in string.
A
B
*
A
:::::*
Press any key to continue
这是编译效果
printf("*%s*\n",buffer);这里我加了两个**夹了一下输出的内容,是按照代码要求的顺序输出的。