#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<stdbool.h>
#define BUF_len 1000
#define INIT_str_ext 50
#define WORDS_incr 5
int main(void)
{
char delimiters[]="\n\", .?!)(:;";
char buf[BUF_len];
size_t str_size=INIT_str_ext;
char *pStr=(char*)malloc(str_size);
*pStr='\0'; 这里给个\0是什么意思?没看明白。
printf("enter some prose with up to %d characrters per line.\n"
"Terminate input by entering an empty line:\n",BUF_len);
慕哥6287543
相关分类