在DOS界面输入什么命令会出现数字雨!拜托各位了 3Q
Dos里面没有这样的命令啦~数字雨一般都是通过程序实现的~ 追问: 有什么程序可以实现? 回答: 既然你说的是像DOS里的数字雨一样的效果,我想那样的是WIN32控 制台 程序。至于用什么语言编写的那都是可以的。如果你想要炫一点的效果我可以发一个屏保给你,是电影 黑客帝国 里的数字雨。效果比你说的控制台黑窗口白字的数字雨炫多了。留个邮箱地址,我给你 追问: 1003166871@qq.com 回答: 已发送,请查收
如何使用CMD命令数字雨?
数字雨效果需要在新建文档中输入数字雨命令代码,并将文件后缀修改为BAT。具体步骤如下:
1、新建一个空白TXT文本文档,双击打开。
2、输入以下代码:
@echo off
color 0a
:start
echo 1 2 3 4 5 g 5 6 7 g t 2 1 3 4 5 6 7 4 3 2 3 5 5 6 7 8 1 2 3 4 5 6 7 8 9 g 3 5 7
ping localhost -n 1 null
echo 1 4 5 6 7 8 9 4 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 2 3 4 5 6 7 8 9 1 1 3 4 5 6 7
ping localhost -n 1 null
echo 0 9 8 7 g 6 5 6 7 8 6 7 8 6 5 4 5 6 5 6 7 8 9 0 6 5 4 3 2 1 3 5 6 7 8 9 0 8 9 3
ping localhost -n 1 null
echo 1 2 3 4 5 g 5 6 7 g t 2 1 3 4 5 6 7 4 3 2 3 5 5 6 7 5 6 7 8 4 3 2 1 2 3 4 5 6 7
ping localhost -n 1 null
goto start
3、按下Ctrl+S,保存文档后关闭。
4、选中文档,按下F2重命名文档,将TXT后缀,修改为BAT。
5、双击运行修改完毕的BAT文件。
6、系统弹出CMD命令窗口,在窗口中,会不停出现数字雨。
注意事项:
数字雨命令代码中,echo后面的数字、字母可以随意修改。
windows cmd 怎么弄数码雨
用cmd展示数码雨,可以通过批处理文件实现。以下是操作方法。
第一步:在桌面点击右键,新建一个txt文本文件。
第二步:打开刚刚新建的txt文件,在里面输入如下代码,并保存。
@echo off
:: Code by hxuan999 2006-11-12 CMD@XP
::
setlocal ENABLEDELAYEDEXPANSION
color 02
for /l %%i in (1,1,80) do (
set Down%%i=0
)
:loop
for /l %%j in (1,1,80) do (
set /a Down%%j-=1
if !down%%j! LSS 0 (
set /a Arrow%%j=!random!%%4
set /a Down%%j=!random!%%15+10
)
if "!Arrow%%j!" == "1" (
set /a chr=!random!%%2
set /p=!chr!NUL
) else (
set /p= NUL
)
)
goto loop
goto :eof
第三步:将刚刚保存的txt文件名改为“数码雨.bat”
第四步:打开“数码雨.bat”,会弹出cmd窗口,展示炫酷的数码雨。这时按F11可以全屏显示。
黑客帝国数字雨使用CMD命令
echo off
color a
pause
:a
echo 100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101100001011010100101010100101010110101010010101110110101001100101010001010101011010011010101001011001101101101101010101001001100101111010110101001010101010101010110101101010101011011100011001010101010100000000000011111111101010010100001000000000000000000000000000000000000000000000000000000000000000000000000000011011011001010101101101010101101010
goto a
cmd代码数字雨教程是什么?
cmd代码数字雨需要建一个文件,在文件内写入相应的代码,保存后,点击运行就可以在电脑屏幕上出现代码雨,具体方法如下:
1、电脑用户在自己的电脑桌面上创建一个文本文件。创建以后打开。
2、打开以后,在文件中输入代码。代码如下图所示。
3、完成代码雨的代码编写以后,点击工具栏中的文件。然后在点击另存为,将下方的文件名的后缀改为“.bat”。文件名用户随意定义。修改好以后点击“保存”。
4、完成文件的编写和保存以后,右击文件点击以管理员身份运行。
5、运行效果如下。
注意事项:
1、代码不要写错,写错不能运行。
2、在另存的时候,如果不显示后缀,将保存文件选成“所有文件”,在文件名称后面直接打.bat即可。
3、双击也可以运行。
可不可以教我黑客帝国数字雨的制作
#include windows.h
#define ID_TIMER 1
#define STRMAXLEN 25 //一个显示列的最大长度
#define STRMINLEN 8 //一个显示列的最小长度
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM) ;
//////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
typedef struct tagCharChain //整个当作屏幕的一个显示列,这是个双向列表
{
struct tagCharChain *prev; //链表的前个元素
TCHAR ch; //一个显示列中的一个字符
struct tagCharChain *next; //链表的后个元素
}CharChain, *pCharChain;
typedef struct tagCharColumn
{
CharChain *head, *current, *point;
int x, y, iStrLen; //显示列的开始显示的x,y坐标,iStrLen是这个列的长度
int iStopTimes, iMustStopTimes; //已经停滞的次数和必须停滞的次数,必须停滞的次数是随机的
}CharColumn, *pCharColumn;
int main(HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
static TCHAR szAppName[] = TEXT ("matrix") ;
HWND hwnd ;
MSG msg ;
WNDCLASS wndclass ;
wndclass.style = CS_HREDRAW | CS_VREDRAW ;
wndclass.lpfnWndProc = WndProc ;
wndclass.cbClsExtra = 0 ;
wndclass.cbWndExtra = 0 ;
wndclass.hInstance = hInstance ;
wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION) ;
wndclass.hCursor = LoadCursor (NULL, IDC_ARROW) ;
wndclass.hbrBackground = (HBRUSH) GetStockObject (BLACK_BRUSH) ;
wndclass.lpszMenuName = NULL ;
wndclass.lpszClassName = szAppName ;
if(!RegisterClass (wndclass))
{
MessageBox (NULL, TEXT ("此程序必须运行在NT下!"), szAppName, MB_ICONERROR) ;
return 0;
}
hwnd = CreateWindow (szAppName, NULL,
WS_DLGFRAME | WS_THICKFRAME | WS_POPUP,
0, 0,
GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
NULL, NULL, hInstance,
NULL) ;
ShowWindow (hwnd, SW_SHOWMAXIMIZED) ; //最大化显示
UpdateWindow (hwnd) ;
ShowCursor(FALSE); //隐藏鼠标光标
srand ((int) GetCurrentTime ()) ; //初始化随机数发生器
while (GetMessage (msg, NULL, 0, 0))
{
TranslateMessage (msg) ;
DispatchMessage (msg) ;
}
ShowCursor(TRUE); //显示鼠标光标
return msg.wParam ;
}
TCHAR randomChar() //随机字符产生函数
{
return (TCHAR)(rand()%(126-33)+33); //33到126之间
}
int init(CharColumn *cc, int cyScreen, int x) //初始化
{
int j;
cc-iStrLen = rand()%(STRMAXLEN-STRMINLEN) + STRMINLEN; //显示列的长度
cc-x = x+3 ; //显示列的开始显示的x坐标
cc-y =rand()%3?rand()%cyScreen:0; //显示列的开始显示的y坐标
cc-iMustStopTimes = rand()%6 ;
cc-iStopTimes = 0 ;
cc-head = cc-current =
(pCharChain)calloc(cc-iStrLen, sizeof(CharChain)); //生成显示列
for(j=0; jcc-iStrLen-1; j++)
{
cc-current-prev = cc-point; //cc-point一个显示列的前个元素
cc-current-ch = '\0';
cc-current-next = cc-current+1; //cc-current+1一个显示列的后个元素
cc-point = cc-current++; //cc-point = cc-current; cc-current++;
}
cc-current-prev = cc-point; //最后一个节点
cc-current-ch = '\0';
cc-current-next = cc-head;
cc-head-prev = cc-current; //头节点的前一个为此链的最后一个元素
cc-current = cc-point = cc-head; //free掉申请的内存要用current当参数
cc-head-ch = randomChar(); // 对链表头的 元素填充
return 0;
}
LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc ;
//ctn 用来确定一个显示链是否 向下前进,如果等待次数超过必须等待的次数,ctn就代表要向下前进
int i, j, temp, ctn; //j为一个显示链中除链表头外的在屏幕上显示的y坐标,temp绿色过度到黑色之用
static HDC hdcMem;
HFONT hFont;
static HBITMAP hBitmap;
static int cxScreen, cyScreen; //屏幕的宽度 高度.
static int iFontWidth=10, iFontHeight=15, iColumnCount; //字体的宽度 高度, 列数
static CharColumn *ccChain;
switch (message)
{
case WM_CREATE:
cxScreen = GetSystemMetrics(SM_CXSCREEN) ; //屏幕宽度
cyScreen = GetSystemMetrics(SM_CYSCREEN) ;
SetTimer (hwnd, ID_TIMER, 10, NULL) ;
hdc = GetDC(hwnd);
hdcMem = CreateCompatibleDC(hdc);
hBitmap = CreateCompatibleBitmap(hdc, cxScreen, cyScreen);
SelectObject(hdcMem, hBitmap);
ReleaseDC(hwnd, hdc);
//创建字体
hFont = CreateFont(iFontHeight, iFontWidth-5, 0, 0, FW_BOLD, 0, 0, 0,
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
DRAFT_QUALITY, FIXED_PITCH | FF_SWISS, TEXT("Fixedsys"));
SelectObject(hdcMem, hFont);
DeleteObject (hFont) ;
SetBkMode(hdcMem, TRANSPARENT); //设置背景模式为 透明
iColumnCount = cxScreen/(iFontWidth*3/2); //屏幕所显示字母雨的列数
ccChain = (pCharColumn)calloc(iColumnCount, sizeof(CharColumn));
for(i=0; iiColumnCount; i++)
{
init(ccChain+i, cyScreen, (iFontWidth*3/2)*i);
}
return 0 ;
case WM_TIMER:
hdc = GetDC(hwnd);
PatBlt (hdcMem, 0, 0, cxScreen, cyScreen, BLACKNESS) ; //将内存设备映像刷成黑色
for(i=0; iiColumnCount; i++)
{
ctn = (ccChain+i)-iStopTimes++ (ccChain+i)-iMustStopTimes;
//
(ccChain+i)-point = (ccChain+i)-head; //point用于遍历整个显示列
//第一个字符显示为 白色
SetTextColor(hdcMem, RGB(255, 255, 255));
TextOut(hdcMem, (ccChain+i)-x, (ccChain+i)-y, ((ccChain+i)-point-ch), 1);
j = (ccChain+i)-y;
(ccChain+i)-point = (ccChain+i)-point-next;
//遍历整个显示列,将这个显示列里的字符从下往上显示
temp = 0 ; //temp绿色过度到黑色之用
while((ccChain+i)-point != (ccChain+i)-head (ccChain+i)-point-ch)
{
SetTextColor(hdcMem, RGB(0, 255-(255*(temp++)/(ccChain+i)-iStrLen), 0));
TextOut(hdcMem, (ccChain+i)-x, j-=iFontHeight, ((ccChain+i)-point-ch), 1);
(ccChain+i)-point = (ccChain+i)-point-next;
}
if(ctn)
(ccChain+i)-iStopTimes = 0 ;
else continue;
(ccChain+i)-y += iFontHeight; //下次开始显示的y坐标 为当前的y坐标加上 一个字符的高度
//如果开始显示的y坐标减去 整个显示列的长度超过了屏幕的高度
if( (ccChain+i)-y-(ccChain+i)-iStrLen*iFontHeight cyScreen)
{
free( (ccChain+i)-current );
init(ccChain+i, cyScreen, (iFontWidth*3/2)*i);
}
//链表的头 为此链表的前个元素,因为下次开始显示的时候 就相当与在整个显示列的开头添加个元素,然后在开始往上显示
(ccChain+i)-head = (ccChain+i)-head-prev;
(ccChain+i)-head-ch = randomChar();
}
BitBlt(hdc, 0, 0, cxScreen, cyScreen, hdcMem, 0, 0, SRCCOPY);
ReleaseDC(hwnd, hdc);
return 0;
case WM_RBUTTONDOWN:
KillTimer (hwnd, ID_TIMER) ;
return 0;
case WM_RBUTTONUP:
SetTimer (hwnd, ID_TIMER, 10, NULL) ;
return 0;
//处理善后工作
case WM_KEYDOWN:
case WM_LBUTTONDOWN:
case WM_DESTROY:
KillTimer (hwnd, ID_TIMER) ;
DeleteObject(hBitmap);
DeleteDC(hdcMem);
for(i=0; iiColumnCount; i++)
{
free( (ccChain+i)-current );
}
free(ccChain);
PostQuitMessage (0) ;
return 0 ;
}
return DefWindowProc (hwnd, message, wParam, lParam) ;
}
VC++中运行
0000000000000000011011011001010101101101010101101010goto acmd代码数字雨教程是什么?cmd代码数字雨需要建一个文件,在文件内写入相应的代码,保存后,点击运行就可以在电脑屏幕上出现代码雨,具体方法如下:1、电脑用户在自己的电脑
hain+i)-point-ch), 1); j = (ccChain+i)-y; (ccChain+i)-point = (ccCh
1010100101000010000000000000000000000000000000000000000000000000000000000000000000000000000110110110010101011000010
从下往上显示 temp = 0 ; //temp绿色过度到黑色之用 while((ccChain+i)-point !=