11 2016 档案

摘要:1 #include <stdio.h> 2 #define MAX 10 3 void MatrixMutiply(int m,int n,int l,int MatrixA[MAX][MAX],int MatrixB[MAX][MAX],int MatrixResult[MAX][MAX]) 4 阅读全文
posted @ 2016-11-07 17:28 OVER_AGAIN_THIS 阅读(274) 评论(0) 推荐(0)
摘要:或将if (strstr(s,t)!=NULL);改一下 子串要求连续的出现在母串中; strstr函数:strstr(str1,str2) 函数用于判断字符串str2是否是str1的子串。如果是,则该函数返回str2在str1中首次出现的地址;否则,返回NULL。 str1: 被查找目标 stri 阅读全文
posted @ 2016-11-07 17:26 OVER_AGAIN_THIS 阅读(1198) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <string.h>//添加字符串头文件 3 4 int Subsequence(char s[], char t[]) 5 { 6 int m,n,i,j; 7 n = strlen(s); //n表示序列S的长度 8 m = str 阅读全文
posted @ 2016-11-07 17:08 OVER_AGAIN_THIS 阅读(3185) 评论(0) 推荐(0)
摘要:1:导入图形界面方法(输入方法) 2:显示输出 阅读全文
posted @ 2016-11-05 09:23 OVER_AGAIN_THIS 阅读(134) 评论(0) 推荐(0)
摘要:键盘输入: 可以用Scanner类创建一个对象: reader对象用于调用各种方法完成输入类型; 1:nextBoolean() 2:nextByte() 3:nextShort() 4:nextInt() 5:nextLong() 6:nextFloat() 7:nextDouble() 阅读全文
posted @ 2016-11-05 09:02 OVER_AGAIN_THIS 阅读(152) 评论(0) 推荐(0)