上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 75 下一页
摘要: JAVA: import static java.lang.System.out; public class Ternary { public static void main(String[] args) { int a = 4, b = 5; out.println(++a == b-- ? a 阅读全文
posted @ 2020-05-27 09:45 profesor 阅读(206) 评论(0) 推荐(0)
摘要: 体会宏的定义方法 阅读全文
posted @ 2020-05-27 09:31 profesor 阅读(1361) 评论(0) 推荐(0)
摘要: Python ONE-LINER LIST COMPREHENSION 阅读全文
posted @ 2020-05-27 08:41 profesor 阅读(206) 评论(0) 推荐(0)
摘要: 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 阅读(198) 评论(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 阅读(682) 评论(0) 推荐(0)
摘要: 一维数组的创建方法 //第一种创建array的方法: String[] familyMembers = new String[4]; familyMembers[0] = "jerry"; familyMembers[1] = "elaine"; familyMembers[2] = "george 阅读全文
posted @ 2020-05-25 22:45 profesor 阅读(683) 评论(0) 推荐(0)
摘要: public class Arrays { public static void main(String[] args) //返回值设为String { for (String name : names()) System.out.println(name); } public static Str 阅读全文
posted @ 2020-05-25 22:40 profesor 阅读(182) 评论(0) 推荐(0)
摘要: //一维随机数组 public class RandomArray { public static void main(String[] args) { int[] nums = new int[(int) (Math.random() * 10)]; System.out.println("len 阅读全文
posted @ 2020-05-25 22:08 profesor 阅读(802) 评论(0) 推荐(0)
上一页 1 ··· 65 66 67 68 69 70 71 72 73 ··· 75 下一页