摘要: 1)求字符串长度 直接 while(*string++) 判断即可2)while((string = *string++) != NULL) a,把strings当前所指向 指针复制到变量string 中。 b,增加strings的值,使它指向下一个值 c.它测试string 是否为空。3) 阅读全文
posted @ 2015-04-14 23:21 码农@163 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #include "stdafx.h" 2 #include 3 #include 4 #include 5 #define MAX_REMIND 50 6 #define MSG_LEN 60 7 int read_line(char str[],int n); 8 int main(... 阅读全文
posted @ 2015-04-14 15:54 码农@163 阅读(308) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include typedef struct stack{int data;struct stack *next;}STACK;STACK *head,*pr;int nodeNum = 0;STACK *Createnote(int num... 阅读全文
posted @ 2015-04-14 08:40 码农@163 阅读(143) 评论(0) 推荐(0) 编辑