摘要:
1 #include<stdio.h> 2 #include <stdlib.h> 3 #include<malloc.h> 4 #define OK 1 5 #define ERROR 0 6 #define ElemType int 7 typedef int Status; 8 typedef 阅读全文
摘要:
1 import javax.swing.JOptionPane; // import class JOptionPane 2 3 public class Addition { 4 public static void main( String args[] ) 5 { 6 String firs 阅读全文
摘要:
1 #include<iostream> 2 using namespace std; 3 #define MAXSIZE 100 4 #define OK 1 5 #define ERROR 0 6 typedef int status; 7 typedef struct 8 { 9 int a; 阅读全文
摘要:
1 public class math{ 2 public static void main(String[] args) { 3 Scanner s=new Scanner(System.in); 4 int d=0; 5 int[] a=new int[30]; 6 int[] b=new in 阅读全文
摘要:
枚举 1 public class EnumTest { 2 public static void main(String[] args) { 3 Size s=Size.SMALL; 4 Size t=Size.LARGE; 5 //s和t引用同一个对象? 6 System.out.println 阅读全文
摘要:
Account.java 1 package 第一次; 2 import java.util.*; 3 class Account{ 4 private String accountID; 5 private String accountname; 6 private String operated 阅读全文
摘要:
例11.1 1 import java.util.Scanner; 2 import java.util.*; 3 public class cjava { 4 public static void main(String[]args) { 5 Student1 s1=new Student1(); 阅读全文
摘要:
例13.1 1 import java.util.Scanner; 2 public class cjava { 3 public static void main(String[] args) { 4 float a,b,c,disc; 5 System.out.println("please i 阅读全文
摘要:
例9.6 1 public class cjava { 2 public static void main(String[] args) { 3 Box b1=new Box(15,30,25); 4 System.out.println(b1.height); 5 Box b2=new Box(2 阅读全文
摘要:
例9.5对象的赋值 1 public class cjava { 2 public static void main(String[] args) { 3 Box b1=new Box(15,30,25); 4 System.out.println("The volume of box1 is "+ 阅读全文