SNOWSD

导航

#

[置顶] 数据库乱码问题

摘要: (本文使用Mysql和Navicat、idea做演示,以假设读者对数据库有一定的了解) 请从第一步开始操作 切勿跳关!!!! 切勿跳关!!!! 切勿跳关!!!! 解决思路:逐一排查; 1:在idea建立好链接; 2:向mysql中写入数据; 3:使用cmd检查MySQL table中是否有乱码。 3 阅读全文

posted @ 2020-05-03 12:38 SNOWSD 阅读(218) 评论(0) 推荐(0) 编辑

2021年1月9日 #

c语言学习路程——前n项求和

摘要: 1 #include <stdio.h> 2 3 int main() { 4 int n; 5 double dividend, divisor; 6 double sum = 0.0; 7 int i; 8 double t; 9 10 scanf_s("%d", &n); 11 12 divi 阅读全文

posted @ 2021-01-09 16:01 SNOWSD 阅读(642) 评论(0) 推荐(0) 编辑

c语言学习路程——1~100的素数和

摘要: #include <stdio.h> int main() { int m, n; int i; int count = 0; int sum = 0; scanf_s("%d %d", &m, &n); for (int i = m; i <= n; i++) { int isPrime = 1; 阅读全文

posted @ 2021-01-09 14:13 SNOWSD 阅读(608) 评论(0) 推荐(0) 编辑

2021年1月8日 #

c语言学习历程——给定条件的整数集

摘要: 1 #include <stdio.h> 2 3 4 int main() { 5 int a; 6 int i, j, k; 7 int count = 0; 8 9 scanf_s("%d", &a); 10 11 i = a; 12 13 while (i <= a + 3) { 14 j = 阅读全文

posted @ 2021-01-08 23:18 SNOWSD 阅读(134) 评论(0) 推荐(0) 编辑

c语言学习路程——最大公约数

摘要: 1 #include <stdio.h> 2 3 4 int main() { 5 6 int a = 0; 7 int b = 0; 8 int count=0; 9 scanf_s("%d", &a); 10 scanf_s("%d", &b); 11 while (b != 0) { 12 i 阅读全文

posted @ 2021-01-08 22:40 SNOWSD 阅读(55) 评论(0) 推荐(0) 编辑

c语言的学习路程———整数分解

摘要: #include<stdio.h> int main() { int a; scanf_s("%d", &a); int x = a; int count = 0; int mask = 1; while (a > 9) { a /= 10; mask *= 10; count++; } print 阅读全文

posted @ 2021-01-08 20:17 SNOWSD 阅读(193) 评论(0) 推荐(0) 编辑

2020年5月27日 #

error 找不到jdbc驱动类

摘要: 1、检查jar包导入正常 2、web项目 把jar包复制到tomcat lib目录下,因为文件最终是要跑在tomcat上的; 3、普通项目,百分之一万jar导入错误,重新导入或许重新下载jar包 阅读全文

posted @ 2020-05-27 20:40 SNOWSD 阅读(487) 评论(0) 推荐(0) 编辑

2020年4月30日 #

JAVA编程思想 Ch3.6题

摘要: 练习6:在练习5的基础上,创建一个新的Dog索引,并对其赋值为Spot对象。测试用==和equals()方法来比较引用结果。 1 public class quan { 2 String name; 3 String says; 4 5 public void setName(String name 阅读全文

posted @ 2020-04-30 17:19 SNOWSD 阅读(131) 评论(0) 推荐(0) 编辑

JAVA编程思想 Ch3.5题

摘要: 练习5:创建一个class类,包含连两个String字段 :name、says。在main方法中创建两个Dog方法 一个命名为spot 叫声为 Ruff,另一个命民为scruffy,叫声为:Wuff;然后显示 他们的名字和叫声。 public class quan { String name; St 阅读全文

posted @ 2020-04-30 16:15 SNOWSD 阅读(86) 评论(0) 推荐(0) 编辑