c语言浪漫代码 求一个C语言表白程序

\u7528C\u8bed\u8a00\u7f16\u5199\u4e00\u4e2a\u6d6a\u6f2b\u8f6f\u4ef6

#include
using namespace std;
void prinstar(void)
{
cout<<" \u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231"<<endl;
cout<<" \u7231"<<endl;
cout<<" \u7231 "<<endl;
cout<<" \u7231"<<endl;
cout<<" \u7231"<<endl;
cout<<" \u7231"<<endl;
cout<<" \u7231"<<endl;
cout<<" \u7231"<<endl;
cout<<" \u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231\u7231"<<endl;
}
void print_message(void)
{ cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231\u7231\u7231\u7231\u7231\u7231"<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231\u7231\u7231\u7231\u7231\u7231"<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231 "<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<"\u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<"\u7231\u7231\u7231\u7231\u7231 \u7231 \u7231 \u7231\u7231\u7231\u7231\u7231\u7231"<<endl;
}
void message(void)
{ cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 \u7231 "<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 \u7231 "<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 \u7231 "<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 "<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231\u7231"<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<" \u7231 \u7231 \u7231 \u7231 \u7231 \u7231"<<endl;
cout<<" \u7231 \u7231 \u7231"<<endl;
}
int main(void)
{
prinstar();
print_message();
message();
return 0;
}

\u597d\u50cf\u6709\u597d\u591a\u8fd0\u884c\u4e0d\u4e86\uff0c\u6211\u4e5f\u4e0d\u77e5\u9053\u600e\u4e48\u56de\u4e8b\uff0c\u6bd5\u4e1a\u597d\u591a\u5e74\u4e86\uff0c\u73b0\u5728\u8fdeC\u8bed\u8a00\u662f\u5565\u90fd\u4e0d\u77e5\u9053\u4e86\uff0c\u54ce\uff0c\u5c81\u6708\u662f\u5427\u6740\u732a\u5200\u554a

#include
#include
#include
#define I 20
#define R 340
#include
int main()
{
char answer[10];
printf("\u9047\u5230\u4f60\n\u6211\u624d\u53d1\u73b0\n\u66fe\u7ecf\u6240\u6709\u7684\u6761\u4ef6\n\u4f3c\u4e4e\u90fd\u6210\u4e86\u6211\u7b49\u4f60\u7684\u501f\u53e3\n\n");
printf("\u6211\u5bf9\u4f60\u7684\u611f\u60c5\u5df2\u7ecf\u51b3\u5824\n\u6240\u4ee5\n\u8bf7\u5141\u8bb8\u6211\uff0c\u4ece\u4eca\u5f80\u540e\u6620\u5165\u4f60\n\u660e\u5a9a\u7684\u773c\n");
printf("\u6211\n\u60f3\u548c\u4f60\n\u8033\u9b13\u53ae\u78e8\uff0c\u76f8\u6fe1\u4ee5\u6cab\uff01");
printf("\u7b54\u5e94\u6211\u5427\uff01\n\u8f93\u5165yes,\u4f60\u53ef\u4ee5\u770b\u5230\u6211\u7684\u771f\u5fc3\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; 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;
}
\u8fd0\u884c\u6548\u679c\uff1a


\u6269\u5c55\u8d44\u6599\uff1aprintf\u51fd\u6570\u4f7f\u7528\u6ce8\u610f\u4e8b\u9879
1\u3001\u57df\u5bbd
\uff05d\uff1a\u6309\u6574\u578b\u6570\u636e\u7684\u5b9e\u9645\u957f\u5ea6\u8f93\u51fa\u3002
\u5982\u679c\u60f3\u8f93\u51fa\u6307\u5b9a\u5bbd\u5ea6\u53ef\u4ee5\u6307\u5b9a\u57df\u5bbd\uff0c\uff05md\uff0d\uff0d\uff06gt\uff1bm\u57df\u5bbd\uff0c\u6253\u5370\u51fa\u6765\u4ee5\u540e\uff0c\u5728\u63a7\u5236\u53f0\u4e0a\uff0c\u663e\u793am\u4f4d\uff1b
\u5982\u679c\u6211\u4eec\u8981\u6253\u5370\u7684\u6570\u7684\u4f4d\u6570\u5982\u679c\u8d85\u8fc7\u6211\u4eec\u8bbe\u5b9am\u5219\u539f\u6837\u8f93\u51fa\uff1b
\u5982\u679c\u6211\u4eec\u8981\u6253\u5370\u7684\u6570\u7684\u4f4d\u6570\u5982\u679c\u5c0f\u4e8e\u6211\u4eec\u8bbe\u5b9a\u7684\u4f4d\u6570\uff0c\u5219\u8865\u7a7a\u767d\uff0c\u5177\u4f53\u5982\u4e0b\uff1a
\u5982\u679cm\u4e3a\u6b63\u6570\uff0c\u5219\u5de6\u5bf9\u9f50\uff08\u5de6\u4fa7\u8865\u7a7a\u767d\uff09\uff1b
\u5982\u679cm\u4e3a\u8d1f\u6570\uff0c\u5219\u53f3\u5bf9\u9f50\uff08\u53f3\u4fa7\u8865\u7a7a\u767d\uff09\u3002
2\u3001\u8f6c\u4e49\u5b57\u7b26
\u5982\u679c\u60f3\u8f93\u51fa\u5b57\u7b26\uff02\uff05\uff02\uff0c\u5219\u5e94\u8be5\u5728\u201c\u683c\u5f0f\u63a7\u5236\u201d\u5b57\u7b26\u4e32\u4e2d\u7528\u8fde\u7eed\u4e24\u4e2a\uff05\u8868\u793a\u3002
\u5982\uff1aprintf\uff08\uff02\uff05f\uff05\uff05\uff02\uff0c1\uff0e0\uff0f3\uff09\uff1b\u8f93\u51fa\u7ed3\u679c\uff1a0\uff0e333333\uff05\u3002

#include <stdio.h>
int main()
{
int i, j, k, l, m;
char c = '*'; //ASCII码里面 3 就是一个字符小爱心
for (i = 1; i <= 5; i++)
printf("\n"); //开头空出5行
for (i = 1; i <= 4; i++)
{ //前3行中间有空隙分开来写
for (j = 1; j <= 32 - 2 * i; j++)
printf(" "); //左边的空格,每下一行左边的空格比上一行少2个 //8*n-2*i
for (k = 1; k <= 4 * i - 2; k++)
printf("%c", c); //输出左半部分字符小爱心
for (l = 1; l <= 17 - 4 * i; l++)
printf(" "); //中间的空格,每下一行的空格比上一行少4个
for (m = 1; m <= 4 * i - 2; m++)
printf("%c", c); //输出右半部分字符小爱心
printf("\n"); //每一行输出完毕换行
}
for (i = 1; i <= 3; i++)
{ //下3行中间没有空格
for (j = 1; j <= 22 + 1; j++)
printf(" "); //左边的空格 //8*(n-1)+1
for (k = 1; k <= 31; k++)
printf("%c", c); //输出字符小爱心
printf("\n"); //每一行输出完毕换行
}
for (i = 7; i >= 1; i--)
{ //下7行
for (j = 1; j <= 38 - 2 * i; j++)
printf(" "); //左边的空格,每下一行左边的空格比上一行少2个//8*(n+1)-2*i
for (k = 1; k <= 4 * i + 1; k++)
printf("%c", c); //每下一行的字符小爱心比上一行少4个(这个循环是i--)
printf("\n"); //每一行输出完毕换行
}
for (i = 1; i <= 38; i++)
printf(" "); //最后一行左边的空格
printf("%c", c); //最后一个字符小爱心
for (i = 1; i <= 5; i++)
printf("\n"); //最后空出5行
return 0;
}

  • 鏄撹瑷 鍜C璇█鏈変粈涔堝紓鍚屼箞!
    绛旓細鐢ㄦ埛淇敼浠讳竴鍚嶇О瀹氫箟锛屽叾瀹冩墍鏈夊寘鍚鍚嶇О鐨勭▼搴浠g爜鍧囪嚜鍔ㄤ慨姝c傗槄闆嗘垚鍖栧紑鍙戠幆澧冦傞泦鐣岄潰璁捐銆佷唬鐮佺紪鍐欍佽皟璇曞垎鏋愩佺紪璇戞墦鍖呯瓑浜庝竴浣撱傗槄瀛︿範璧勬簮涓板瘜銆傝缁嗙殑甯姪鏂囦欢銆佹暟鍗佸厗鐨勭煡璇嗗簱銆佹暟涓囩敤鎴风殑缃戜笂璁哄潧銆佹暀鏉愬凡鍑虹増鍙戣鈥︹ 鈥滄槗璇█姹夎缂栫▼鐜鈥濆浗瀹剁伀鐐鍒掕瘉涔﹀凡棰佸彂2005骞8鏈3鏃,鍥藉绉戝...
  • 鏁板瀛︿笉濂芥槸鍥犱负绗ㄥ悧?
    绛旓細鐢ㄤ釜鏈绗ㄧ殑鏂规硶锛屼竴閬撻锛屼笉鐭ラ亾鎬庝箞鍋氾紝鍏堢敤鍏紡A锛屼笉琛岋紵鎹㈠叕寮廈锛岃繕涓嶈閭e氨鐢–锛屼竴涓竴涓瘯锛屽彧瑕佷綘涓婅璁ょ湡瀛︿簡锛屼竴鑸兘鑳借寰椾綇銆備笂璇炬病璁颁綇锛屼笅璇惧悗澶氳姳鐐瑰績鎬濄備负浠涔堟垜瑙夊緱鏁扮悊鍖栧鏄擄紝鏂囩闅惧憿 鏁扮悊鍖栫殑鍏紡锛屾潵鏉ュ幓鍘伙紝灏遍偅涔堜簺锛屾垜灏辩畻涓涓竴涓儗涓嬫潵锛岃兘鑺卞闀挎椂闂达紝銆傚彲鑳戒綘涓...
  • 鐞嗙濂崇敓缁欎汉鐨勬劅瑙
    绛旓細濂虫у湪娼滄剰璇嗛噷璁や负杩芥眰鐞嗙瀛︿綅浼氫护鑷繁缂轰箯娴极鍥犲瓙銆傝繘鍏ヤ腑瀛︾殑濮戝浠斺旂壒鎸囩洿濂斥斺斿紑濮嬮伒寰ぞ浼氬濂虫х殑瑕佹眰锛屽彉寰椻滃叿鏈夊惛寮曞姏鈥濆拰鈥滀护浜鸿寰楁ф劅鈥濓紝濂冲灏卞簲璇ュ彉寰椾紭闆呮湁濂充汉鍛筹紝濡傚悓鐢峰灏卞簲璇ュ仴澹湁鐢蜂汉鍛炽傚湪2011骞淬婁粖鏃ュ績鐞嗗銆嬫浘鎸囧嚭锛屽悇绫荤爺绌惰〃鏄庡コ鎬ф櫘閬嶈涓猴細宸ョ濂虫х己灏戠敺浜虹紭锛岃屾弧...
  • c璇█鍏ラ棬浠g爜娴极
    绛旓細include<stdio.h> int main(){printf("娴极\n");return 0;}
  • 鏈変粈涔堝ソ鐜╃殑琛ㄧ櫧浠g爜?
    绛旓細琛ㄧ櫧浠g爜澶у叏鍙鍒跺厤璐2 绋嬪簭鍛樼殑琛ㄧ櫧浠g爜 绗竴鏉¤瑷锛欽ava浠g爜缈昏瘧锛氱洿鍒版涔嬪墠锛屾瘡澶╃埍浣犲涓鐐逛唬鐮侊細while(lifeend){love++;} 绗簩鏉¤瑷锛C璇█浠g爜缈昏瘧锛欼cannotsayHellototheWorldwithoutu.浠g爜锛#incldestdio.hintmain(){printf(HelloWorldn);retrn0;}//IcannotsayHellototheWorldwithoutu.绗...
  • 扩展阅读:c语言代码生成器 ... 编程必背100个代码 ... 最浪漫的编程代码可复制免费 ... 玫瑰花的编程代码 ... c++编程跳动爱心代码 ... python编程浪漫代码 ... 简短的浪漫的代码 ... c语言最简单代码 ... c语言有趣的代码 ...

    本站交流只代表网友个人观点,与本站立场无关
    欢迎反馈与建议,请联系电邮
    2024© 车视网