上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 56 下一页
摘要: //用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 阅读(2844) 评论(0) 推荐(0) 编辑
摘要: Employee.java Manager.java Driver.java 阅读全文
posted @ 2020-06-13 23:01 profesor 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(228) 评论(0) 推荐(0) 编辑
摘要: https://mirrors.ustc.edu.cn/help/centos.html 阅读全文
posted @ 2020-06-13 17:42 profesor 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 指针传递,不返回值 #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 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(341) 评论(0) 推荐(0) 编辑
摘要: [C]圆的面积,macro #define PI 3.1415926 //结尾不需要分号 #define area(r) (PI*(r)*(r)) //整体带括号,内部变量带括号 注意:macro中的变量是没有类型的 阅读全文
posted @ 2020-06-10 22:45 profesor 阅读(192) 评论(0) 推荐(0) 编辑
摘要: //月份与数字之间的对应; //switch case语句 //指针数组 阅读全文
posted @ 2020-06-10 22:11 profesor 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(592) 评论(0) 推荐(0) 编辑
摘要: //StringBuilder class //java.lang.StringBuilder //methods: .append() .toString() // import java.util.Scanner; public class StrBuilder { public static 阅读全文
posted @ 2020-06-09 14:52 profesor 阅读(569) 评论(0) 推荐(0) 编辑
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 56 下一页