• c语言,基础,练习,大小写转换

    #include<stdio.h> void main() { char c1,c2,c3,c4,c5; /*定义字符类型的变量c1,c2,c3,c4,c5 */ c1='c'; /*赋值*/ c2='h'; c3='i'; c4='n'; c5='a'; c1=c1-32;

    0
    558
    301B
    2011-01-22
    33
  • c语言水仙花练习#include<stdio.h>

    水仙花c语言#include<stdio.h> #include <math.h> void main() /*主函数*/ { int num, a,b,c; /* 定义a,b,c为整形函数 */ for(a=1;a<=9;a++) /*a是百位上数字,范围是1~9*/

    5
    1654
    450B
    2011-01-22
    38
  • j2meshouji

    public class WelcomForm extends Canvas implements CommandListener { Image img1; Command gocmd; Timer time=new Timer(); Font f; int y; public WelcomForm() { setTitle("欢迎界面"); try{ img1=Image.createImage("/_home_8.png"); }catch(IOException e) { System.out.println("找不到图片");} y=getHeight()/2-img1.getHeight()/2; // Ticker t=new Ticker f= Font.getFont(Font.FACE_SYSTEM,Font.STYLE_BOLD|Font.STYLE_ITALIC,Font.SIZE_MEDIUM); gocmd=new Command("进入",Command.OK,1); this.addCommand(gocmd); this.setCommandListener(this); time.schedule(new TimerTask() { public void run() { repaint(); y=y+5; if(y>getHeight()) { time.cancel(); MainClass.mainDis.showMain(); } } },0,150); } public void paint(Graphics g) { int Width=this.getWidth(); int height=this.getHeight(); g.setClip(0, y, Width, 5);

    0
    43
    2KB
    2010-12-25
    1
关注 私信
上传资源赚积分or赚钱