上一页 1 ··· 4 5 6 7 8
摘要: 本文导读:padding margin都是边距的含义,关键问题得明白是什么相对什么的边距.padding是控件的内容相对控件的边缘的边距.margin是控件边缘相对父空间的边距. 在CSS中margin是指从自身边框到另一个容器边框之间的距离,就是容器外距离。在CSS中padding是指自身边框到自 阅读全文
posted @ 2017-07-04 11:11 quliuliu2013 阅读(140) 评论(0) 推荐(0)
摘要: #include #include #include int main() { //方式一 int i; char buf[32]="123.45.67.89"; char str[32]="\0"; char *p1,*p2=str; p1=buf; for(i=0; *(p1+i)!='.';i++) { *(p2+i)=*(p1+i); } printf("%... 阅读全文
posted @ 2017-06-20 17:16 quliuliu2013 阅读(467) 评论(0) 推荐(0)
摘要: //案例一 #include int main() { const char *str="ppp@asdf@asdfasdf@www"; char n1[20],n2[20],n3[20],n4[20]; if(4 == sscanf(str,"%[^@]@%[^@]@%[^@]@%[^@]",n1,n2,n3,n4)) { puts("匹配成功!\n"); } else {... 阅读全文
posted @ 2017-06-20 17:13 quliuliu2013 阅读(236) 评论(0) 推荐(0)
摘要: grep -rn "hello,world!" * * : 表示当前目录所有文件,也可以是某个文件名 -r 是递归查找 -n 是显示行号 -R 查找所有文件包含子目录 -i 忽略大小写 阅读全文
posted @ 2017-06-06 17:45 quliuliu2013 阅读(2427) 评论(0) 推荐(0)
摘要: /*用函数实现不带入第三方变量给主函数原变量赋值*/#include void fun(int *a) { int b=200; *a = b; } int main() { int a=100; fun(&a); printf("a=%d\n", a); return 0; }/*用宏表示swap(a,b)数据交换*/1.... 阅读全文
posted @ 2017-05-26 11:06 quliuliu2013 阅读(206) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 4 void reqorder(char *input,char *output,int counter) 5 { 6 int i=0, j=0; 7 char *p=input; 8 char *buf=NU 阅读全文
posted @ 2017-05-19 18:18 quliuliu2013 阅读(8982) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8