摘要:
//用PrintWriter写入文件 import java.io.IOException; import java.io.PrintWriter; public class PrintWriteDemo { public static void main(String[] args) throws 阅读全文
摘要:
Employee.java
Manager.java
Driver.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 阅读全文
摘要:
https://mirrors.ustc.edu.cn/help/centos.html 阅读全文
摘要:
指针传递,不返回值 #include <stdio.h> #include <string.h> struct Student { char name[10]; int age; struct subjects { double math; double english; double scienc 阅读全文
摘要:
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. 上面 阅读全文
摘要:
[C]圆的面积,macro
#define PI 3.1415926 //结尾不需要分号
#define area(r) (PI*(r)*(r)) //整体带括号,内部变量带括号 注意:macro中的变量是没有类型的 阅读全文
摘要:
//月份与数字之间的对应;
//switch case语句
//指针数组 阅读全文
摘要:
public class Calculator { public static void main(String[] args) { //为了避免magic number,采取定义变量 double n1, n2; n1 = 56; n2 = 65; System.out.println(calc( 阅读全文
摘要:
//StringBuilder class //java.lang.StringBuilder //methods: .append() .toString() // import java.util.Scanner; public class StrBuilder { public static 阅读全文