自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(15)
  • 收藏
  • 关注

原创 汇编程序题

判断方程AX2+BX+C=0是否有实根。若有实根,则将字节变量TAG置1,否则置0。假设A、B、C均为字节变量,数据范围为-128~127。Data segment   A db 7   B db 8   C db 6   Tag db ?Data endsCode segment   Assume ds:data,cs:codeStart:Mov ax,dataMov ds,axMov al,b...

2018-06-30 22:06:48 829

原创 课本习题5-2

People.javapublic class People {    int age,leg = 2, hand = 2;    protected void showPeopleMess() {    System.out.printf("%d岁,%d只脚,%d只手\t",age,leg,hand);    }}Student.javapublic class Student extends...

2018-06-26 22:43:59 348

原创 课本习题9-2

public class WindownMenu extends JFrame{    JMenuBar menubar;    JMenu menu,subMenu;    JMenuItem item1,item2;    public WindownMenu(){}    public WindownMenu(String s,int x, int y, int w,int h) {    ...

2018-06-25 21:17:41 315

原创 课本例题5.2

abstract class GirlFriend() { abstract void speak(); abstract void cooking(); }class ChinaGirlFriend extends GirlFriend() { void speak() { System.out.println("你好"); } void cooking() { System.out.pri...

2018-06-18 21:56:07 599

原创 数据库实验——数据查询

3. 查询选修1号 课程的学生学号和成绩,并要求对查询结果按成绩的降序排列,如果成绩相同则按学号的升序排列;select sno,gradefrom scwhere cno='1'order by grade desc,sno asc6.查询缺少了成绩的学生的学号和课程号。select sno,cnofrom scwhere grade is null7.查询每个学生的学号,姓名,选修的课程名,成...

2018-06-15 22:58:00 2656

原创 慕课作业8-1

import java.util.Arrays;public class HelloWorld {        //完成 main 方法       public static void main(String[] args) {    int[] scores = {89,-23,64,91,119,52,73};             HelloWorld a = new HelloWo...

2018-06-14 23:14:49 699

原创 慕课7-4作业

public class HelloWorld {        //完成 main 方法    public static void main(String[] args) {                // 创建对象,对象名为hello HelloWorld hello = new HelloWorld();                 // 调用方法并将返回值保存在变量中     ...

2018-06-13 21:53:18 398

原创 Java程序设计3

1.编程创建一个Box类(长方体),在Box类中定义三个变量,分别表示长方体的长(length)、宽(width)和高(heigth),再定义一个方法void setBox(int l, int w, int h) 对这三个变量进行初始化,然后定义一个方法int volume ()来计算长方体的体积。最后,在main()方法中创建一个Box类的对象b,首先通过调用对象b的setBox()方法来设置...

2018-06-11 18:45:59 451

原创 c语言算法

#include "stdio.h"main(){char c; int letters=0,space=0,digit=0,others=0; printf("please input some characters\n"); while((c=getchar())!='\n') { if(c>='a'&&c<='z'||c>='A'&&c&lt...

2018-06-07 22:25:24 218

原创 C语言算法

main(){float sn=100.0,hn=sn/2;int n;for(n=2;n<=10;n++) {  sn=sn+2*hn;/*第n次落地时共经过的米数*/  hn=hn/2; /*第n次反跳高度*/ }printf("the total of road is %f\n",sn);printf("the tenth is %f meter\n",hn);}题目:一只猴子摘了N个...

2018-06-06 21:56:57 173

原创 Java实验题目

 public class KY2_1 {     public static void main(String args[]) {       byte b=0x55;       short s=0x55ff;       int i=1000000;   long l=0xffffL;       char c='a';       float f=0.23F;       double d...

2018-06-05 21:19:21 614

原创 C语言算法

//打印出三位的"水仙花数",所谓"水仙花数"是指一个N位数,其各位数字立方和等于该数 void WaterFlowerNumber(){ int i,j,k,n; printf("Water flower number is:"); for(n = 100; n < 1000; n++) { i = n/100; //分解百位 j = n/10 % 10; //分解十位 k = n ...

2018-06-04 21:24:57 281

原创 C语言算法

#include <stdio.h>#define N 12long combi(int n, int r){    int i;    long p = 1;    for(i = 1; i <= r; i++)        p = p * (n-i+1) / i;    return p;}void paint() {    int n, r, t;    for(n = ...

2018-06-03 22:36:06 175

原创 C

//求两个数的最大公约数int gcd(int a,int b){ int r; if(a < b)        //a < b,则交换两个数 { int temp = a; a = b; b = temp; } r = a % b; while(r != 0) { a = b; b = r; r = a % b; } return b;}//求两个数的最小公倍数数int...

2018-06-02 22:59:25 176

原创 课本例题

public class Circle{    double radius,area;    void setRadius(double r){    radius=r;}    double getRadius(){    return radius;}    double getArea(){    area=3.14*radius*radius;    return area;}}publi...

2018-06-01 23:31:23 294

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除