音乐播放器
WTY@blog
 
文章 标签
3

Author © WTY2002 😀 随机音乐
当前浏览器不支持canvas,请更换浏览器后再试
如果温柔是罪,那就只能用拳头来洗清我们犯下的罪孽。

Powered by Gridea | Theme: Fog
载入天数...
载入时分秒...
总访问量:  |   访问人数:
御风飞行中...

放码过来!

  热度: loading...

C语言朗读脚本

#define _CRT_SECURE_NO_WARNINGS
#include"stdio.h"
#include"stdlib.h"
#include"string.h"
int main()
{
	char a[999999]="";
	printf("请输入要朗读的文字:");
	gets(a);
	FILE *b;
	b=fopen("Speak.vbs","w+");
	fprintf(b,"CreateObject(\"SAPI.SpVoice\").Speak(\"%s\")",a);
	fclose(b);
	system("Speak.vbs");
	system("del Speak.vbs");
	return 0;
}


输入完毕后点击回车,会自动朗读输入的类容。
输入的语言不能含有换行符!!!
运行环境,C语言编译器。

C语言个性文字

#include<stdio.h>
int main()
{
   long time;
   char a[20]={-80,-95,-93,-95,
                      -74,-44,-60,-29,
	      -50,-34,-45,-17,
	      -63,-53,-93,-95,'\0'};
   printf("\n\n\n\n\n\n\n\n\n");
   printf("\n\n\n\t\t\t\t\t\t");
   puts(a);
   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");
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++); }
   return 0;
}

运行效果

表白爱心

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define I 20
#define R 340
int main()
{
int i,j,e;
int a;
long time;
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("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");
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++); }
return 0;
}

运行效果

情人节礼物

#include <stdio.h>
#include<stdlib.h>
int main()
{
int  i, j, k, l, m;
char c=42;  
for (i=1; i<=5; i++)    printf("\n"); 
for (i=1; i<=3; i++) { 
for (j=1; j<=32-2*i; j++)  printf(" "); 
for (k=1; k<=4*i+1; k++)  {system("color 1");printf("%c", c);system("color 2");}
for (l=1; l<=13-4*i; l++)  printf(" "); 
for (m=1; m<=4*i+1; m++)  { system("color 5");printf("%c", c);}
printf("\n");  
}
for (i=1; i<=3; i++)
{ 
for (j=1; j<=25; j++)   printf(" "); 
for (k=1; k<=8; k++)
if (k==5&&i==1)
{printf("送给女朋友的情人节礼物");}
else if (k==5&&i!=1) {system("color B");printf("**********************");}
else {system("color 6");printf("%c", c);}
printf("\n"); 
}
for (i=7; i>=1; i--) {
for (j=1; j<=40-2*i; j++)  printf(" "); 
for (k=1; k<=4*i-1; k++) {system("color 4"); printf("%c", c);system("color 3");}
printf("\n");  
}
for (i=1; i<=39; i++)    printf(" "); 
printf("%c\n", c); 
for (i=1; i<=5; i++)    printf("\n");
return 0;
}

运行效果