会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
profesor
首页
新随笔
订阅
管理
上一页
1
···
73
74
75
76
77
78
79
80
81
···
87
下一页
2020年6月14日
[Java]PrintWriter&FileWriter 写入追加到文件
摘要: //用PrintWriter写入文件 import java.io.IOException; import java.io.PrintWriter; public class PrintWriteDemo { public static void main(String[] args) throws
阅读全文
posted @ 2020-06-14 17:50 profesor
阅读(2895)
评论(0)
推荐(0)
2020年6月13日
[Java]Class Object, Inheritance
摘要: Employee.java Manager.java Driver.java
阅读全文
posted @ 2020-06-13 23:01 profesor
阅读(182)
评论(0)
推荐(0)
如何在CentOS,RedHat上安装java
摘要: https://developers.redhat.com/blog/2018/12/10/install-java-rhel8/ sudo yum install java-11-openjdk-devel sudo yum install java-1.8.0-openjdk-devel
阅读全文
posted @ 2020-06-13 17:47 profesor
阅读(245)
评论(0)
推荐(0)
CentOS使用科大源
摘要: https://mirrors.ustc.edu.cn/help/centos.html
阅读全文
posted @ 2020-06-13 17:42 profesor
阅读(282)
评论(0)
推荐(0)
2020年6月12日
[C]结构Struct与指针,函数
摘要: 指针传递,不返回值 #include <stdio.h> #include <string.h> struct Student { char name[10]; int age; struct subjects { double math; double english; double scienc
阅读全文
posted @ 2020-06-12 19:53 profesor
阅读(351)
评论(0)
推荐(0)
2020年6月11日
[BASH]Until, For, While Loop计算1到100的和
摘要: While Loop #!/bin/bash var=1 total=0 while [ $var -lt 101 ]; do total=$((total + var)) var=$((var+1)) done echo sum is $total 注意: 1.“=”两边一定不能有空格 2. 上面
阅读全文
posted @ 2020-06-11 20:00 profesor
阅读(368)
评论(0)
推荐(0)
2020年6月10日
[C]圆的面积,直角三角形的斜边长,macro
摘要: [C]圆的面积,macro #define PI 3.1415926 //结尾不需要分号 #define area(r) (PI*(r)*(r)) //整体带括号,内部变量带括号 注意:macro中的变量是没有类型的
阅读全文
posted @ 2020-06-10 22:45 profesor
阅读(218)
评论(0)
推荐(0)
[C]月份与数字之间的对应
摘要: //月份与数字之间的对应; //switch case语句 //指针数组
阅读全文
posted @ 2020-06-10 22:11 profesor
阅读(407)
评论(0)
推荐(0)
2020年6月9日
[JAVA]switch case default
摘要: public class Calculator { public static void main(String[] args) { //为了避免magic number,采取定义变量 double n1, n2; n1 = 56; n2 = 65; System.out.println(calc(
阅读全文
posted @ 2020-06-09 21:54 profesor
阅读(610)
评论(0)
推荐(0)
[JAVA]StringBuilder, .append(), .toString()
摘要: //StringBuilder class //java.lang.StringBuilder //methods: .append() .toString() // import java.util.Scanner; public class StrBuilder { public static
阅读全文
posted @ 2020-06-09 14:52 profesor
阅读(586)
评论(0)
推荐(0)
上一页
1
···
73
74
75
76
77
78
79
80
81
···
87
下一页
公告