自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 草稿

#include #include #define LIMIT 30 int main(void) { FILE *fp; char str[LIMIT]; int value; int total; char *buf; int i; if((fp = fopen("test.txt","r")) == NULL) { perror("error to open th

2012-08-19 12:39:24 217

原创 《c和指针》第十二章双链表练习

#include #include typedef struct NODE{ int value; struct NODE *fwd; struct NODE *bwd; } Node; int dll_insert(Node *rootp,int value); int remove(Node *rootp,Node *node); int main(void) { Node

2012-07-24 14:08:45 501

原创 《c和指针》第十二章单链表练习

#include #include struct Node{ int value; Node *link; }; Node *sll_reverse(Node *rootp); int sll_insert(Node **rootp,int value); int remove(Node **rootp,Node *node); int my_free(Node *rootp);

2012-07-22 14:04:50 558

原创 《c 和指针》第9章第16题——数字字符串格式化输出

#include #include #include int format(char *format_string,char const *digit_string) { char *p = format_string + strlen(format_string); char *p2 = (char *)digit_string + strlen(digit_string); ch

2012-07-13 02:06:55 307

转载 结构动态内存分配

#include #include enum a {PART,SUBASSY}; typedef struct{ int cost; int supplier; } Partinfo; struct SUBASSYPART{ char partno[10]; short quan; }; typedef struct{ int n_parts; struct SUBAS

2012-07-12 13:31:20 390

原创 《c 和指针》第6章第2题——删除字符串

//删除字符串的一部分 程序 #include #include #include int del_substr(char *str,const char *substr); void reverse_string(char *); int main(void) { char str[] = "LIN JIN SHENG"; char substr[40]; puts("Ente

2012-07-09 00:53:51 348

原创 《c 和指针》第9章第12题——加密数据

//c和指针第9章 第12题 加密数据 #include #include #include #include int prepare_key(char *key,char *str) { int i = 0,j = 0; char flag = 'a'; if(strpbrk(key," \n\t") != NULL) return 0; while(*key) {

2012-07-07 10:59:06 445

原创 判断字符串是否回文

#include #include #include #include int palindrome(char *string) { char str[80]; unsigned i = 0; char *p = string; while(*string) { *string = toupper(*string); if(isalnum(*string)) st

2012-07-05 18:08:57 449

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除