填空题
______语句的功能是从当前方法中退出,返回到调用该方法的地方继续执行下面的语句。
【参考答案】
return
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
函数min()的功能是:在带头结点的单链表中查找数据域中值最小的结点。请填空。#include <stdio.h>struct node{ int data;struct node *next;};int min(struct node *first) *指针first为链表头指针* { struct node *p; int m;p=first->next; m=p->data; p=p->next;for(;p!=NULL; p=______)if(p->data<m) m=p->data;return m;}
点击查看答案
填空题
下列JApplet使用重写paintCompon6t()方法来绘制图像,请填写正确的代码在横线处。import java.awt.*;import javax.swing.*;public class Test extends JApplet{staic String fileName = img().gif ;public void init(){Container cp = getContentPane();cp.setLayout(new GridLayout(1,1));Image i = getImage(getCodeBase(),fileName);MyImagePanel ip=new MyInmagePanel(i);cp. add (ip);}}class MyImagePanel extends JPanel{Image i;public MyImagePanel(Image img){this.i = img;}public void paintComponent(Graphics gg){______gg.drawImage(i,20,20,this);}}
点击查看答案
相关试题
下列关于构造方法的叙述中,错误的是___...
有以下程序:#include<stdio.h>#defin...
功能用来终止当前循环体语句的执行语句是_...
若有以下说明和语句:int c[4][5],...
以下不属于Java Application应用程序编写...