摘要: JAVA public class Args { public static void main(String[] args) { // for (String arg : args) // System.out.println(arg); //或者下面的遍历方法 for (int i = 0; i 阅读全文
posted @ 2020-05-26 23:38 profesor 阅读(199) 评论(0) 推荐(0)
摘要: /* 典型的Switch-case程序题: 成绩等级划分: >= 90 A >= 80 B >= 70 C >= 60 D < 60 E */ import java.util.Scanner; public class SwitchInt { public static void main(Str 阅读全文
posted @ 2020-05-26 10:47 profesor 阅读(1134) 评论(0) 推荐(0)
摘要: #include <stdio.h> int main() { char a[] = "The quick brown fox jumps over the lazy dog."; a[4] = '\0'; //a[] = "The \0uick brown fox jumps over the l 阅读全文
posted @ 2020-05-26 10:18 profesor 阅读(961) 评论(0) 推荐(0)
摘要: #include <stdio.h> //找出一维数组中最大最小的数 int max(int *array, int len); //原型声明 int min(int *array, int len); //原型声明 int main() { int a[] = {1, 2, 4, 7, 10, 1 阅读全文
posted @ 2020-05-26 10:03 profesor 阅读(683) 评论(0) 推荐(0)