c表白源码
① 求一个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("遇到你 我才发现 曾经所有的条件 似乎都成了我等你的借口 ");
printf("我对你的感情已经决堤 所以 请允许我,从今往后映入你 明媚的眼 ");
printf("我 想和你 耳鬓厮磨,相濡以沫!");
printf("答应我吧! 输入yes,你可以看到我的真心 ");
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(' ');
}
long time;
for (;;)
{
system("color a");
for (time = 0; time<99999999; time++);
system("color b");
for (time = 0; time<99999999; time++);
system("color c");
for (time = 0; time<99999999; time++);
system("color d");
for (time = 0; time<99999999; time++);
system("color e");
for (time = 0; time<99999999; time++);
system("color f");
for (time = 0; time<99999999; time++);
system("color 0");
for (time = 0; time<99999999; time++);
system("color 1");
for (time = 0; time<99999999; time++);
system("color 2");
for (time = 0; time<99999999; time++);
system("color 3");
for (time = 0; time<99999999; time++);
system("color 4");
for (time = 0; time<99999999; time++);
system("color 5");
for (time = 0; time<99999999; time++);
system("color 6");
for (time = 0; time<99999999; time++);
system("color 7");
for (time = 0; time<99999999; time++);
system("color 8");
for (time = 0; time<99999999; time++);
system("color 9");
}
getchar();
return 0;
}
运行效果:
(1)c表白源码扩展阅读:
printf函数使用注意事项
1、域宽
%d:按整型数据的实际长度输出。
如果想输出指定宽度可以指定域宽,%md--&gt;m域宽,打印出来以后,在控制台上,显示m位;
如果我们要打印的数的位数如果超过我们设定m则原样输出;
如果我们要打印的数的位数如果小于我们设定的位数,则补空白,具体如下:
如果m为正数,则左对齐(左侧补空白);
如果m为负数,则右对齐(右侧补空白)。
2、转义字符
如果想输出字符"%",则应该在“格式控制”字符串中用连续两个%表示。
如:printf("%f%%",1.0/3);输出结果:0.333333%。
② 求C语言表白代码并且告诉我怎么用
//由*组成的520三个数字在控制台窗口从左向右循环移动
#include<stdio.h>
#include<time.h>
void update(char d[][9][12],int sp)
{
int i,j;
for(i=0;i<9;i++)
{
for(j=0;j<sp;j++)
putchar(' ');
for(j=0;j<12;j++)
if(1==d[0][i][j])
putchar('*');
else
putchar(' ');
for(j=0;j<12;j++)
if(1==d[1][i][j])
putchar('*');
else
putchar(' ');
for(j=0;j<12;j++)
if(1==d[2][i][j])
putchar('*');
else
putchar(' ');
putchar('\n');
}
}
int main()
{
char d[][9][12]=
{
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,0,0,0,0,0,0,0,0,
0,0,1,1,0,0,0,0,0,0,0,0,
0,0,1,1,0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,0,0,0,0,0,0,1,1,0,0,
0,0,0,0,0,0,0,0,1,1,0,0,
0,0,0,0,0,0,0,0,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,0,0,0,0,0,0,1,1,0,0,
0,0,0,0,0,0,0,0,1,1,0,0,
0,0,0,0,0,0,0,0,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,0,0,0,0,0,0,0,0,
0,0,1,1,0,0,0,0,0,0,0,0,
0,0,1,1,0,0,0,0,0,0,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,0,0,0,0,1,1,0,0,
0,0,1,1,1,1,1,1,1,1,0,0
};
const int Interval=1,Speed=5;
int i,j,sp=0;
time_t t1,t2;
update(d,sp);
time(&t1);
while(1)
{
time(&t2);
if(difftime(t2,t1)>=Interval)
{
system("cls");
update(d,sp+=Speed);
t1=t2;
if(44/Speed*Speed==sp)
sp=0;
}
}
}
③ 求C语言编写的表白程序,要代码
呃,你还不如用vbs,网上也有一堆教程和例子,很简单,随便看一下就知道怎么写了。
DimmyName,herName,myNameAns,herNameAns
myName="池早早"
herName="欧浩辰"
MsgBox(herName+",我喜欢你!我的脑和心,我全身上下每一个器官都在说着我喜欢你。")
do
herNameAns=InputBox("我喜欢谁?","某人的名字")
loopwhileherNameAns<>herName
do
myNameAns=InputBox("谁喜欢"+herName+"?","某人的名字")
loopwhilemyNameAns<>myName
do
myNameAns=InputBox("大声点我听不见!","你的名字")
loopwhilemyNameAns<>myName
MsgBox(herName+",这是我为你准备的药,你趁热吃吧!")
.........................保存为xxx.vbs文件就能运行了
④ 求用c语言帮我写个程序,表白呜 要求:输入你最爱的人的名字,屏幕就会打印”xxx,我爱你”和一颗心
#include<stdio.h>
intmain()
{
charname[30];
inti;
floaty,x,a;
printf("输入你最爱的老老埋人的名字:");
scanf("%s",&name);
printf("%s,我爱你 ",name);
for(y=1.5f;y>-1.5f;y-=0.1f){
for(x=-1.5f;x<1.5f;x+=0.05f)含拦{
侍蚂a=x*x+y*y-1;
putchar(a*a*a-x*x*y*y*y<=0.0f?'*':'');
}
putchar(' ');
}
system("pause");
}
⑤ 程序员的表白代码
程序员的表白代码
第一条语言:Java代码翻译:直到死之前,每天爱你多一点代码:while(lifeend){love++;}
第二条语言:C语言代码翻译:.代码:#incldestdio.hintmain(){printf(HelloWorldn);retrn0;}//.
第三条语言: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代码代码翻译:深圳相遇,至死不渝代码:-mole(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++代码表白,要咋写呢
核心:while(day+=1):loveyou +=1if (world==None or mylife==None):break每天多爱你一点,直到世界或者我生命的终结c++不会,用py写的,学渣,错了别喷
⑦ 求一个示爱的小程序 C语言
void a(int aa)
{for(int i=0;i<aa;i++)printf(" ");}
void b()
{printf ("*");}
char c(int cc)
{printf("%c",cc);return 0;}
int main()
{a(6);b();a(3);b();a(5);b();a(3);b();
printf (" ");
a(4);b();a(8);b();a(8);b();
printf (" ");
a(3);b();a(19);b();
printf (" ");
a(3);b();a(4);c(73);a(1);c(76);c(111);c(118);
c(101);a(1);c(89);c(111);c(117);a(5);b();
printf (" ");
a(4);b();a(17);b();
printf (" ");
a(6);b();a(13);b();
printf (" ");
a(8);b();a(9);b();
printf (" ");
a(10);b();a(5);b();
printf (" ");
a(13);b();
printf (" ");return 0;
}
效果如下: