c语言的浪漫
① c语言编写闪烁的红心的程序
1、首先第一步要用在一个项目的spalsh界面,进入应用后弹出这个界面,闪烁完毕后跳入主界面,比纯粹的设置背景图片的splash好看炫酷很多。
② 求一个示爱的小程序 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;
}
效果如下:
③ 有哪些代码是让你觉得非常浪漫的
hello world
④ 用C语言编写一个浪漫软件
#include<iostream>
using namespace std;
void prinstar(void)
{
cout<<" 爱爱爱爱爱爱爱爱爱爱爱爱爱"<<endl;
cout<<" 爱"<<endl;
cout<<" 爱 "<<endl;
cout<<" 爱"<<endl;
cout<<" 爱"<<endl;
cout<<" 爱"<<endl;
cout<<" 爱"<<endl;
cout<<" 爱"<<endl;
cout<<" 爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱"<<endl;
}
void print_message(void)
{ cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<"爱 爱 爱 爱 爱爱爱爱爱爱"<<endl;
cout<<"爱 爱 爱 爱 爱 爱"<<endl;
cout<<"爱 爱 爱 爱 爱 爱"<<endl;
cout<<"爱 爱 爱 爱 爱 爱"<<endl;
cout<<"爱 爱 爱 爱 爱 爱爱爱爱爱爱"<<endl;
cout<<"爱 爱 爱 爱 爱 爱 "<<endl;
cout<<"爱 爱 爱 爱 爱 爱"<<endl;
cout<<"爱 爱 爱 爱 爱 爱"<<endl;
cout<<"爱爱爱爱爱 爱 爱 爱爱爱爱爱爱"<<endl;
}
void message(void)
{ cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" 爱 爱 爱 爱 爱"<<endl;
cout<<" 爱 爱 爱 爱 爱 爱 "<<endl;
cout<<" 爱 爱 爱 爱 爱 爱 "<<endl;
cout<<" 爱 爱 爱 爱 爱 爱 "<<endl;
cout<<" 爱 爱 爱 爱 爱 爱"<<endl;
cout<<" 爱 爱 爱 爱 爱 "<<endl;
cout<<" 爱 爱 爱 爱 爱爱"<<endl;
cout<<" 爱 爱 爱 爱 爱 爱"<<endl;
cout<<" 爱 爱 爱 爱 爱 爱"<<endl;
cout<<" 爱 爱 爱"<<endl;
}
int main(void)
{
prinstar();
print_message();
message();
return 0;
}
好像有好多运行不了,我也不知道怎么回事,毕业好多年了,现在连C语言是啥都不知道了,哎,岁月是吧杀猪刀啊
⑤ 向女生表白,用C程序编写一段程序,编什么样的程序才能打动女生~~
好失败的想法 还不如flash动画
⑥ 我想给一个女生表白 怎么用c语言表白
用C语言表白
可以做一个有趣的程序, 比如 一系列趣味问答,之后表示出你的意思
或者 一个简单的动画什么的。
以上是C语言真要用作表白的一个思路, 但实际上 这种方法不可取
除非对方也是一个玩C比较精通的, 否则 她是没法感受到你在这里花费的心血的
效果 甚至还不如画上几十块钱弄一个浪漫的场景。。。
小心最后十动然拒啊
⑦ 怎么用C语言表白,楼主先来
想表白
用C或许是个好办法
比如打印个我爱你
或者打印一个心的图形什么的
也可以做个程序
输入一个名字,输入对了,就打一些示爱的话,其它的
打印没感觉。。。
思路有很多
不过关键看人
小心获得一个十动然拒的结果哦。。。
女孩子
更喜欢的是浪漫。而C,明显不够哎
⑧ c语言放烟花代码
#include "stdlib.h"
#include "graphics.h"
#include "stdio.h"
#include "math.h"
#include "conio.h "
#define PI 3.1425926
main()
{
int gdriver=DETECT,gmode,errorcode;
int a[10],b[10],x,y,c,r,i,j,t;
double rad = 0.0;
/* initialize graphics and local variables */
initgraph(&gdriver , &gmode ,"");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
{
printf("Graphics error : %s/n",grapherrormsg(errorcode));
printf("Please any key to halt:");
getch();
exit(1); /* terminate with an error code */
}
randomize();
for(;!kbhit();)
{
x=rand()%500+100; /*随机中心坐标*/
y=rand()%300+100;
for(r = 0 ;r <= 8 ; r++ ) /*烟花的大小设定*/
{
for(i = 0,rad = 0.0 ; rad < 2*PI; rad += 0.78 ) /*设定坐标*/
{
a[i++] = x + (int)r *10* cos(rad);
b[ i ] = y + (int)r *10* sin(rad);
}
t = i;
for(i=1;i<t;i++)
{
c=rand()%13+1; /*各点的颜色随机*/
setcolor(c); /*功能:将当前图形屏幕的当前笔画颜色置为color.*/
circle(a[i],b[i],1);/* a[i],b[i] 为圆心 1 为半径 画圆 */
}
delay(10000);
delay(10000);
cleardevice();
函数名: cleardevice
功 能: 清除图形屏幕
用 法: void far cleardevice(void);
}
}
getch();
closegraph();
函数名: closegraph
功 能: 关闭图形系统
用 法: void far closegraph(void);
}
(8)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;
}
⑨ 在C语言里,怎么做“我爱你”的一个程序呢
#include<stdio.h>
#include<stdlib.h>
intmain(void)
{
puts("我爱来你自");
returnEXIT_SUCCESS;
}
(9)c语言的浪漫扩展阅读
C++的表达方式
usingnamespaceSystem;
voidmain()
{
Console::WriteLine("我爱你");
}
⑩ c语言浪漫的一句话说说
whie(1)love;