admin 管理员组

文章数量: 887021


2023年12月17日发(作者:c语言用什么软件写出来的)

.

1.程序执行结果是什么.

publicclass Encapsulation {

class ClassValue{

publicinti=15;

}

publicstaticvoid main {

// TODO Auto-generated method stub

}

}

}

}

ClassValue cv=new ClassValue<>;

v.i=25;

v=cv;

n<"v.i:"+v.i>;

ClassValue cv=new ClassValue<>;

second;

n<"cv.i:"+cv.i>;

Encapsulation t=new Encapsulation<>;

<>;

publicvoid first<>{

publicvoid second{

2.程序输出结果是什么

class A {

publicvoid show<> {

}

class B extends A {

publicvoid show<> {

}

publicclass Inherit {

/**

* param args

*/

A a = new B<>;

}

n<"A ">;

}

n<"class a show ">;

}

n<"class a show ">;

publicstaticvoid main {

if {

1 / 4

.

if {

}

}

}

n<"B ">;

3.程序输出结果是什么

publicclass Polymorphic {

/**

* param args

*/

publicstaticvoid main {

// TODO Auto-generated method stub

}

class Parent {

publicvoid show<> {

}

class Sub extends Parent {

publicvoid show<> {

}

}

n<"class Sub show ">;

}

n<"class Parent show ">;

}

Parent pare = new Sub<>;

<>;

4.程序输出结果是什么

publicclass tryCatch {

/**

* param args

*/

publicstaticvoid main {

try {

}

n<"begin ">;

n<"end ">;

return;

} catch {

}

n<"excepton ">;

n<"finally">;

} finally {

2 / 4

.

}

5.对一个整型数组进行排序

publicclass MySort {

publicstaticvoid main {

}

MySort sort = new MySort<>;

;

}

;

int[] arr = newint[] { 3, 22, 11, 5, 400, 99, 20, 22, 5 };

for {

publicvoid sort {// 小到大的排序

int temp = 0;

for {

for {

if {

// 方法一:

/*

* /方法二: targetArr[i] = targetArr[i] + targetArr[j];

* targetArr[j] = targetArr[i] - targetArr[j];

* = targetArr[i] - targetArr[j];

*/

temp = targetArr[i];

targetArr[i] = targetArr[j];

targetArr[j] = temp;

targetArr[i]

// 方法三:

// targetArr[i] = targetArr[i]^targetArr[j];

// targetArr[j] = targetArr[i]^targetArr[j];

// targetArr[i] = targetArr[i]^targetArr[j];

}

}

}

}

}

题目

有两X表student,和scope

Student:学号,##,性别,年龄

Scope:学号,语文,数学,英语

1. 查询X三的学号,##,性别, 语文,数学,英语

2. 查询语文比数学好的同学

3. 查处##相同的学生学号

3 / 4

.

7.画出客户网上买书的实体关系图,并且查出交易金额最大的客户.

4 / 4


本文标签: 数学 语文 结果 软件