真好玩 C语言输出Yahoo动态logo

发布时间:2020-06-21 14:28:27 作者:990487026
来源:网络 阅读:1143



先上图,看效果:



真好玩 C语言输出Yahoo动态logo





源代码


chunli@linux:~$ cat main.c
#include <stdio.h>
#include <math.h>
int c,p,i,j,n,F=40,k,m;
float a,x,y,S=0,V=0;

void main()
{
	for(;F--;usleep(50000),F?puts("\x1b[25A"):0)
	{
		for(S+=V+=(1-S)/10-V/4,j=0;j<72;j+=3,putchar(10))
		{
			for(i=0;x=S*(i-27),i++<73;putchar(c[" ''\".$u$"]))
			{
				for(c=0,n=3;n--;)
				{
					for(y=S*(j+n-36),k=0,c^=(136*x*x+84*y*y<92033)<<n,p=6,m=0; m<8;
							k++["<[\\]O=IKNAL;KNRbF8EbGEROQ@BSX""XtG!#t3!^"]/1.16-68>
							x*cos(a)+y*sin(a)?k=p,p="<AFJPTX"[m++]-50:k==p?c^=1<<n,m=8:0)
					{
						a=(k["O:85!fI,wfO8!yZfO8!f*hXK3&fO;:O;#hP;\"i[by asloane"]-79)/14.64;
					}
				}
			}
		}
	}
	return;
}
chunli@linux:~$ gcc main.c -lm  && ./a.out 
                                                                         
                  ...uuuu$$$$$uuuu...                       $$$$$$uuuuuu 
             ..u$$$$$$$$$$$$$$$$$$$$$$$u..                  $$$$$$$$$$$" 
          .u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u.               $$$$$$$$$$$  
        .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.             $$$$$$$$$$$  
      .$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.           $$$$$$$$$$   
     u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u          $$$$$$$$$$   
   .$$$$$$$                $$$$$$$$$$$$$$$$$$$$$$$$.        $$$$$$$$$'   
   $$$$$$$$$$$$$$.      u$$$$$$''''''''''''''$$$$$$$        $$$$$$$$$    
  $$$$$$$$$$$$$$$$.     '$$$$$$...        ..$$$$$$$$$       $$$$$$$$"    
  $$$$$$$$$$$$$$$$$u      "$$$$$$$'    u$$$$$$$$$$$$$       $$$$$$$$     
 u$$$$$$$$$$$$$$$$$$$.     "$$$$'    u$$$$$$$$$$$$$$$u      $$$$$$$$     
 $$$$$$$$$$$$$$$$$$$$$.     '"'   .u$$$$$$$$$$$$$$$$$$      $$$$$$$'     
  $$$$$$$$$$$$$$$$$$$$$u        .u$$$$$$$$$$$$$$$$$$$       $$$$$$$      
  $$$$$$$$$$$$$$$$$$$$$$$      u$$$$$$$$$$$$$$$$$$$$$       $$$$$$"      
  '$$$$$$$$$$$$$$$$$$$$$$      $$$$$$$$$$$$$$$$$$$$$'       $$$$$$       
   "$$$$$$$$$$$$$$$$$$$$$      $$$$$$$$$$$$$$$$$$$$"        "$$$$$       
    '$$$$$$$$$$$$$$$"""""      """""$$$$$$$$$$$$$$'                      
      "$$$$$$$$$$$$$................$$$$$$$$$$$$"         .              
       '"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"'          $$$$$$uu       
         '"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"'            $$$$$$$"       
            '""$$$$$$$$$$$$$$$$$$$$$$$$$""'               $$$$$$$        
                ''"""$$$$$$$$$$$$$"""''                   """""$$        
                         '''''                                           
chunli@linux:~$


推荐阅读:
  1. enum枚举如何在C语言或和C++11中使用
  2. 利用C语言怎么实现一个随机输入多个整数功能

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

c语言 输出 真好玩

上一篇:安卓手机文件管理器:360°LES文件浏览器

下一篇:linux系统中如何设置网卡ip地址

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》