缓冲信道 语法结构:cap为容量 ch := make(chan type, cap) 缓冲信道支持len()和cap()。 只能向缓冲信道发送容量以内的数据。 只能接收缓冲信道长度以内的数据。 缓冲信道的容量是指信道可以存储的值的数量。我们在使用 make 函数创建缓冲信道的时候会指定容量大小。 ...
分类:
其他好文 时间:
2019-11-09 13:57:30
阅读次数:
75
一、引入相关包 <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-core</artifactId> <version>1.2.3</version> </dependency> <dependency> <grou ...
分类:
编程语言 时间:
2019-11-08 16:31:53
阅读次数:
99
1、 #include <stdio.h> #include <string> int main() { char ch; int space_1 = 0; int break_1 = 0; int other_1 = 0; printf("请输入字符:"); while ((ch=getchar( ...
分类:
其他好文 时间:
2019-11-07 14:56:47
阅读次数:
86
//part1 ex2.1#include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; print ...
分类:
其他好文 时间:
2019-11-06 09:12:32
阅读次数:
78
//ex2.1#include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量h ...
分类:
其他好文 时间:
2019-11-06 01:21:38
阅读次数:
70
#include<stdio.h> int main (){ int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="hello,world!"; int y=3,z=4; printf("%d %d\n",y,z) ...
分类:
其他好文 时间:
2019-11-06 01:21:17
阅读次数:
84
#include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; printf("%d %d\n", ...
分类:
其他好文 时间:
2019-11-06 01:07:52
阅读次数:
65
part1 ex2-1 #include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; int y=3, z=4; printf ...
分类:
其他好文 时间:
2019-11-06 00:54:06
阅读次数:
82
#include<stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello,World!"; int y=3,z=4; printf("%d %d\n",y,z) ...
分类:
其他好文 时间:
2019-11-06 00:31:14
阅读次数:
89
#include <stdio.h> int main() { int x=1234; float f=123.456; double m=123.456; char ch='a'; char a[]="Hello, world!"; // 定义一个数组a,数组中连续存放了字符串常量hello,wo ...
分类:
其他好文 时间:
2019-11-05 23:19:42
阅读次数:
179