10 2021 档案

摘要:1、java.lang.NullPointerException(空指针异常) 调用了未经初始化的对象或者是不存在的对象。经常出现在创建图片,调用数组这些操作中,比如图片未经初始化,或者图片创建时的路径错误等等。对数组操作中出现空指针, 即把数组的初始化和数组元素的初始化混淆起来了。数组的初始化是对 阅读全文
posted @ 2021-10-30 19:26 Lindseyyip 阅读(48) 评论(0) 推荐(0) 编辑
摘要:1.首先在mysql的官网里选择要下的mysql版本和jar包 2.依照教程一步步安装 3.配置tomcat 4.重点说一下期间遇到的问题:1.http 404和http 500 2.access denied at localhost:3306(using password:yes) 一开始我按照 阅读全文
posted @ 2021-10-29 00:15 Lindseyyip 阅读(281) 评论(0) 推荐(0) 编辑
摘要:前提是mysql的配置正确,然后在cmd里输入 mysql -u root -p,输入mysql的密码进入mysql数据库。 比方说要创建的数据库名字为work,数据表的名字为course。course里包含teachername和classname两个数据。 输入以下命令即可。 CREATE DA 阅读全文
posted @ 2021-10-28 19:35 Lindseyyip 阅读(176) 评论(0) 推荐(0) 编辑
摘要:#include<stdio.h> #include<string.h> #include using namespace std; struct node //typedef nodetree; { char x; // int x; nodelc,*rc; // node *lc;node *r 阅读全文
posted @ 2021-10-27 19:22 Lindseyyip 阅读(139) 评论(0) 推荐(0) 编辑
摘要:今天做了建模课的实验报告。 我的课题是员工薪资评定系统、 看了一些相关案例。 阅读全文
posted @ 2021-10-26 19:02 Lindseyyip 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include #include using namespace std; typedef struct node{ char ch; node* lc,*rc; }node,*Node; string s; Node build(Node p,int& k){ if(s[k]'#'){ k++; 阅读全文
posted @ 2021-10-17 19:21 Lindseyyip 阅读(48) 评论(0) 推荐(0) 编辑
摘要:1.数组排序及元素查找 import java.util.Arrays; public class MainClass { public static void main(String args[]) throws Exception { int array[] = { 2, 5, -2, 6, - 阅读全文
posted @ 2021-10-15 20:05 Lindseyyip 阅读(23) 评论(0) 推荐(0) 编辑
摘要:1.字符串的分割 package myproject4; import java.util.; import java.lang.; //1. split(string) 方法通过指定分隔符将字符串分割为数组 public class a { public static void fenge() { 阅读全文
posted @ 2021-10-14 20:30 Lindseyyip 阅读(23) 评论(0) 推荐(0) 编辑
摘要:1.public class StringCompareEmp{ public static void main(String args[]){ String str = "Hello World"; String anotherString = "hello world"; Object objS 阅读全文
posted @ 2021-10-13 23:37 Lindseyyip 阅读(40) 评论(0) 推荐(0) 编辑
摘要:今天运行了上课老师给的代码,有关继承的那部分。 阅读全文
posted @ 2021-10-09 18:25 Lindseyyip 阅读(7) 评论(0) 推荐(0) 编辑
摘要:#include <iostream> using namespace std; #define MAXLEN 255 typedef struct { char ch[MAXLEN+1]; int length; }SString; //next void get_next(SString T,i 阅读全文
posted @ 2021-10-07 23:33 Lindseyyip 阅读(31) 评论(0) 推荐(0) 编辑
摘要:switch(expression){ case value : //语句 break; //可选 case value : //语句 break; //可选 //你可以有任意数量的case语句 default : //可选 //语句 } public class Test { public sta 阅读全文
posted @ 2021-10-06 23:03 Lindseyyip 阅读(18) 评论(0) 推荐(0) 编辑
摘要:1.public class QiangZhiZhuanHuan{ public static void main(String[] args){ int i1 = 123; byte b = (byte)i1;//强制类型转换为byte System.out.println("int强制类型转换为 阅读全文
posted @ 2021-10-04 22:24 Lindseyyip 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include <stdio.h> #include <queue> #include <cstring> #define MAXSIZE 100 using namespace std; int main() { queue <char>q; char a[MAXSIZE]; scanf("%s 阅读全文
posted @ 2021-10-04 19:21 Lindseyyip 阅读(50) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示