Ⅰ 生日快乐用代码怎么打
你想要什么样子的生日快乐,如果只是单纯的字(红色的大字)
<!doctype html>
<html>
<head>
<meta name="renderer" content="webkit">
<meta charset="utf-8">
<title>茶泡泡</title>
</head>
<body>
<div style="font-size:50px; color:#F00">生日快乐!</div>
</body>
</html>
Ⅱ 生日快乐c语言
#include<stdio.h>#include<math.h>floatf(floatx,floaty,floatz){floata=x*x+9.0f/4.0f*y*y+z*z-1;returna*a*a-x*x*z*z*z-9.0f/80.0f*y*y*z*z*z;}floath(floatx,floatz){for(floaty=1.0f;y>=0.0f;y-=0.001f)if(f(x,y,z)<=0.0f)returny;return0.0f;}intmain(){for(floatz=1.5f;z>-1.5f;z-=0.05f){for(floatx=-1.5f;x<1.5f;x+=0.025f){floatv=f(x,0.0f,z);if(v<=0.0f){floaty0=h(x,z);floatny=0.01f;floatnx=h(x+ny,z)-y0;floatnz=h(x,z+ny)-y0;floatnd=1.0f/sqrtf(nx*nx+ny*ny+nz*nz);floatd=(nx+ny-nz)*nd*0.5f+0.5f;putchar(".:-=+*#%@"[(int)(d*5.0f)]);}elseputchar('');}putchar(' ');}}
Ⅲ 求一段vbs代码,祝福生日
'═════代═══码═══开═══始═════
do
name=inputbox("请输入你的姓名:")
if name="" or name<>"张三" then
msgbox "你输入的姓名不正确,请重新输入"
else
exit do
end if
loop
msgbox name&"祝你生日快乐!",64,"温馨提示"
'═════代═══码═══结═══束═════
请将代码中“张三”改为你需要的名字,注意不要丢掉了代码中的英文引号。
Ⅳ 求赐教,用C++制作一个制作一个祝朋友生日快乐的程序!
#include <iostream>
#include <stdlib.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <windows.h>
using namespace std;
void color(int a)//颜色函数
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),a);
}
int main(){
char a;
color(12);
cout << "Do you want to see your BIRTHDAY CARD( Input y or n )?" << endl;
color(15);
cin >> a;
color(12);
if ( a=='y' ){
cout << "Ok, you will see your birthday card soon!" << endl;
} else {
cout << "That's OK, but happy birthday to you!" << endl;
return 0;
}
Sleep(1000);
color(268);
cout << "HAPPY ";
color(270);
cout << "BRITHDAY ";
color(9);
cout << "TO ";
color(10);
cout << "YOU!" << endl;
color(0);
Sleep(500);
cout << " ";
color(236);
cout << "********";
color(0);
cout << " ";
color(236);
cout << "********" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "************";
color(0);
cout << " ";
color(236);
cout << "************" << endl;
Sleep(500);
cout << "****************************" << endl;
Sleep(500);
cout << "****************************" << endl;
Sleep(500);
cout << "****************************" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "************************" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "********************" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "****************" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "************" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "********" << endl;
Sleep(500);
color(0);
cout << " ";
color(236);
cout << "****" << endl;
Sleep(500);
char c[55] = { 'T' ,'h' ,'a' ,'n' ,'k', ' ' ,'y' ,'o' ,'u', ' ' ,'f' ,'o' ,'r', ' ' ,'l' ,'o' ,'o' ,'k' ,'i' ,'n' ,'g', ' ' ,'a' ,'f' ,'t' ,'e' ,'r', 's', ' ' ,'m' ,'e', ' ' ,'f' ,'o' ,'r', ' ' ,'e' ,'l' ,'e' ,'v' ,'e' ,'n', ' ' ,'y' ,'e' ,'a' ,'r' ,'s', ',', ' ' ,'m' ,'o' ,'m' ,'!', '0' };
for ( int i=0; i<=53; i++ ){
color( ( i+1 ) % 15 + 1 );
cout << c[i];
}
cout << endl;
Sleep(10000);
char d[12] = { 'I', ' ', 'l', 'o', 'v', 'e', ' ', 'y', 'o', 'u', '!', '0' };
int count = 0;
for ( int j=1; j<=1000; j++ ){
count++;
for ( int i=0; i<=10; i++ ){
color(i+1);
cout << d[i];
}
cout << " ";
}
cout << endl;
cout << "What present do you want(Input the number of the present)?" << endl;
char e;
cout << "A clothes(A); ???(B); Lipstick(C)" << endl;
cin >> e;
srand((unsigned)time(NULL));
for ( int i=1; i<=20; i++ ){
system( "cls" );
int s = 1;
int tmp = rand()%4;
switch( tmp ){
case 0:{
tmp++;
break;
}
case 1:{
color(rand()%15+1);
s++;
cout << " # " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " ####### " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
break;
}
case 2:{
color(rand()%15+1);
s++;
cout << " ######### " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " ######### " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " # # " << endl;
color(rand()%15+1);
s++;
cout << " ######### " << endl;
break;
}
case 3:{
color(rand()%15+1);
s++;
cout << " ######### " << endl;
color(rand()%15+1);
s++;
cout << " # " << endl;
color(rand()%15+1);
s++;
cout << " # " << endl;
color(rand()%15+1);
s++;
cout << " # " << endl;
color(rand()%15+1);
s++;
cout << " # " << endl;
color(rand()%15+1);
s++;
cout << " # " << endl;
color(rand()%15+1);
s++;
cout << " ######## " << endl;
break;
}
}
Sleep(i*50);
}
system ( "cls" );
switch( e ){
case 'A':{
color(rand()%15+1);
cout << " # " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " ####### " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " # # " << endl;
break;
}
case 'B':{
color(rand()%15+1);
cout << " ######### " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " ######### " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " # # " << endl;
color(rand()%15+1);
cout << " ######### " << endl;
break;
}
case 'c':{
color(rand()%15+1);
cout << " ######### " << endl;
color(rand()%15+1);
cout << " # " << endl;
color(rand()%15+1);
cout << " # " << endl;
color(rand()%15+1);
cout << " # " << endl;
color(rand()%15+1);
cout << " # " << endl;
color(rand()%15+1);
cout << " # " << endl;
color(rand()%15+1);
cout << " ######## " << endl;
break;
}
}
color(rand()%15+1);
cout << "You are very LUKY!" << endl;
cout << "Please turn your head!" << endl;
cout << "Tab return to continue...";
cout << endl;
color(0);
system( "pause" );
color(rand()%1023+1);
cout << "Are you happy?!" << endl;
color(rand()%1023+1);
cout << "I think you are!!!" << endl;
color(rand()%1023+1);
cout << "...-..---..-.-.--!";
Sleep ( 3000 );
cout << endl;
color(15);
cout << "######" << endl;
cout << " #" << endl;
cout << "######" << endl;
cout << " #" << endl;
cout << "######" << endl;
Sleep( 2000 );
system( "cls" );
cout << " @@@@ " << endl;
cout << "@ @" << endl;
cout << " @ " << endl;
cout << " @ " << endl;
cout << "@@@@@@" << endl;
Sleep ( 2000 );
system( "cls" );
cout << " !! " << endl;
cout << " !!! " << endl;
cout << " !! " << endl;
cout << " !! " << endl;
cout << "!!!!!!" << endl;
Sleep ( 2000 );
system( "cls" );
color( rand()%1023+1 );
cout << " ###### # # ###### # " << endl;
cout << " # # # # # # " << endl;
cout << " # # # # # # " << endl;
cout << " ###### # ###### # " << endl;
cout << " # # # # # " << endl;
cout << " # # # # " << endl;
cout << " ###### # ###### # " << endl;
color(15);
return 0;
}
仅供参考!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ⅳ 帮我提供一个‘祝你生日快乐’的html代码啊
前几天一个朋友找到我,他说他女朋友马上过生日,于是想问问我能不能写一个生日祝福代码。好兄弟的请求当然不能拒绝,直接安排!!
于是我用html写了一个简单的页面:点开后会显示来到这个世界多长时间和祝福话语,下滑后是自转相册(有背景音乐)。
原文链接:
html生日快乐代码
核心代码(不是完整代码):
#head
{
width:100%;
height:100%;
position: absolute;
-webkit-transform-style: preserve-3d;
-webkit-animation:donghua 15s linear 0s infinite;
-moz-transform-style: preserve-3d;
-moz-animation:donghua 15s linear 0s infinite;
-ms-transform-style: preserve-3d;
-ms-animation:donghua 25s linear 0s infinite;
}
#head div
{
position: absolute;
top:0;
left:0;
width:300px;
height:400px;
border:1px solid #000
text-align: center;
line-height:100px;
}
#head div:nth-child(1)
{
-webkit-transform:rotateY(0deg) translateZ(400px);
-moz-transform:rotateY(0deg) translateZ(400px);
-ms-transform:rotateY(0deg) translateZ(400px);
background:url(images/01.png);
background-size:cover;
}
Heart.prototype.draw = function(){
this.size -= this.speedSize;
this.x += this.speedX;
this.y += this.speedY;
ctx.save();
ctx.translate(-1000,this.y);
ctx.scale(this.size, this.size);
ctx.beginPath();
for (var i = 0; i < precision; i++) {
var vector = this.vertices[i];
ctx.lineTo(vector.x, vector.y);
}
ctx.globalAlpha = this.size;
ctx.shadowBlur = Math.round((3 - this.size) * 10);
ctx.shadowColor = "hsla(0, 100%, 60%,0.5)";
ctx.shadowOffsetX = this.x + 1000;
ctx.globalCompositeOperation = "screen"
ctx.closePath();
ctx.fill()
ctx.restore();
};
function render(a){
requestAnimationFrame(render);
hearts.push(new Heart())
ctx.clearRect(0,0,ww,wh);
for (var i = 0; i < hearts.length; i++) {
hearts[i].draw();
if(hearts[i].size <= 0){
hearts.splice(i,1);
i--;
}
}
}
onResize();
window.addEventListener("mousemove", onMove);
window.addEventListener("touchmove", onMove);
window.addEventListener("resize", onResize);
requestAnimationFrame(render);
window.οnlοad=function starttime(){
time(h1,'2000,1,1'); // 出生时间
ptimer = setTimeout(starttime,1000); // 添加计时器
}
function time(obj,futimg){
var nowtime = new Date().getTime(); // 现在时间转换为时间戳
var futruetime = new Date(futimg).getTime(); // 未来时间转换为时间戳
var msec = nowtime-futruetime; // 毫秒 未来时间-现在时间
var time = (msec/1000); // 毫秒/1000
var day = parseInt(time/86400); // 天 24*60*60*1000
var hour = parseInt(time/3600)-24*day; // 小时 60*60 总小时数-过去的小时数=现在的小时数
var minute = parseInt(time%3600/60); // 分 -(day*24) 以60秒为一整份 取余 剩下秒数 秒数/60 就是分钟数
var second = parseInt(time%60); // 以60秒为一整份 取余 剩下秒数
obj.innerHTML="陈陈<br>你已经来到这个世界:<br>"+day+"天"+hour+"小时"+minute+"分"+second+"秒"+"了<br><span>今日是你的生日,愿所有的快乐、所有的幸福、所有的温馨、所有的好运围绕在你身边。生日快乐!</span><p>下<br>滑<br>有<br>惊<br>喜</p>"
return true;
}32333435363738394
效果如下:
完整项目地址:html生日快乐代码
Ⅵ 哪位仁兄可以用C语言帮我写一个生日快乐的小程序 就是已输入生日 最后可以出现生日蛋糕的图像
#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
const int inf=0xfffffff ;
int preminv[21] ;
int ri[21],hi[21] ;
int total,floornum ;
int ans ;
int dfs (int n,int v,int s,int maxr,int maxh)
{
int res ;
int i,tmpr,tmph,tmpsum ;
if (n>floornum){
if (v==total && s+ri[1]*ri[1]<ans){
ans = s+ri[1]*ri[1] ;
return 1 ;
}
}
for (ri[n]=maxr-1 ; ri[n]>=floornum-n+1 ; ri[n]--){
res = 2.0*(total-v)/ri[n] + ri[1]*ri[1] ;
if (res + s >= ans) continue ;
for (hi[n]=maxh-1 ; hi[n]>=floornum-n+1 ; hi[n]--){
if (v+ri[n]*ri[n]*hi[n]+preminv[floornum-n]>total) continue ;
tmpr = ri[n] ,tmph = hi[n],tmpsum = 0 ;
for (i=n ; i<=floornum ; i++){
tmpsum += tmpr*tmpr*tmph ;
tmpr-- , tmph-- ;
}
if (v+tmpsum<total) continue ;
dfs(n+1,v+ri[n]*ri[n]*hi[n],s+2*ri[n]*hi[n],ri[n],hi[n]) ;
}
}
return 1 ;
}
int main()
{
int tmpv,tmpr,tmph ;
int i ;
tmpv=0 ;
for (i=1 ; i<21 ; i++){
tmpv += i*i*i ;
preminv[i] = tmpv ;
}
while (scanf("%d%d",&total,&floornum)!=EOF){
ans = inf ;
tmpv = total - preminv[floornum-1] ;
if (tmpv>0){
tmpr = sqrt (1.0*tmpv/floornum) + 1 ;
tmph = 1.0*tmpv/(floornum*floornum) + 1 ;
dfs(1,0,0,tmpr,tmph) ;
}
if (ans==inf){
ans = 0 ;
}
printf("%d\n",ans) ;
}
return 0;
}
Ⅶ 关于生日的c++程序源代码
#include <stdio.h>
int main()
{
printf("XXX 生日快乐!\n");
return 0;
}
请使用tc或ANSI C兼容编译器编译,并请在dos提示符下运行此程序,谢谢合作!
Ⅷ 跪求一个C语言程序输出“生日快乐”(TC)
#include<stdio.h>
#include<math.h>
#include<string.h>
#include<stdlib.h>
#include<windows.h>
chars[8];
voidshow1(char*a)
{
system("cls");
printf("☆☆☆★☆☆☆★☆☆☆★ ");
printf("★☆ ");
printf("☆%s☆ ",a);
printf("☆生日快乐☆ ");
printf("☆★ ");
printf("★☆☆☆★☆☆☆★☆☆☆ ");
Sleep(200);
}
voidshow2(char*a)
{
system("cls");
printf("★☆☆☆★☆☆☆★☆☆☆ ");
printf("☆★ ");
printf("☆%s☆ ",a);
printf("☆生日快乐☆ ");
printf("★☆ ");
printf("☆☆☆★☆☆☆★☆☆☆★ ");
Sleep(200);
}
voidshow3(char*a)
{
system("cls");
printf("☆★☆☆☆★☆☆☆★☆☆ ");
printf("☆☆ ");
printf("☆%s★ ",a);
printf("★生日快乐☆ ");
printf("☆☆ ");
printf("☆☆★☆☆☆★☆☆☆★☆ ");
Sleep(200);
}
voidshow4(char*a)
{
system("cls");
printf("☆☆★☆☆☆★☆☆☆★☆ ");
printf("☆☆ ");
printf("★%s☆ ",a);
printf("☆生日快乐★ ");
printf("☆☆ ");
printf("☆★☆☆☆★☆☆☆★☆☆ ");
Sleep(200);
}
voidtransit(char*a,intn)//将名字的格式转成4个字。便于排版
{
inti,t;
memset(s,'',sizeof(s));
switch(n)
{
case2:t=3;break;
case4:t=2;break;
case6:t=1;break;
}
for(i=0;i<n;i++)
{
s[t+i]=a[i];
}
}
intmain()
{
intt;
charname[10];
printf("请输入生日者得姓名(汉字,不要超过3个字): ");
gets(name);
t=strlen(name);
transit(name,t);
while(1)
{
show1(s);
show2(s);
show3(s);
show4(s);
}
return0;
}
Ⅸ 帮我提供一个‘祝你生日快乐’的html代码
你可以找一些网页特效软件,上面的功能很丰富
比如网页特效梦工厂什么的
<Html>
<Head>
<title>跟随鼠标的滚动文字</title>
</Head>
<Body bgColor="#ffffff">
<!--将以下代码加入HTML的<Body></Body>之间-->
<script language="JavaScript1.2">
var scroller_msg='祝你生日快乐'
var dismissafter=0
var initialvisible=0
if (document.all)
document.write('<marquee id="curscroll" style="position:absolute;width:150px;border:1px solid #FF8000;font-size:14pt;font-family:MS Sans Serif;color:#000000;background-color:#0000FF;visibility:hidden">'+scroller_msg+'</marquee>')
function followcursor(){
//move cursor function for IE
if (initialvisible==0){
curscroll.style.visibility="visible"
initialvisible=1
}
curscroll.style.left=document.body.scrollLeft+event.clientX+10
curscroll.style.top=document.body.scrollTop+event.clientY+10
}
function dismissmessage(){
curscroll.style.visibility="hidden"
}
if (document.all){
document.onmousemove=followcursor
document.ondblclick=dismissmessage
if (dismissafter!=0)
setTimeout("dismissmessage()",dismissafter*1000)
}
//-->
</script>
</Body>
</Html>
在软件上看的,可以随着鼠标滚动
祝你兄弟生日快乐!
又及: 这样的礼物是不是寒碜了点?
Ⅹ 有一个圣诞快乐的程序据说是用C语言写的,我想把它改成生日快乐的,跪求原代码~谢谢各位
#include"stdio.h"
#include <string.h>
intmain(void){
chara[]="Iwishyouahappybirthday!Iwishyouahappybirthday!",m[4],i;
printf("\n\n\n");
printf("%*.*s\n",58,21,"_*=__=*_");
printf("%*.*s\n",61,25,"Wishyourbirthday!");
printf("%*.*s\n",63,29,"Iwishyouahappybirthday!");
printf("%*.*s\n",65,33,a);
printf("%*.*s\n",66,35,a);
printf("%*.*s\n",66,35,a);
printf("%*.*s\n",65,33,a);
printf("%*.*s\n",64,31,a);
printf("%*.*s\n",63,29,a);
printf("%*.*s\n",61,25,a);
printf("%*.*s\n",59,21,a);
printf("%*.*s\n",57,17,a);
printf("%*.*s\n",55,13,a);
printf("%*.*s\n",53,9,a);
printf("%*.*s\n",51,5,a);
printf("%*.*s\n",50,3,a);
printf("%*.*s\n",49,1,a);
return0;
}
或者:
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#defineI20
#defineR340
intmain()
{
system("modeconcols=80lines=60");
system("title向你致以最诚挚的祝福!");
chardata[200][60]={{"祝你生日快乐!祝你生日快乐!"},{"\nHappybirthdaytoyou!\n"},{"Happybirthdaymydearfriend!\n"},
{"在你面前的台里本,总有一天是很独特!\n"},{"虽然你和我,没办法选,来到世界的某刻。\n"},{"天气寒冷,又或炎热,又或者什么血型和星座!\n"},
{"每年这刻,我对自己说,有生的日子要更快乐!\n"},{"天气寒冷,又或炎热,又或者什么血型和星座!\n"},{"每年这刻,我对自己说,有生的日子要更快乐!\n"},
{"爸爸妈妈辛苦了!谢谢你们为我付出太多!\n"},{"生日祝福,吹灭蜡烛,我要我自己不许哭。\n"},{"长大了一岁变得靠谱,继续走自己的旅程!\n"},
{"又到这一个时刻,幸福的花火,手机祝福收到很多很多。\n"},{"看到最后一条来自你,写着让我感动的话语。\n"},{"亲爱的朋友要经常联络,我们一起来唱这首歌!\n"},
{"祝你生日快乐额!我们一起快乐!\n"}
};
intsign=0;
inti,j,e;
inta;
longtime;
for(i=1,a=I;i<I/2;i++,a--)
{
for(j=(int) ( I-sqrt(I*I-(a-i)*(a-i)) );j>0;j--)
printf("");
for(e=1;e<=2*sqrt(I*I-(a-i)*(a-i));e++)
printf("\3");
for(j=(int)
( 2*( I-sqrt(I*I-(a-i)*(a-i)) ) );j>0;j--)
printf("");
for(e=1;e<=2*sqrt(I*I-(a-i)*(a-i));e++)
printf("\3");
printf("\n");
}
for(i=1;i<80;i++)
{
if(i==25)
{
printf("======祝,生日快乐。======");
i+=30;
}
printf("\3");
}
printf("\n");
for(i=1;i<=R/2;i++)
{
if(i%2||i%3)
continue;
for(j=(int) ( R-sqrt(R*R-i*i) );j>0;j--)
printf("");
for(e=1;e<=2*( sqrt(R*R-i*i) - (R-2*I) );e++)
printf("\3");
printf("\n");
}
for(;;)
{
system("colora");
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("color4");
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");
for(time=0;time<99999999;time++); system("color ab");
for(time=0;time<99999999;time++); system("color ac");
for(time=0;time<99999999;time++); system("color ad");
for(time=0;time<99999999;time++); system("color ae");
for(time=0;time<99999999;time++); system("color af");
for(time=0;time<99999999;time++);
printf("%s",data[sign]);
sign++;
}
return0;
}