本文目录一览:
- 1、抖音上写的电脑表白程序怎么写的
- 2、我爱你编程代码是什么?
- 3、最浪漫的编程代码可复制
- 4、程序员的表白代码
- 5、求一个C语言表白程序
- 6、最浪漫的编程代码可复制手机
抖音上写的电脑表白程序怎么写的
1 在电脑上新建一个txt文件。
2 打开txt文件,复制以下代码粘贴进去(可以修改中文部分,其它代码不要动!)。保存并关闭txt文件。
msgbox("做我女朋友好吗?")
msgbox("房产证上写你名字")
msgbox("保大")
msgbox("我妈会游泳")
3 将txt文件名称后面的“.txt”改为“.vbs”
4 双击改名后的vbs文件即可看到和抖音视频上一样的效果。
我爱你编程代码是什么?
如下:
#includestdio.h
int main()
{
printf("我爱你");
return 0;
}
我爱你相关简介:
我爱你,汉语词汇,一般用于一人向爱慕的另一个人的感情表达,也可以用于亲人间,是一个人对另一个人的感情表达。也可以用于对宠物、物品等寄托了浓重感情的事物的表达,可以男生对女生说,可以女生对男生说,也可以女生对女生说,也可以男生对男生说。
最浪漫的编程代码可复制
import numpy as np
import time
import matplotlib.pyplot as plt
def plot_love(numbers):
for k in range(numbers):
time.sleep(0.05)
def f(x, love=50):
y = x ** (2/3) + 0.9 * np.sqrt(3.3-x**2)*np.sin(love*np.pi*x)
return y
x = np.linspace(0, 2, 1500)
y = [f(i, k) for i in x]
plt.plot(x, y, color='red', linewidth=5)
plt.plot(-x, y, color='red', linewidth=5)
plt.xlim(-2, 2)
plt.show()
plot_love(100)
程序员的表白代码
程序员的表白代码
之一条语言:Java代码翻译:直到死之前,每天爱你多一点代码:while(lifeend){love++;}
第二条语言:C语言代码翻译:IcannotsayHellototheWorldwithoutu.代码:#incldestdio.hintmain(){printf(HelloWorldn);retrn0;}//IcannotsayHellototheWorldwithoutu.
第三条语言:python代码翻译:山无陵,江水为竭,冬雷震震,夏雨雪,天地合,乃敢与君绝!代码:if(mountain.arris==None):if(river.water==None):if(winter.thunder==True):if(summer.snow==True):if(sky.height==ground.height):i.withyou=Falseelse:i.withyou=True.
第四条语言:Erlang代码代码翻译:深圳相遇,至死不渝代码:-module(you_and_me).-export([start/1]).-record(person,{name,address,status}).start(Name)-one_world(Name).one_world(Name)keep_to_love_you(Person).say_goodbye(Person)-io:format(~p:seeyounextworld!~n,[Person#person.name]).see_you_next_world(Name)-one_world(Name).
第五条语言:Java语言代码翻译:爱你到天荒地老代码:while(!world.destroy){System.out.println(iloveyou);}
求一个C语言表白程序
#include stdio.h
#include math.h
#include stdlib.h
#define I 20
#define R 340
#include string.h
int main()
{
char answer[10];
printf("遇到你\n我才发现\n曾经所有的条件\n似乎都成了我等你的借口\n\n");
printf("我对你的感情已经决堤\n所以\n请允许我,从今往后映入你\n明媚的眼\n");
printf("我\n想和你\n耳鬓厮磨,相濡以沫!");
printf("答应我吧!\n输入yes,你可以看到我的真心\n");
scanf("%s", answer);
float y, x, z, f;
for (y = 1.5f; y -1.5f; y -= 0.1f)
{
for (x = -1.5f; x 1.5f; x += 0.05f)
{
z = x * x + y * y - 1;
f = z * z*z - x * x*y*y*y;
putchar(f = 0.0f ? "*********"[(int)(f*-8.0f)] : ' ');
}
putchar('\n');
}
long time;
for (;;)
{
system("color a");
for (time = 0; time99999999; time++);
system("color b");
for (time = 0; time99999999; time++);
system("color c");
for (time = 0; time99999999; time++);
system("color d");
for (time = 0; time99999999; time++);
system("color e");
for (time = 0; time99999999; time++);
system("color f");
for (time = 0; time99999999; time++);
system("color 0");
for (time = 0; time99999999; time++);
system("color 1");
for (time = 0; time99999999; time++);
system("color 2");
for (time = 0; time99999999; time++);
system("color 3");
for (time = 0; time99999999; time++);
system("color 4");
for (time = 0; time99999999; time++);
system("color 5");
for (time = 0; time99999999; time++);
system("color 6");
for (time = 0; time99999999; time++);
system("color 7");
for (time = 0; time99999999; time++);
system("color 8");
for (time = 0; time99999999; time++);
system("color 9");
}
getchar();
return 0;
}
运行效果:
扩展资料:
printf函数使用注意事项
1、域宽
%d:按整型数据的实际长度输出。
如果想输出指定宽度可以指定域宽,%md-->m域宽,打印出来以后,在控制台上,显示m位;
如果我们要打印的数的位数如果超过我们设定m则原样输出;
如果我们要打印的数的位数如果小于我们设定的位数,则补空白,具体如下:
如果m为正数,则左对齐(左侧补空白);
如果m为负数,则右对齐(右侧补空白)。
2、转义字符
如果想输出字符"%",则应该在“格式控制”字符串中用连续两个%表示。
如:printf("%f%%",1.0/3);输出结果:0.333333%。
最浪漫的编程代码可复制手机
代码分享:
#include
#include
int main()
{undefined
double y, x, z;
printf("那一天\n");
printf("之一次遇见你\n");
printf("忘不了\n");
printf("你的容颜\n");
printf("若轻云之蔽月,如流风之回雪\n");
printf("\n\n\n");
printf("其实\n");
printf("有一句话\n");
printf("我一直想对你说:\n");
for(y= 2.5; y = -1.6; y = y - 0.2)
{undefined
for(x = -3; x {undefined
(pow((x*x + y*y - 1), 3) || (x-2.4 x-1)
|| (((x2.2)
|| (x3.4 x-1 y|| (y-1 y2.2)
) ? printf("*") : printf(" ");
}
printf("\n");
}
getchar();
}
代码解析:
1、pow函数是计算平方的函数,pow((x*x + y*y - 1), 3) 2、x-2.4 x-1
是画"I"。
3、剩下的3个分别是U的三边。
4、内外层的for是确定画的位置。