上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 80 下一页
摘要: //统计[1,100]之间的素数个数,并求和 #include <stdio.h> #include <math.h> #include <stdbool.h> bool isPrime(int ); int main() { int num; // scanf("%d", &num); int s 阅读全文
posted @ 2020-06-14 19:23 profesor 阅读(927) 评论(0) 推荐(0)
摘要: //把02.txt中的内容写入到05.txt中 import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; public class Backup { public static void mai 阅读全文
posted @ 2020-06-14 18:31 profesor 阅读(130) 评论(0) 推荐(0)
摘要: public class ArrayDemo { public static void main(String[] args) { int[] a = {1, -9, 34, 67, 0, 12 ,34 ,5, 6, 11}; System.out.println(Sum(a)); } static 阅读全文
posted @ 2020-06-14 17:52 profesor 阅读(527) 评论(0) 推荐(0)
摘要: //用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 阅读(2885) 评论(0) 推荐(0)
摘要: Employee.java Manager.java Driver.java 阅读全文
posted @ 2020-06-13 23:01 profesor 阅读(176) 评论(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 阅读(240) 评论(0) 推荐(0)
摘要: https://mirrors.ustc.edu.cn/help/centos.html 阅读全文
posted @ 2020-06-13 17:42 profesor 阅读(279) 评论(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 阅读(346) 评论(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 阅读(364) 评论(0) 推荐(0)
摘要: [C]圆的面积,macro #define PI 3.1415926 //结尾不需要分号 #define area(r) (PI*(r)*(r)) //整体带括号,内部变量带括号 注意:macro中的变量是没有类型的 阅读全文
posted @ 2020-06-10 22:45 profesor 阅读(214) 评论(0) 推荐(0)
上一页 1 ··· 66 67 68 69 70 71 72 73 74 ··· 80 下一页