08 2020 档案

摘要:1 #!/usr/bin/perl -w 2 ##Copyright (C) 2020 by WangZhe 3 4 use autodie; 5 open my $log_fh,'<','xxx.log'; 6 $match = 0; 7 while(<$log_fh>){ 8 chomp; 9 阅读全文
posted @ 2020-08-11 19:30 will_w 阅读(262) 评论(0) 推荐(0)
摘要:答案: 1 #include<stdio.h> 2 3 void func1(int *a, int *b, int *c) 4 { 5 *a = *a; 6 *b = *a + *b; 7 *c = *a - *c; 8 } 9 10 int main() 11 { 12 int a = 1; 1 阅读全文
posted @ 2020-08-11 16:12 will_w 阅读(411) 评论(0) 推荐(0)
摘要:int:4字节,有符号 char:字符型变量,只占一个字节 使用union联合体,数据共享同一段内存 1 #include<stdio.h> 2 3 union ci{ 4 char c[4]; 5 int i; 6 }uci; 7 8 int main() 9 { 10 printf("int值: 阅读全文
posted @ 2020-08-10 10:44 will_w 阅读(5050) 评论(0) 推荐(0)