网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的考试资料:

 

标题 批处理BAT实现正弦曲线和抛物线代码
内容
    先奉上正弦曲线的:
    ?123456789101112 @echo off&setlocal enabledelayedexpansion ( :loop for %%i in (30 46 55 59 60 59 55 46 30 14 5 1 0 1 5 14) do ( for /l %%j in (1 1 %%i) do ( set "str=!str! " ) echo !str!#&set str= for /l %%i in (1 1 600) do qdj 2>nul ) goto loop )
    根据悬崖之树的代码改造而成,可以说是真正的抛物线了。
    函数解析式:f(x)=-x2-1
    ?12345678910111213141516171819202122232425 @echo off mode con lines=40 cols=80 setlocal enabledelayedexpansion set ctr=0 set "spc= " for %%a in (65 33 17 9 5 3 2 3 5 9 17 33 65) do ( set /a ctr=ctr+4 set ln=%%a for /l %%b in (1,1,!ln!) do ( echo= ) for /l %%b in (0,1,!ctr!) do ( set "spc=!spc! " ) echo !spc!O ping 127.1 -n 1 >nul ping 127.1 -n 1 >nul ping 127.1 -n 1 >nul set "spc= " if !ctr! gtr 56 goto:f cls ) :f pause>nul exit
随便看

 

在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/18 14:43:28