- 博客(9)
- 收藏
- 关注
原创 解决ERROR: Command errored out with exit status 128: git clone -q https://github.com/Z-Zheng/SimpleCV.
将 https://github.com/Z-Zheng/SimpleCV.git改为http://github.com/Z-Zheng/SimpleCV.git。即将https改为http。
2023-07-28 09:59:43 2326 4
原创 java中的哈希码值是怎么计算的?
在Java中,哈希码代表了对象的一种特征,例如我们判断某两个字符串是否==,如果其哈希码相等,则这两个字符串是相等的。其次,哈希码是一种数据结构的算法。常见的哈希码的算法有:1:Object类的hashCode.返回对象的内存地址经过处理后的结构,由于每个对象的内存地址都不一样,所以哈希码也不一样。2:String类的hashCode.根据String类包含的字符串的内容,根据一种特殊算法返回...
2019-12-02 20:08:07 1889
原创 HTML+CSS实例:居中五环
要求:写一个五环,并且使它在浏览器垂直居中效果如图所示:代码如下:<!DOCTYPE html><html> <head> <meta charset="UTF-8"/> <title>居中五环</title> <style type="text/css"> * { ...
2019-11-10 16:08:35 275
原创 zzulioj 1053: 正弦函数(java实现)
题目描述输入x,计算上面公式的前10项和。import java.text.DecimalFormat;import java.util.Scanner;public class java_test { public static void main(String[] args) { Scanner Sc = new Scanner(System.in); Decim...
2019-11-09 17:09:56 914
原创 后插法创建单链表(C语言实现)
#include<stdio.h>#include<stdlib.h>struct node{ int data;//结点数据域 struct node *next;//结点指针域};int main(){ struct node *head,*p,*r; head = (struct node *)malloc(sizeof(st...
2018-11-03 17:36:57 3797
原创 前插法创建单链表(C语言实现)
#include<stdio.h>#include<stdlib.h>struct node{ int data;//结点的数据域 struct node *next;//结点的指针域};int main(){ struct node *head,*p; int i,n; head = (struct node *)mall...
2018-11-03 17:13:44 5120
原创 数据结构—线性表的基本操作
#include<stdio.h>typedef struct{ int data[100]; int length;}Seqlist;//创建线性表creatSeqlist(Seqlist *L){ int i,len,elem; L->length = 0; printf("请输入表长:"); scanf("%d",&...
2018-10-26 23:04:10 527
原创 java实现字符串中的单词个数统计
/* * 思路:要统计单词数,只需要统计字符串中非英文字母的个数(注意判断最后一个字符是否是英文字母) */public class WordDemo { public static void main(String[] args) { String s = "I am a boy,I am come from Henan!";//定义一个字符串并赋值 int sum = word...
2018-10-26 11:49:12 9521
原创 java判断年份是否为闰年
import java.util.Scanner;//导包public class ShuiXianHua{ public static void LeapYear(String[] args) { Scanner Sc = new Scanner(System.in);//创建键盘输入对象 int year = Sc.nextInt();//键盘输入年份 int flag = j...
2018-10-01 15:17:40 1727
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人