上一页 1 ··· 289 290 291 292 293 294 295 296 297 ··· 367 下一页
摘要: 输出金字塔性状。 1、for语句 #include <stdio.h> int main(void) { int i, j, layer; puts("please input the layer"); printf("layer = "); scanf("%d", &layer); for(i = 阅读全文
posted @ 2021-04-27 10:29 小鲨鱼2018 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 输出直角在右上角的等腰直角三角形。 1、for语句 #include <stdio.h> int main(void) { int i, j, len; puts("please input the len."); printf("len = "); scanf("%d", &len); for(i 阅读全文
posted @ 2021-04-27 10:09 小鲨鱼2018 阅读(723) 评论(0) 推荐(0) 编辑
摘要: 输出直角在左上方的等腰直角三角形。 1、for语句 #include <stdio.h> int main(void) { int i, j, len; puts("please input the len."); printf("len = "); scanf("%d", &len); for(i 阅读全文
posted @ 2021-04-27 10:00 小鲨鱼2018 阅读(385) 评论(0) 推荐(0) 编辑
摘要: c语言 4-22 显示出一个横向较长的长方形 1、for语句 #include <stdio.h> int main(void) { int i, j, side1, side2; puts("please input the sides."); do { printf("side1 = "); s 阅读全文
posted @ 2021-04-27 09:28 小鲨鱼2018 阅读(270) 评论(0) 推荐(0) 编辑
摘要: c语言4-21 输出指定边长的正方形 1、 #include <stdio.h> int main(void) { int i, j, len; puts("please input an integer."); printf("len = "); scanf("%d", &len); for(i 阅读全文
posted @ 2021-04-27 09:03 小鲨鱼2018 阅读(501) 评论(0) 推荐(0) 编辑
摘要: c语言 4-20 为九九乘法表增加横纵标题。 1、for语句二层循环 #include <stdio.h> int main(void) { int i, j; printf(" |"); for (i = 1; i <= 9; i++) { printf("%3d", i); } putchar( 阅读全文
posted @ 2021-04-27 08:52 小鲨鱼2018 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据 测试1 [root@centos7 test2]# cat a.txt 01 02 03 04 05 06 07 08 09 10 2、测试2 [root@centos7 test2]# cat a.txt 01 02 03 04 05 06 07 08 09 10 [root@cen 阅读全文
posted @ 2021-04-26 09:45 小鲨鱼2018 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 1、测试数据,测试1 [root@centos7 test2]# seq -f %02g 10 > a.txt [root@centos7 test2]# ls a.txt [root@centos7 test2]# cat a.txt 01 02 03 04 05 06 07 08 09 10 2 阅读全文
posted @ 2021-04-26 09:16 小鲨鱼2018 阅读(869) 评论(0) 推荐(0) 编辑
摘要: R语言中reshape2包 dcast函数数据的重铸 1、测试数据 ID <- c(1, 1, 2, 2) Time <- c(1, 2, 1, 2) X1 <- c(5, 3, 6, 2) X2 <- c(6, 5, 1, 4) mydata <- data.frame(ID, Time, X1, 阅读全文
posted @ 2021-04-25 19:41 小鲨鱼2018 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 数据集的融合是将它重构为这样一种形式,每个测量变量独占一行,行中带有要唯一确定这个测量所需的标识符变量。 1、测试数据 ID <- c(1,1,2,2) Time <- c(1,2,1,2) X1 <- c(5,3,6,2) X2 <- c(6,5,1,4) mydata <- data.frame 阅读全文
posted @ 2021-04-25 19:04 小鲨鱼2018 阅读(987) 评论(0) 推荐(0) 编辑
上一页 1 ··· 289 290 291 292 293 294 295 296 297 ··· 367 下一页