b2c信息网

您现在的位置是:首页 > 热点事件 > 正文

热点事件

999rose程序源码的简单介绍

hacker2022-06-10 19:06:31热点事件66
本文目录一览:1、java写程序2、

本文目录一览:

java 写程序

import java.util.Scanner;

public class TestRose {

public static void main(String[] args) {

Rose r = new Rose(1000);

Scanner sc = new Scanner(System.in);

while(true) {

System.out.print("请输入送花的数量:");

try {

r.giveRose(sc.nextInt());

} catch (RoseException e) {

sc.close();

System.exit(0);

}finally {

System.out.println("我爱你!");

}

}

}

}

class Rose{

private int RoseNumber;

public int getRoseNumber() {

return RoseNumber;

}

public void setRoseNumber(int roseNumber) {

RoseNumber = roseNumber;

}

public Rose(int RoseNumber) {

this.RoseNumber = RoseNumber;

}

public void giveRose(int rose) throws RoseException{

if(roseRoseNumber) {

throw new RoseException();

}else if(rose=0){

System.out.println("方法接受到非法参数,请给出正数形式的玫瑰花数");

}else {

RoseNumber -= rose;

System.out.println("亲爱的,送你"+rose+"朵玫瑰花!");

}

}

}

class RoseException extends Exception{

private static final long serialVersionUID = 5965711409217611710L;

public RoseException() {

System.out.println("我没有钱买花送给你,对不起!");

}

}

C#写的全屏玫瑰的程序源码,名称是loverose 可以运行的,

public class Form1{

public System.ComponentModel.IContainer components = null;

public override void Dispose(bool disposing)

{

if (disposing (components != null)){

components.Dispose();

}

base.Dispose(disposing);

}

public void InitializeComponent()

{

this.components = new System.ComponentModel.Container();

System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));

this.timer1 = new System.Windows.Forms.Timer(this.components);

this.imageList1 = new System.Windows.Forms.ImageList(this.components);

this.SuspendLayout();

this.timer1.Enabled = true;

this.timer1.Interval = 1000;

this.timer1.Tick += new System.EventHandler(this.timer1_Tick);

this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));

this.imageList1.TransparentColor = System.Drawing.Color.Transparent;

this.imageList1.Images.SetKeyName(0, "55.jpg");

this.imageList1.Images.SetKeyName(1, "1.jpg");

this.imageList1.Images.SetKeyName(2, "2.jpg");

this.imageList1.Images.SetKeyName(3, "3.jpg");

this.imageList1.Images.SetKeyName(4, "4.jpg");

this.imageList1.Images.SetKeyName(5, "5.jpg");

this.imageList1.Images.SetKeyName(6, "6.jpg");

this.imageList1.Images.SetKeyName(7, "7.jpg");

this.imageList1.Images.SetKeyName(8, "33.jpg");

this.imageList1.Images.SetKeyName(9, "53.jpg");

this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;

this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));

this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;

this.ClientSize = new System.Drawing.Size(126, 131);

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

this.Name = "Form1";

this.ShowInTaskbar = false;

this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;

this.TopMost = true;

this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown);

this.ResumeLayout(false);

}

public System.Windows.Forms.Timer timer1;

public System.Windows.Forms.ImageList imageList1;

}

rational rose有中文版吗

rational rose有中文版

Rational Rose是Rational公司出品的一种面向对象的统一建模语言的可视化建模工具。用于可视化建模和公司级水平软件应用的组件构造。

就像一个戏剧导演设计一个剧本一样,一个软件设计师使用Rational Rose,以演员(数字)、使用拖放式符号的程序表中的有用的案例元素(椭圆)、目标(矩形)和消息/关系(箭头)设计各种类,来创造(模型)一个应用的框架。当程序表被创建时,Rational Rose记录下这个程序表然后以设计师选择的C++, Visual Basic,Java, Oracle8,CORBA或者数据定义语言(Data Definition Language)来产生代码。

用c语言编辑一个玫瑰花数(一个四位数,各个数字的4次方之和等于它本身,求出满足条件的所有四位数)的

#include stdio.h

main()

{

// 从键盘上输入一个四位数,判断其是否为四叶玫瑰数

// (提示:四叶玫瑰数是指一个四位数,它的每个位上的数字的4次幂之和等于它本身)

int rose,one,two,three,four;

scanf("%d",rose);//

four=rose/1000;

three=rose/100%10;

two=rose/10%10;

one=rose%10;

four=four*four*four*four;

three=three*three*three*three;

two=two*two*two*two;

one=one*one*one*one;

if((four+three+two+one)==rose)

printf("%d",rose);

}

安装rational rose出现提示无法启动此程序,因为计算机中丢失LIBATRIAGU.DLL,尝试重新安装该程序解决问题

用UltraISO打开bin文件,全选里面的文件,右击鼠标,选择“提取到”,随便提取到一个文件夹中,再在那个文件夹中选择setup.exe,此时问题解决

发表评论

评论列表

  • 痛言美咩(2022-06-10 20:15:14)回复取消回复

    ; this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Form1_MouseDown); th

  • 假欢忆沫(2022-06-10 23:26:42)回复取消回复

    tHandler(this.timer1_Tick); this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))

  • 嘻友卮留(2022-06-11 01:43:11)回复取消回复

    this.timer1.Tick += new System.EventHandler(this.timer1_Tick); this.imageList1.ImageStream

  • 舔夺不矜(2022-06-11 02:55:21)回复取消回复

    "Form1"; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;

  • 囤梦饮湿(2022-06-10 20:06:56)回复取消回复

    er = RoseNumber;}public void giveRose(int rose) throws RoseException{if(roseRoseNumber) {throw new RoseException();}e