「java表白循环」java编写表白
今天给各位分享java表白循环的知识,其中也会对java编写表白进行解释,如果能碰巧解决你现在面临的问题,别忘了关注本站,现在开始吧!
本文目录一览:
- 1、谁有用java或JavaScrip代码写好的表白程序?
- 2、求JAVA告白代码
- 3、请问java高手 怎么用java写一个窗体程序(向女友表白 带动态的效果) 希望高手能给我指点下
- 4、java循环题目
- 5、JAVA中使用while循环说100遍“我喜欢你”?
- 6、如何用Java代码表白
谁有用java或JavaScrip代码写好的表白程序?
html
head
title玫瑰/title
style type="text/css"
#shusheng {
position: absolute;
width: 100%;
height: 100%;
text-align: center;
}
/style
/head
body
div style="text-align: center"
h1
送给xxx的花
/h1
/div
div id="shusheng"
canvas id="c"/canvas
script
var b = document.body;
var c = document.getElementsByTagName('canvas')[0];
var a = c.getContext('2d');
document.body.clientWidth;
/script
script
with(m=Math)C=cos,
S=sin,
P=pow,
R=random;
c.width=c.height=f=500;
h=-250;
function p(a,b,c){
if(c60)
return[S(a*7)*(13+5/(.2+P(b*4,4)))-S(b)*50,b*f+50,625+C(a*7)*(13+5/(.2+P(b*4,4)))+b*400,a*1-b/2,a];A=a*2-1;
B=b*2-1;
if(A*A+B*B1){
if(c37) {
n=(j=c1)?6:4;o=.5/(a+.01)+C(b*125)*3-a*300;w=b*h;
return[o*C(n)+w*S(n)+j*610-390,o*S(n)-w*C(n)+550-j*350,1180+C(B+A)*99-j*300,.4-a*.1+P(1-B*B,-h*6)*.15-a*b*.4+C(a+b)/5+P(C((o*(a+1)+(B0?w:-w))/25),30)*.1*(1-B*B),o/1e3+.7-o*w*3e-6]
}
if(c32) {
c=c*1.16-.15;o=a*45-20;w=b*b*h;z=o*S(c)+w*C(c)+620;
return[o*C(c)-w*S(c),28+C(B*.5)*99-b*b*b*60-z/2-h,z,(b*b*.3+P((1-(A*A)),7)*.15+.3)*b,b*.7]
}
o=A*(2-b)*(80-c*2);
w=99-C(A)*120-C(b)*(-h-c*4.9)+C(P(1-b,7))*50+c*2;
z=o*S(c)+w*C(c)+700;
return[o*C(c)-w*S(c),B*99-C(P(b, 7))*50-c/3-z/1.35+450,z,(1-b/1.2)*.9+a*.1, P((1-b),20)/4+.05]
}
}
setInterval('for(i=0;i1e4;i++)if(s=p(R(),R(),i%46/.74)){z=s[2];x=~~(s[0]*f/z-h);y=~~(s[1]*f/z-h);if(!m[q=y*f+x]|m[q]z)m[q]=z,a.fillStyle="rgb("+~(s[3]*h)+","+~(s[4]*h)+","+~(s[3]*s[3]*-80)+")",a.fillRect(x,y,1,1)}',0)
/script
/div
/body
/html
保存到html文件,用浏览器打开,文字内容自己写
求JAVA告白代码
哥们,你也太懒了吧?不过你这个初衷很棒呀。妹子也在泡,专业也在学。所以,既然有此想法,何不努力做出来。
代码就免了。就如同我们做项目一样,首先,你得把需求一条条的明确出来。你的需求是什么样的?是需要怎样的一个表白方式,如:请输入密码(刻意的记住女孩的生日),然后跳转到拼图游戏,这个图就是女孩的照片,赢了过后打印你要表白的话等。又比如:设置一系列问答式的话语,最终筛选出来的梦中女神就是表白对象女生的类型。诸如此类等等。你都可以自己构思如何去表白。每一个对于爱的表达方式不一样。你要选择给美眉一次惊喜还是一次深刻?都取决于你。
你要求代码,估计肯定不会有人给你写。太麻烦了。不过你加上你的构思,在oschina、csdn、cnblogs、iteye等网站去找一些源码应该还是有的。
请问java高手 怎么用java写一个窗体程序(向女友表白 带动态的效果) 希望高手能给我指点下
给你一个javascript的程序,文件名保存为1.html就可以
html
head
title网页开屏 /title
/head
script language="javascript"
var x = 10;
var dx = 5;
var y = window.screen.availHeight;
var newWin = window.open("", "myWin", "menubar=0,toolbar=0");
newWin.document.write("I nbsp L nbspo nbspv nbspe nbsp Y nbspo nbspu!");
newWin.resizeTo(x, y);
var time = window.setInterval("active()", 100);
function active() {
if(newWin.closed){
clearInterval(time);
return;
}
else if(x screen.availWidth){
x+=dx;
}
else {
clearInterval(time);
}
newWin.resizeTo(x,y);
}
/script
/html
java循环题目
我也还是学生,我最喜欢帮别人做作业的哈~import java.util.Scanner;/*.使用do-while循环:输出询问“我爱你,嫁给我吧?”,选择“你喜欢我吗?(y/n):",
* 如果输入为y则打印”我们形影不离“,若输入为n,则继续询问*/
public class 第一题 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
do{
System.out.println("我爱你,嫁给我吧?\n你喜欢我吗?(y/n):");
if(s.next().equalsIgnoreCase("y"))
{
System.out.println("我们形影不离");
break;
}
else
continue;
}while(true);
}
} /*任意输入一个整数(小于10位),求这个整数有多少位?*/
import java.util.Scanner;public class 第二题 {
public static void main(String[] args) {
System.out.println("任意输入一个整数(小于10位):");
String str = new Scanner(System.in).next();
System.out.println("这个整数有"+ str.length()+"位");
}}
import java.util.Scanner;/*编写一个程序,最多接受10个数字,并求出其中所有正数的和。统计用户输入正数的个数,并显示个数和这些正数的和*/
public class 第三题 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String str = null;
int count = 0;
int countPlus = 0;
int num = 0;
int sum = 0;
System.out.println("输入最多10个数字(输入e结束):");
while( count = 10 )
{
if((str = s.next()).equalsIgnoreCase("e"))
break;
num = Integer.parseInt(str);
if(num 0)
{
countPlus++;
sum += num;
}
count++;
}
System.out.println("正数的个数为:"+countPlus+",正数的和为:"+sum);
}
}
/*用for循环计算出1~100之间所有不能被3整除的整数的和。*/
public class 第四题 {
public static void main(String[] args) {
int sum = 0;
for(int i = 1;i = 100;i++)
if(i % 3 != 0)
sum += i;
System.out.println(sum);
}
}
/*用for循环计算出1~100之间所有不能被3整除的整数的和,以及输出当和刚好大于或等于2000时的这个数字*/
public class 第五题 {
public static void main(String[] args) {
int sum = 0;
int i = 1;
int j = 0;
for(;i = 100;i++)
if(i % 3 != 0)
{
sum += i;
if(sum = 2000 j == 0)
j = i;
}
System.out.println("和为:"+sum+",刚好大于或等于2000时的数字为:"+j);
}
}
public class 第六题 {
public static void main(String[] args) {
for(int i = 1;i = 7; i += 2)
{
for(int j = 1;j = i;j++)
{
System.out.print("*");
}
System.out.println();
}
for(int i = 5;i = 1;i -= 2)
{
for(int j = 1; j = i;j++)
{
System.out.print("*");
}
System.out.println();
}
}
}
JAVA中使用while循环说100遍“我喜欢你”?
public static void main(String[] args) {
int i = 0;
while (i 100){
System.out.println("我喜欢你");
i++;
}
}
如何用Java代码表白
import i.love.you.*;
public Class Love{
public static void main(String args[]){
You you = new You();
Me me = new Me();
if(Me.sayLoveTo(you)==true You.sayYesTo(me)==true){
Me.loveForever(you);
}
}
}
关于java表白循环和java编写表白的介绍到此就结束了,不知道你从中找到你需要的信息了吗 ?如果你还想了解更多这方面的信息,记得收藏关注本站。
发布于:2022-12-13,除非注明,否则均为
原创文章,转载请注明出处。