摘要: 1 public class test72 { 2 /** 3 * 求裴波那契函数的第n项 4 * 5 * 6 * @param args 7 */ 8 public static void main(String[] args) { 9 10 int num = fac1(10); 11 Syst 阅读全文
posted @ 2020-04-26 20:20 听说在北郭 阅读(178) 评论(0) 推荐(0)
摘要: 1 public class test72 { 2 /** 3 * 找出只出现一次的数字 4 * 使用计数器 5 * 6 * @param args 7 */ 8 public static void main(String[] args) { 9 int arr1[] = {1, 1, 4, 3, 阅读全文
posted @ 2020-04-26 20:08 听说在北郭 阅读(200) 评论(0) 推荐(0)
摘要: 打印当前年龄的人是哪个年龄段的 1 import java.util.Scanner;//scanner的头文件 2 public class test4 { 3 4 public static void main(String[] args) { 5 Scanner scan = new Scan 阅读全文
posted @ 2020-04-22 21:17 听说在北郭 阅读(293) 评论(0) 推荐(0)
摘要: 输入三个数,比较大小 1 import java.util.Scanner;//scanner的头文件 2 public class test3{ 3 public static void main(String[] args) { 4 Scanner scan = new Scanner(Syst 阅读全文
posted @ 2020-04-21 20:23 听说在北郭 阅读(160) 评论(0) 推荐(0)
摘要: 1 public class test2{ 2 public static void main(String[] args){ 3 int a = 10; 4 int b = 20; 5 int c = 30; 6 int max = (a > b) ? (a > c ? a : c) : (b > 阅读全文
posted @ 2020-04-18 18:39 听说在北郭 阅读(1703) 评论(0) 推荐(0)
摘要: (1)采用存储程序方式,指令和数据不加区别混合存储在同一个存储器中,数据和程序在内存中是没有区别的,它们都是内存中的数据,当EIP指针指向哪 CPU就加载那段内存中的数据,如果是不正确的指令格式,CPU就会发生错误中断. 在现在CPU的保护模式中,每个内存段都有其描述符,这个描述符记录着这个内存段的 阅读全文
posted @ 2020-04-17 19:28 听说在北郭 阅读(402) 评论(0) 推荐(0)
摘要: 1 public class test1{ 2 public static void main(String[] args){ 3 int num = 10; 4 System.out.println(num); 5 System.out.println(Integer.MAX_VALUE); 6 阅读全文
posted @ 2020-04-17 18:04 听说在北郭 阅读(190) 评论(0) 推荐(0)
摘要: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } } 阅读全文
posted @ 2020-04-17 10:40 听说在北郭 阅读(167) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 3 void getInput(); 4 5 void getInput() 6 { 7 int ch; 8 9 if ((ch = getchar()) != '!') 10 { 11 getInput(); 12 } 13 else 14 { 15 阅读全文
posted @ 2020-04-14 19:33 听说在北郭 阅读(217) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 3 int main() 4 { 5 char *array[5] = {"FishcC", "zhangye", "star", "evade", "lidong"}; 6 char *(*p)[5] = &array; 7 int i, j; 8 f 阅读全文
posted @ 2020-04-13 18:01 听说在北郭 阅读(136) 评论(0) 推荐(0)