汇编初学,简单C语言翻译为汇编语言

main()
{
int i, n, f; //对于输入的n,该如何在数据段分配呢?
// int i 我是这么写的: i,dd,2 ;请问这里如何获取 i 的地址呢

input(n);   _//这句不知道如何实现_
i = 2;
f = 1;
while (i <= n)
{
    f = f * i;   _//计算 f * i 后,在寄存器EAX中,但是如何存入变量 f 呢_
    i = i + 1;
}
print(f);   //输入、输出需要调用函数,但是不明白如何做

}

以上是C代码,用的masm32,求问翻译成汇编是什么样的?一些问题已经注释。
给出汇编程序也好,简单的解释一下也好,只求弄懂~
先在此感谢

2个回答

直接在vc++里调试程序,然后切换到反汇编(disassembly)面板,可以看vc++编译器生成的机器码对应的汇编。

XueWang1
XueWang1 反汇编如何处理呢,不会用,而且这个也要求手动翻译
大约 3 年之前 回复

函数里的局部变量是好像是用堆栈保存的并不是直接 i dd 2

XueWang1
XueWang1 主函数也必须放在堆栈里吗?这个我就这么写的,而且已经成功输出了。但是不知道还有这个要求……
接近 3 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
C语言翻译为Matlab语言格式
没学过Matlab,不知道怎么搞,有高手求指教下。rn#include rnint map[9][9]=0,0,3,8,1,0,0,0,9, rn 5,0,0,4,0,0,0,8,0, rn 0,6,0,9,0,0,1,0,0, rn 0,0,8,0,3,0,0,0,6, rn 0,0,0,0,0,0,0,0,0, rn 9,0,0,6,0,0,5,0,0, rn 0,0,6,0,0,9,0,1,0, rn 0,1,0,0,0,5,0,0,4, rn 2,0,0,0,4,8,7,0,0; rnvoid display() rn rnint i; rnint j; rnfor(i=0;i<9;i++) rn rn for(j=0;j<9;j++) rn rn if(map[i][j]) rn rn printf("<%d>",map[i][j]); rn rn else rn rn printf("< >"); rn rn rn printf("\n"); rn rn rnrnint check(int x,int y,int *mark)//check函数为该格子可以选择的数字rn rnint i; rnint j; rnint gi; rnint gj; rnint count = 0; rnfor(i=1;i<=9;i++) rn rn mark[i]=0;//初始化rn rnrnfor(i=0;i<9;i++) rn rn mark[map[x][i]]=1; //表示该行该数字已存在rn mark[map[i][y]]=1; //表示该列该数字已存在rn rngi=x/3*3;//九宫格把map分割成9个小块,如果该格子所在行列为(1,4),那么它所在子格子起始为(0,3)到(2,5)的九个小格子rngj=y/3*3; rnrnfor(i=0;i<3;i++) rn rn for(j=0;j<3;j++) rn rn mark[map[gi+i][gj+j]]=1;//此循环为表示所在子格子的九个小格子中已存在该数字rn rn rnrnfor (i=1;i<=9;i++) rn rn if(0==mark[i]) //如果该数字不存在则++ rn rn count++; rn rn rnreturn count; rn rnrnrnvoid crack()//? rn rnint i; rnint j; rnint mark[10]; //标志数字是否已存在 rnint min=10; //记录最少可能数字数rnint ci=-1; //ci,cj用来记录最少可能数字的格子所在行列rnint cj; rnfor (i=0;i<9;i++) rn rn for(j=0;j<9;j++) rn rn if(map[i][j]) rn rn continue; //如果该格子已有数字则跳到下一个格子 rn rn int c=check(i,j,mark); //c为该格子可以选择的数字rn if(0==c) rn rn return; rn rn if(c
汇编语言跳转翻译为c语言if else语句
将条件表达式和语句从c语言翻译成机器代码,最常用的方式是结合有条件和无条件跳转(这里只讨论有条件跳转) 对于大多数情况 汇编代码就是c语言的直接翻译 先看一个例子 c语言的if  else 语句由goto完成
请教 C 语言 memcpy 翻译为 Delphi
int iLat = 0x4143B780; rnfloat fLat;rnmemcpy(&fLat,&iLat,sizeof(int));rnrn有对C熟悉的吗?帮忙个翻译成delphi的代码。rnrnfLat = 12.232300
小弟初学汇编,请求将一段C++代码翻译为汇编语言(C++嵌入汇编)
m_bHitTest = new bool[ GetWidth() * GetHeight() ];rnregister int i =0 , j = 0;rnrn// 翻译下面一段即可rnfor ( i = 0; i < GetHeight(); i ++ )rn for ( j = 0; j < GetWidth(); j ++ )rn rn if ( lpBuffer[i * Width + j] == dwKey )rn m_bHitTest[i * GetWidth() + j] = false;rn elsern m_bHitTest[i * GetWidth() + j] = true;rn rnrn主要是想学一下变量、循环,比较,赋值,还有调用函数等等方法。rn请在源码旁加上对应的C++语言注释~谢谢!!!!
求 C 翻译为 C#
//曲线拟合rn//as titlernrn#include "stdio.h"rn#include "math.h"rn#define num 10rnrnrnfloat neiji(float b[num],float c[num]) //内积函数rn int p;rn float nj=0;rn for (p=1;pmax)rn max=yd[i];rn flag=i;rn rnrn rn printf("当x=%f时,偏差最大=%f,偏差平方和为%f\n",x[flag],max,pcpfh);rnrn printf("继续拟和请按space,按其他键退出");rnrn conti=getchar();rn conti=getchar();rnrn rnrnrnrnrnrn
实在做不了了,pascal语言翻译为C语言
求大家帮帮忙了啊!!!全部分都给了!!rn[code=Delphi(Pascal)]rnprogram filltable;文件名rntype myword=record记录类型,存储每一个扫描的单词rn code:integer; 该单词的内部编码rn content:string; 单词本身rn end;rnconst length=8; 单词限制的长度rnrnvar fi:text;输入文件rn fo:text; 输出文件rnsymbol:array[1..100] of myword;定义接收不同标识符的数组rn j:integer;rn noerror:boolean; 扫描过程中是否有错误rn count:integer; 不同单词的个数rnallinput:integer; 输入单词的总数rnfunction found(tofind:string):boolean;true:已经有该单词;false:现有的数组中还没有该单词rn var i:integer;rn beginrn allinput:=allinput+1;rn found:=false;rn for i:=1 to count dorn if symbol[i].content=tofind then found:=true;rn end;rnrn procedure fillintotable;rn var ch:char;rn tempword:string;rn i:integer;rn beginrn i:=0;rn tempword:='';rn while not eof(fi) do是否到达文件尾rn beginrn while not eoln(fi)do是否到达行尾rn beginrn read(fi,ch);rn case ch ofrn 'a'..'z','A'..'Z':if i>=8 thenrn beginrn writeln(fo,'Error:Over length error');长度超过rn noerror:=false;rn break;rn endrn elsern beginrn tempword:=tempword+ch;rn i:=i+1;rn end;rn '0'..'9':beginrn if i>=8 thenrn beginrn writeln(fo,'Error:Over length error');rn noerror:=false;rn break;rn end;rn if i=0 thenrn beginrn writeln(fo,'Error:Digit first error'); 以数字开头rn noerror:=false;rn break;rn endrn else beginrn tempword:=tempword+ch;rn i:=i+1;rn endrn end;rn ',': beginrnrn if not found(tempword) thenrn beginrn count:=count+1;rn symbol[count].content:=tempword;rn symbol[count].code:=100+count;rn end;rn i:=0;rn tempword:='';rn end;rn ';':if not eof(fi) thenrn beginrn writeln(fo,'Error:There are more than 2 ";" ');rn 有两个或者两个以上的”;”rn noerror:=false;rn break;rn end;rn else beginrn noerror:=false;rn writeln(fo,'Error: Illegal input symbol',ch);rn 非法的字符输入rn break;rn end;rn end;rn end;rn readln(fi);换行rn end;rnend;rnrnprocedure printid;rnvar i:integer;rnbeginrn 结果输出到fo文件rn writeln(fo);rn writeln(fo,'There are ',allinput,' symbols inputed,and');rn writeln(fo,'there are ',count,' different symbols');rn writeln(fo,'The different symbols and according codes are as follows');rn for i:=1 to count do writeln(fo,symbol[i].code,' ', symbol[i].content);rnend;rnrnbeginrn count:=0;rn assign(fi,'myinput.txt');将fi与myinput.txt文件关联上rn assign(fo,'myoutput.txt'); 将fo与myoutput.txt文件关联上rn rewrite(fo);rn reset(fi);rn noerror:=true;rn fillintotable;rn close(fi);rn if noerror then printid;rn close(fo);rnend.rn[/code]
002-【X86-汇编语言】-看C语言如何编译为汇编语言
C语言编译过程 其实C语言在编译的时候,是先由编译器编译成一条条汇编指令,然后再由汇编器将汇编语言翻译成机器指令。让我们来看看C语言与汇编语言的对应关系。 工具介绍 IDE:visual studio 2017 community 下载地址:https://visualstudio.microsoft.com/zh-hans/?rr=https%3A%2F%2Fwww.microsoft....
VB怨言翻译为Delphi语言
Option Explicitrn''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''rn' Copyright ?1996-2009 VBnet, Randy Birch, All Rights Reserved.rn' Some pages may also contain other copyrights by the author.rn''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''rn' Distribution: You can freely use this code in your ownrn' applications, but you may not reproduce rn' or publish this code on any web site,rn' online service, or distribute as source rn' on any media without express permission.rn''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''rnPrivate Const APP_SYSTRAY_ID = 999 'unique identifierrnrnPrivate Const NOTIFYICON_VERSION = &H3rnrnPrivate Const NIF_MESSAGE = &H1rnPrivate Const NIF_ICON = &H2rnPrivate Const NIF_TIP = &H4rnPrivate Const NIF_STATE = &H8rnPrivate Const NIF_INFO = &H10rnrnPrivate Const NIM_ADD = &H0rnPrivate Const NIM_MODIFY = &H1rnPrivate Const NIM_DELETE = &H2rnPrivate Const NIM_SETFOCUS = &H3rnPrivate Const NIM_SETVERSION = &H4rnPrivate Const NIM_VERSION = &H5rnrnPrivate Const NIS_HIDDEN = &H1rnPrivate Const NIS_SHAREDICON = &H2rnrn'icon flagsrnPrivate Const NIIF_NONE = &H0rnPrivate Const NIIF_INFO = &H1rnPrivate Const NIIF_WARNING = &H2rnPrivate Const NIIF_ERROR = &H3rnPrivate Const NIIF_GUID = &H5rnPrivate Const NIIF_ICON_MASK = &HFrnPrivate Const NIIF_NOSOUND = &H10rn rnPrivate Const WM_USER = &H400rnPrivate Const NIN_BALLOONSHOW = (WM_USER + 2)rnPrivate Const NIN_BALLOONHIDE = (WM_USER + 3)rnPrivate Const NIN_BALLOONTIMEOUT = (WM_USER + 4)rnPrivate Const NIN_BALLOONUSERCLICK = (WM_USER + 5)rnrn'shell version / NOTIFIYICONDATA struct size constantsrnPrivate Const NOTIFYICONDATA_V1_SIZE As Long = 88 'pre-5.0 structure sizernPrivate Const NOTIFYICONDATA_V2_SIZE As Long = 488 'pre-6.0 structure sizernPrivate Const NOTIFYICONDATA_V3_SIZE As Long = 504 '6.0+ structure sizernPrivate NOTIFYICONDATA_SIZE As LongrnrnPrivate Type GUIDrn Data1 As Longrn Data2 As Integerrn Data3 As Integerrn Data4(7) As ByternEnd TypernrnPrivate Type NOTIFYICONDATArn cbSize As Longrn hWnd As Longrn uID As Longrn uFlags As Longrn uCallbackMessage As Longrn hIcon As Longrn szTip As String * 128rn dwState As Longrn dwStateMask As Longrn szInfo As String * 256rn uTimeoutAndVersion As Longrn szInfoTitle As String * 64rn dwInfoFlags As Longrn guidItem As GUIDrnEnd TypernrnPrivate Declare Function Shell_NotifyIcon Lib "shell32.dll" _rn Alias "Shell_NotifyIconA" _rn (ByVal dwMessage As Long, _rn lpData As NOTIFYICONDATA) As LongrnrnPrivate Declare Function GetFileVersionInfoSize Lib "version.dll" _rn Alias "GetFileVersionInfoSizeA" _rn (ByVal lptstrFilename As String, _rn lpdwHandle As Long) As LongrnrnPrivate Declare Function GetFileVersionInfo Lib "version.dll" _rn Alias "GetFileVersionInfoA" _rn (ByVal lptstrFilename As String, _rn ByVal dwHandle As Long, _rn ByVal dwLen As Long, _rn lpData As Any) As Longrn rnPrivate Declare Function VerQueryValue Lib "version.dll" _rn Alias "VerQueryValueA" _rn (pBlock As Any, _rn ByVal lpSubBlock As String, _rn lpBuffer As Any, _rn nVerSize As Long) As LongrnrnPrivate Declare Sub CopyMemory Lib "kernel32" _rn Alias "RtlMoveMemory" _rn (Destination As Any, _rn Source As Any, _rn ByVal Length As Long)rnrnrnPrivate Sub Form_Load()rnrn Text1.Text = "A newer version of MyApp.exe is " & _rn "now available for download from " & _rn "http://www.somplace.com/myapp/update/."rn rn Command1.Caption = "Add Systray Icon"rn Command2.Caption = "Show Balloon Tip"rn Command2.Enabled = Falsern rn Option1(0).Caption = "no icon"rn Option1(1).Caption = "information icon"rn Option1(2).Caption = "warning icon"rn Option1(3).Caption = "error icon" rn rn Option1(1).Value = Truern rnEnd SubrnrnrnPrivate Sub Form_Unload(Cancel As Integer)rnrn ShellTrayRemovern rnEnd SubrnrnrnPrivate Sub Command1_Click()rn rn Call ShellTrayAddrn Command2.Enabled = Truern rnEnd SubrnrnrnPrivate Sub Command2_Click()rn rn ShellTrayModifyTip GetSelectedOptionIndex()rn rnEnd SubrnrnrnPrivate Sub ShellTrayAdd()rn rn Dim nid As NOTIFYICONDATArn rn If NOTIFYICONDATA_SIZE = 0 Then SetShellVersionrn rn 'set up the type membersrn With nidrn rn .cbSize = NOTIFYICONDATA_SIZErn .hWnd = Form1.hWndrn .uID = APP_SYSTRAY_IDrn .uFlags = NIF_MESSAGE Or NIF_ICON Or NIF_TIPrn .dwState = NIS_SHAREDICONrn .hIcon = Form1.Iconrn rn 'szTip is the tooltip shown when thern 'mouse hovers over the systray icon. rn 'Terminate it since the strings are rn 'fixed-length in NOTIFYICONDATArn .szTip = "New Download Watcher" & vbNullCharrn .uTimeoutAndVersion = NOTIFYICON_VERSIONrn rn End Withrn rn 'add the icon ...rn Call Shell_NotifyIcon(NIM_ADD, nid)rn rn '... and inform the system of thern 'NOTIFYICON version in usern Call Shell_NotifyIcon(NIM_SETVERSION, nid)rn rnEnd SubrnrnrnPrivate Sub ShellTrayRemove()rnrn Dim nid As NOTIFYICONDATArn rn If NOTIFYICONDATA_SIZE = 0 Then SetShellVersionrn rn With nidrn .cbSize = NOTIFYICONDATA_SIZErn .hWnd = Form1.hWndrn .uID = APP_SYSTRAY_IDrn End Withrn rn Call Shell_NotifyIcon(NIM_DELETE, nid)rnrnEnd SubrnrnrnPrivate Sub ShellTrayModifyTip(nIconIndex As Long)rnrn Dim nid As NOTIFYICONDATArnrn If NOTIFYICONDATA_SIZE = 0 Then SetShellVersionrn rn With nidrn .cbSize = NOTIFYICONDATA_SIZErn .hWnd = Form1.hWndrn .uID = APP_SYSTRAY_IDrn .uFlags = NIF_INFOrn .dwInfoFlags = nIconIndexrn rn 'InfoTitle is the balloon tip title, rn 'and szInfo is the message displayed. rn 'Terminating both with vbNullChar prevents rn 'the display of the unused padding in thern 'strings defined as fixed-length in NOTIFYICONDATA.rn .szInfoTitle = "New Download Available!" & vbNullCharrn .szInfo = Text1.Text & vbNullCharrn End Withrnrn Call Shell_NotifyIcon(NIM_MODIFY, nid)rnrnEnd SubrnrnrnPrivate Sub SetShellVersion()rnrn Select Case Truern Case IsShellVersion(6)rn NOTIFYICONDATA_SIZE = NOTIFYICONDATA_V3_SIZE '6.0+ structure sizern rn Case IsShellVersion(5)rn NOTIFYICONDATA_SIZE = NOTIFYICONDATA_V2_SIZE 'pre-6.0 structure sizern rn Case Elsern NOTIFYICONDATA_SIZE = NOTIFYICONDATA_V1_SIZE 'pre-5.0 structure sizern End SelectrnrnEnd SubrnrnrnPrivate Function IsShellVersion(ByVal version As Long) As Booleanrnrn 'returns True if the Shell versionrn '(shell32.dll) is equal or later thanrn 'the value passed as 'version'rn Dim nBufferSize As Longrn Dim nUnused As Longrn Dim lpBuffer As Longrn Dim nVerMajor As Integerrn Dim bBuffer() As Bytern rn Const sDLLFile As String = "shell32.dll"rn rn nBufferSize = GetFileVersionInfoSize(sDLLFile, nUnused)rn rn If nBufferSize > 0 Thenrn rn ReDim bBuffer(nBufferSize - 1) As Bytern rn Call GetFileVersionInfo(sDLLFile, 0&, nBufferSize, bBuffer(0))rn rn If VerQueryValue(bBuffer(0), "\", lpBuffer, nUnused) = 1 Thenrn rn CopyMemory nVerMajor, ByVal lpBuffer + 10, 2rn rn IsShellVersion = nVerMajor >= versionrn rn End If 'VerQueryValuern rn End If 'nBufferSizern rnEnd FunctionrnrnrnPrivate Function GetSelectedOptionIndex() As Longrnrn 'returns the selected item index fromrn 'an option button array. Use in placern 'of multiple If...Then statements!rn 'If your array contains more elements,rn 'just append them to the test condition,rn 'setting the multiplier to the button'srn 'negative -index.rn GetSelectedOptionIndex = Option1(0).Value * 0 Or _rn Option1(1).Value * -1 Or _rn Option1(2).Value * -2 Or _rn Option1(3).Value * -3rnEnd Function
PASCAL代码翻译为C/C++代码
小弟不才,正在写一篇压缩方面的论文,其中有部分是关于canonical huffman的内容,在网上看到yeye55前辈的一篇关于canonical huffman编码的pascal实现,但是苦于未曾学过pascal,请求大神,将代码翻译为C/C++代码,帮助小弟的同时,也能帮助到跟我一样存在这种困惑的朋友。rnrn贴上超链接 http://yeye55blog.blog.163.com/blog/static/197241021201110575844440/rnrn时间比较紧张,所以暂时来不及学习pascal,望理解。rnrn小弟的邮箱为 839905653@qq.comrn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/15.gif][/img]rnrn
求C代码翻译为DEPHI代码
有一段C语言的代码,求翻译成DEPHI代码,谢谢!rnrnCRC 校验算法rn//CalCrc=====================rn//功能 计算 CRC 校验rn//参数 buf 校验缓冲rn// length 检验长度rn//返回 CRC 校验结果,短整形表示 HLrnrnconst uchar ucCRCHi[] = rnrn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, rn0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, rn0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, rn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, rn0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, rn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, rn0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, rn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, rn0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, rn0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, rn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, rn0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, rn0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, rn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, rn0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, rn0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, rn0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, 0x80, 0x41, 0x00, 0xC1, rn0x81, 0x40, 0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, rn0x00, 0xC1, 0x81, 0x40, 0x01, 0xC0, 0x80, 0x41, 0x01, 0xC0, rn0x80, 0x41, 0x00, 0xC1, 0x81, 0x40rn ;rnrnconst uchar ucCRCLo[] =rnrn0x00, 0xC0, 0xC1, 0x01, 0xC3, 0x03, 0x02, 0xC2, 0xC6, 0x06, rn0x07, 0xC7, 0x05, 0xC5, 0xC4, 0x04, 0xCC, 0x0C, 0x0D, 0xCD, rn0x0F, 0xCF, 0xCE, 0x0E, 0x0A, 0xCA, 0xCB, 0x0B, 0xC9, 0x09, rn0x08, 0xC8, 0xD8, 0x18, 0x19, 0xD9, 0x1B, 0xDB, 0xDA, 0x1A, rn0x1E, 0xDE, 0xDF, 0x1F, 0xDD, 0x1D, 0x1C, 0xDC, 0x14, 0xD4, rn0xD5, 0x15, 0xD7, 0x17, 0x16, 0xD6, 0xD2, 0x12, 0x13, 0xD3, rn0x11, 0xD1, 0xD0, 0x10, 0xF0, 0x30, 0x31, 0xF1, 0x33, 0xF3, rn0xF2, 0x32, 0x36, 0xF6, 0xF7, 0x37, 0xF5, 0x35, 0x34, 0xF4, rn0x3C, 0xFC, 0xFD, 0x3D, 0xFF, 0x3F, 0x3E, 0xFE, 0xFA, 0x3A, rn0x3B, 0xFB, 0x39, 0xF9, 0xF8, 0x38, 0x28, 0xE8, 0xE9, 0x29, rn0xEB, 0x2B, 0x2A, 0xEA, 0xEE, 0x2E, 0x2F, 0xEF, 0x2D, 0xED, rn0xEC, 0x2C, 0xE4, 0x24, 0x25, 0xE5, 0x27, 0xE7, 0xE6, 0x26, rn0x22, 0xE2, 0xE3, 0x23, 0xE1, 0x21, 0x20, 0xE0, 0xA0, 0x60, rn0x61, 0xA1, 0x63, 0xA3, 0xA2, 0x62, 0x66, 0xA6, 0xA7, 0x67, rn0xA5, 0x65, 0x64, 0xA4, 0x6C, 0xAC, 0xAD, 0x6D, 0xAF, 0x6F, rn0x6E, 0xAE, 0xAA, 0x6A, 0x6B, 0xAB, 0x69, 0xA9, 0xA8, 0x68, rn0x78, 0xB8, 0xB9, 0x79, 0xBB, 0x7B, 0x7A, 0xBA, 0xBE, 0x7E, rn0x7F, 0xBF, 0x7D, 0xBD, 0xBC, 0x7C, 0xB4, 0x74, 0x75, 0xB5, rn0x77, 0xB7, 0xB6, 0x76, 0x72, 0xB2, 0xB3, 0x73, 0xB1, 0x71, rn0x70, 0xB0, 0x50, 0x90, 0x91, 0x51, 0x93, 0x53, 0x52, 0x92, rn0x96, 0x56, 0x57, 0x97, 0x55, 0x95, 0x94, 0x54, 0x9C, 0x5C, rn0x5D, 0x9D, 0x5F, 0x9F, 0x9E, 0x5E, 0x5A, 0x9A, 0x9B, 0x5B, rn0x99, 0x59, 0x58, 0x98, 0x88, 0x48, 0x49, 0x89, 0x4B, 0x8B, rn0x8A, 0x4A, 0x4E, 0x8E, 0x8F, 0x4F, 0x8D, 0x4D, 0x4C, 0x8C, rn0x44, 0x84, 0x85, 0x45, 0x87, 0x47, 0x46, 0x86, 0x82, 0x42, rn0x43, 0x83, 0x41, 0x81, 0x80, 0x40rn ;rnrn//CRC 计算rnushort CalCrc(uchar *pucData , ushort usDataLen)rnrnuchar ucCrcLo = 0xFF ; rnuchar ucCrcHi = 0xFF ; rnuchar ucIndex ;rnwhile(usDataLen--) rnrnucIndex = ucCrcLo ^ *pucData++ ;rnucCrcLo = ucCrcHi ^ ucCRCHi[ucIndex] ;rnucCrcHi = ucCRCLo[ucIndex] ;rn;rnreturn (ucCrcHi * 0x100 + ucCrcLo) ;rn
将Java字节码翻译为C代码
为什么要将Java字节码翻译为C代码? Java字节码是基于栈的一种编码。这种编码方式十分方便解释器的设计,但同时不利于程序分析,因此一些高效的代码优化技术无法方便的Java字节码上实现。 先大体说说Java字节码的特点。目前版本的Java大概有200+的字节码指令,其中大部分都是1字节指令,这也是为什么叫做字节码。少部分指令是多字节或不...
嗨翻C语言 
嗨翻C语言 网盘链接
C语言 翻纸牌
#include&amp;lt;stdlib.h&amp;gt; #include&amp;lt;stdio.h&amp;gt; #include&amp;lt;time.h&amp;gt; #include&amp;lt;math.h&amp;gt; int main(){ int c,d,e,f,g,i,j,m,n; srand((unsigned)time(NULL)); int a[16]={0}; a[0]=rand()%13+1; a[...
C语言_嗨翻_了
C语言,趣味的读法,感兴趣的人看一下吧。 有兴致的人看一下
嗨翻C语言
资源名称:嗨翻C语言资源截图: 资源太大,传百度网盘了,链接在附件中,有需要的同学自取。
嗨翻 C 语言
你能从这本书中学到什么? 你有没有想过可以轻松学习C语言?《嗨翻C语言》将会带给你一次这样的全新学习 体验。本书贯以有趣的故事情节、生动形象的图片,以及不拘一格、丰富多样的练 习和测试,时刻激励、吸引、启发你在解决问题的同时获取新的知识。你将在快乐 的气氛中学习语言基础、指针和指针运算、动态存储器管理等核心主题,以及多线 程和网络编程这些高级主题。在掌握语言的基本知识之后,你还将学习如何使用编 译器、make工具和其他知识来解决实际问题。 这本书有什么特别之处? 《嗨翻C语言》运用认知科学和学习理论的最新成果,精心为你打造了一次多感官的 学习体验,绝对能够嗨翻你的大脑,激发你的学习热情。它的特别之处是: 用图片等可视化手段,提高学习效率; 使用对话和有个性的叙述风格,讲故事而不是照本宣科; 调动读者左右半脑和各种感官,让学习者思考得更深入; 吸引并抓住读者的注意力,让学习新技术一点都不枯燥。
C语言与汇编语言混合编程_嵌入式汇编
C语言与汇编语言混合编程_嵌入式汇编,好资料,免费奉送!免费的才是真正的共享!
把c++builder翻译为delphi
大家帮忙看一下:rnc++builder:rntypedef long (__stdcall *Init_Type)(char * Directory, int WorkMode, char* WorkData,long hwndparent,TRect dre);rnrndelphi:rnInit_Type = procedure(Directory:PAnsiChar;WorkMode:Integer;WorkData:PAnsiChar;hwndparent:HWND;dre:TRect);rnrn是否能这样翻译?rn我运行的时候总是报00000000地址错误?rn
请帮忙将下面这个简单的C程序翻译为汇编语言
这段程序完成的是矩阵相乘,其中leftmatrix为左矩阵,rightmatrix为右矩阵,matrix存放结果。m,n,p分别标识左矩阵的行数,左矩阵的列数(右矩阵的行数),右矩阵的列数rn#includernrnint main(int argc, char* argv[])rnrn int m,n,q ;rn int i,j,k;rn int lmatrix[10][10],rmatrix[10][10],matrix[10][10];rn printf("pleanse enter the value of m,n,q\n");rn scanf("%d,%d,%d",&m,&n,&q);rn printf("please enter the value of matrix\nleft matrix:\n");rn for(i=0;i
DNA序列翻译为氨基酸
perl 代码写的 DNA序列比对,用的是smith比对的算法,只要提交输入比较比对即可
HANDLE为什么翻译为句柄
显然这不是个c/c++问题 :)rnrn句柄显然不是一个自明(self-explanatory)的词rnrn典故?
关键字翻译为中文(难度大)
%E4%BD%A0%E8%AF%B4%E4%BD%A0%E6%9C%89%E5%A5%B3%E6%9C%8B%E5%8F%8B%E4%BA%86 %E6%88%91%E7%AD%89%E4%BD%A0 %E4%BD%A0%E8%AF%B4%E4%BD%A0%E8%BF%98%E4%B8%8D%E6%83%B3%E6%81%rnrn上面是谷歌的搜索关键字,谁有asp函数能翻译为中文?
Numerical_modeling_of_immersed_granular_materials(已翻译为中文版)
关于LBM-DEM耦合分析的博士论文,原版为法文,此版本为中文翻译版
将阿拉伯数字 翻译为 罗马数字
将大于0 小于1000的阿拉伯数转换为罗马数字 题目中的数字转换实际上就是查表翻译,即将整数的百十个位依次从整数中分解出来,查找表中相应的行后输出对应的字符。 #include int main() { static char *a[][10]={"","I","II","III","IV","V","VI","VII","VIII","IX"      
c++源码翻译为delphi
void ConvertYVY22YUV12(unsigned char *src, unsigned char *dst, int width, int height, int stride)rnrn unsigned char *in,*out_y,*out_y1,*out_u,*out_v;rn int width2 = width*2;rn in = src;rnrn out_y = dst;rn out_y1 = dst+width;rn out_u = dst + width*height;rn out_v = dst + width*height + (width*height)/4;rnrn for (int i=0;i> 1;rn in++;rnrn *out_y++ = *in;rn *out_y1++ = *(in+width2);rn in++;rn *out_v++ = (*in + *(in+width2)) >> 1;rn in++;rn rn in += width2;rn out_y1 += width;rn out_y += width;rn rnrnrnrnvoid ConvertUYVY2YUV12(unsigned char *src, unsigned char *dst, int width, int height, int stride)rnrn unsigned char *in,*out_y,*out_y1,*out_u,*out_v;rn int width2 = width*2;rn in = src;rnrn out_y = dst;rn out_y1 = dst+width;rn out_u = dst + width*height;rn out_v = dst + width*height + (width*height)/4;rnrn for (int i=0;i> 1;rn in++;rn *out_y++ = *in;rn *out_y1++ = *(in+width2);rn in++;rnrn *out_v++ = (*in + *(in+width2)) >> 1;rn in++;rn *out_y++ = *in;rn *out_y1++ = *(in+width2);rn in++;rn rn in += width2;rn out_y1 += width;rn out_y += width;rn rn
Unigine编辑器翻译为中文
Unigine编辑器翻译(直译)
编译器编译原理——将一种语言翻译为另一种语言的计算机程序
编译器是将一种语言翻译为另一种语言的计算机程序。编译器将源程序( source language) 编写的程序作为输入,而产生用目标语言( t a rget language)编写的等价程序。编译器是一种相当复杂的程序,其代码的长度可从10 000行到1 000 000行不等。编写甚至 读懂这样的一个程序都非易事,大多数的计算机科学家和专业人员也从来没有编写过一个完整 的编译器。但是,几乎所有形式的计算均要用到编译器,而且任何一个与计算机打交道的专业 人员都应掌握编译器的基本结构和操作。除此之外,计算机应用程序中经常遇到的一个任务就 是命令解释程序和界面程序的开发,这比编译器要小,但使用的却是相同的技术。因此,掌握 这一技术具有非常大的实际意义。
嗨翻C语言.pdf
高清晰pdf文字版。 “《嗨翻C语言》可能很快就会被证明是学习C语言的最佳书籍。我觉得它会成为每所大学C语言的标准教材。很多编程书籍因循守旧。不过这本书却使用了完全不同的方式。它将教你如何成为一名真正的C程序员。” ——Dave Kitabjian,NetCarrier Telecom软件开发总监 “《嗨翻C语言》是一本用经典‘Head First’的方式轻松介绍C语言的教材。图片、笑话、练习以及实践让读者逐渐并稳固地掌握C语言的基础知识……由此,读者可以进入Posix和Linux系统编程中更高级的技术殿堂。” ——Vince Milner,软件工程师
嗨翻C语言 pdf
《嗨翻C语言》是一本用经典‘Head First’的方式轻松介绍C语言的教材
嗨翻C语言part1
学习C语言的好书,以独特的方式理解C语言,以趣味的方式学习C语言
嗨翻C语言part2
学习C语言的好书,以独特的方式理解C语言,以趣味的方式学习C语言
嗨翻C语言2
嗨翻C语言完整版。外国人写的,非常的好看。不能一下子上传.
嗨翻C语言介绍
这是一本详细介绍C语言的书籍,它的优点是能够通过读者的角度来详细说明C语言的来源和发明原因,而且内容采用问答式模式,诙谐幽默,轻松移动
嗨翻C语言 mobi
嗨翻C语言 mobi 亚马逊购买,然后转换成的mobi,送个有需要的朋友
《嗨翻c语言》_pdf
该宝典是c语言学习者,值得拥有的绝技,特此献出宝典!!
嗨翻C语言 1
嗨翻C语言完整版。外国人写的,非常的好看。不能一下子上传。
《嗨翻C语言》文字版
文字版《嗨翻C语言》。 作者用诙谐、幽默的口吻为你讲述了一个又一个关于C的故事。无论你是C语言学习航程中的新船员,还是经历过大风大浪的老水手,你都能从《嗨翻C语言》中体会到无限乐趣。
一道简单的汇编题目(初学汇编)
include io32.incrn.datarnminint=10rnwvar1 word 3139h,3832hrnbyte 0rn.codernstart:rnmov eax,offset wvar1rncall dispmsgrnexit 0rnend startrn这道题目的显示结果是9182,其中call dispmsg是显示结果而mov eax,offset wvar1是将wvar1的偏移地址送给eax,可是wvar1的偏移地址为什么是9128呢?有人能给我解释下吗!我刚刚学习汇编 搞不太清楚啊!
请问有没有c# 语言翻译为vb.net 的工具?
请问有没有c# 语言翻译为vb.net 的工具? rn我在网上找到这个东西rnrnhttp://authors.aspalliance.com/aldotnet/examples/translate.aspx
汇编语言跟C语言的简单转化
long decode(long x,long y,long z);rnGCC产生如下代码:rnsubq %rdx,%rsirnimulq %rsi,%rdirnmovq %rsi,%raxrnsalq $63,%raxrnsarq $63,%raxrnxorq $63,%raxrnretrnrn参数x,y,z通过寄存器%rdi,%rsi,%rdx传递。代码将返回值存放在寄存器%rax中,写出等价于上述汇编代码的decod的C代码。
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件