《汇编语言》有一段话看不懂 [问题点数:20分,结帖人asd605499941a]

Bbs1
本版专家分:53
结帖率 96.67%
Bbs1
本版专家分:53
Bbs7
本版专家分:17025
Blank
红花 2012年1月 其他开发语言大版内专家分月排行榜第一
2011年1月 其他开发语言大版内专家分月排行榜第一
2010年12月 其他开发语言大版内专家分月排行榜第一
Blank
黄花 2011年6月 其他开发语言大版内专家分月排行榜第二
2011年4月 其他开发语言大版内专家分月排行榜第二
2011年2月 其他开发语言大版内专家分月排行榜第二
2010年8月 其他开发语言大版内专家分月排行榜第二
Blank
蓝花 2010年11月 其他开发语言大版内专家分月排行榜第三
2010年10月 其他开发语言大版内专家分月排行榜第三
2010年7月 其他开发语言大版内专家分月排行榜第三
Bbs1
本版专家分:53
Bbs1
本版专家分:53
Bbs7
本版专家分:17025
Blank
红花 2012年1月 其他开发语言大版内专家分月排行榜第一
2011年1月 其他开发语言大版内专家分月排行榜第一
2010年12月 其他开发语言大版内专家分月排行榜第一
Blank
黄花 2011年6月 其他开发语言大版内专家分月排行榜第二
2011年4月 其他开发语言大版内专家分月排行榜第二
2011年2月 其他开发语言大版内专家分月排行榜第二
2010年8月 其他开发语言大版内专家分月排行榜第二
Blank
蓝花 2010年11月 其他开发语言大版内专家分月排行榜第三
2010年10月 其他开发语言大版内专家分月排行榜第三
2010年7月 其他开发语言大版内专家分月排行榜第三
Bbs3
本版专家分:604
Bbs1
本版专家分:53
Bbs1
本版专家分:53
Bbs7
本版专家分:17025
Blank
红花 2012年1月 其他开发语言大版内专家分月排行榜第一
2011年1月 其他开发语言大版内专家分月排行榜第一
2010年12月 其他开发语言大版内专家分月排行榜第一
Blank
黄花 2011年6月 其他开发语言大版内专家分月排行榜第二
2011年4月 其他开发语言大版内专家分月排行榜第二
2011年2月 其他开发语言大版内专家分月排行榜第二
2010年8月 其他开发语言大版内专家分月排行榜第二
Blank
蓝花 2010年11月 其他开发语言大版内专家分月排行榜第三
2010年10月 其他开发语言大版内专家分月排行榜第三
2010年7月 其他开发语言大版内专家分月排行榜第三
原代码有地方看不懂
void fun (int a, int b)rnrn /*什么也不做*/rn rnint main( void)rn fun(100,200);rn return 0;rnrnrnrn下面是汇编的代码rn.globle funrn .type fun,@functionrnfun:rnpushl %ebprnmovl %esp, ebprnpopl %ebprnretrn.globle mainrn .type main,@functionrnmain:rn pushl %ebprnmovl %esp,%ebprnsubl $8,%esprnandl $-16,%esp//这一点我不懂,esp实际什么也不做,为什么要参与“与”运算呢rnmovl $0,$eaxrnsubl %eax,$esprnmovl $100,(%esp)rnmovl $200,4(%esp)rncall funrnmovl $0,%eaxrnleave ret
有个贴子看不懂
在这个贴子里,your_friend(你的朋友)的说法我不明白,中断向量表怎么会...rnhttp://search.csdn.net/Expert/topic/573/573226.xml?temp=.6120569 rnrn回复人: your_friend(你的朋友) ( ) 信誉:104 2002-03-14 10:06:10Z 得分:0 rn rn rn rn临走前给这位兄弟留点资料,希望能对你有所帮助。rnDOS下,BIOS中断表的真正入口地址在:rn0000:0540到0000:05BF对应BIOS中断表的0000:0000到0000:007Frnrn0000:05C0到0000:05DB对应BIOS中断表的0000:0100到0000:011Brnrn0000:05DC到0000:05FB对应BIOS中断表的0000:01C0到0000:01DFrnrn这是怎么回事?最低1K内存里不是中断向量表吗?rn rn rn
有一句代码看不懂
我看到这样一个代码rn rn 我不理解 if *** and *** eq *** 这代表什么意思。
有一个格式看不懂
在网上看到c++有这种写法,求高手指点:rnrncout<
有一段代码看不懂
首 页rn是什么意思
有一句话看不懂
“不幸的是,微软在User32.lib中没有提供这两个函数的输出。也就是说,这两个函数是未公开函数,如果要在程序中使用它们,则必须通过GetProcAddress和GetModuleHandle函数动态加载:”rnrn啥意思?rn是不是是说没有通过def或者export声明的函数,只要你找到dll里面有,仍然可以通过rnGetProcAddress和GetModuleHandle函数调有吗????rnrn比如我的my.dll里面有个函数void inerfunction()没有export,怎么调?rn
看不懂哪里有问题
写了一个程序用来统计有多少个连续的ff序列,并输出个数,可是下面的程序编译时怎么感觉跳不出while循环啊,在VS2013上rnint main()rnrnstring a;rnint j=0;rnbool b = 1;rnwhile (getline(cin, a) && b == 1)rnrn cout << a << " " << a.size() << endl;rn b = 0;rnrn for (int i=0; i < a.size(); ++i)rn if (a[i] == 'f'&&a[i + 1] == 'f')rn rn ++j;rn ++i;rn rn cout << j;rn while (1)rn return 0;rn
有一段看不懂的代码
用CreateWaitableTimer实现延时功能(不像Sleep导致窗口失去响应)rn'**************************************rn' Name: clsWaitableTimerrn'rn' Description: This class encapsulate the WaitableTimer API functions torn' put the thread of your application to Sleep for a period of time.rn' The benefit of a Waitable timer to the Sleep API is that yourrn' application will still be responsive to events, where Sleeprn' will freeze your application for the set interval.rn' Download: http://www.codefans.netrn' Example: 'This is an example for idling your applicationrn' Private mobjWaitTimer As clsWaitableTimerrn' Private Sub RunProcess()rn' Set mobjWaitTimer = New clsWaitableTimerrn' Dorn' If mbWorkToDo Thenrn' Call ProcessWork()rn' Elsern' mobjWaitTimer.Wait(5000) 'Wait for 5 secondsrn' End Ifrn' Loop Until Not mbStoprn' Set mobjWaitTimer = nothingrn' End Subrn'rn' Revision History:rnrnPrivate Type FILETIMErn dwLowDateTime As Longrn dwHighDateTime As LongrnEnd TypernrnPrivate Const WAIT_ABANDONED& = &H80&rnPrivate Const WAIT_ABANDONED_0& = &H80&rnPrivate Const WAIT_FAILED& = -1&rnPrivate Const WAIT_IO_COMPLETION& = &HC0&rnPrivate Const WAIT_OBJECT_0& = 0rnPrivate Const WAIT_OBJECT_1& = 1rnPrivate Const WAIT_TIMEOUT& = &H102&rnPrivate Const INFINITE = &HFFFFrnPrivate Const ERROR_ALREADY_EXISTS = 183&rnPrivate Const QS_HOTKEY& = &H80rnPrivate Const QS_KEY& = &H1rnPrivate Const QS_MOUSEBUTTON& = &H4rnPrivate Const QS_MOUSEMOVE& = &H2rnPrivate Const QS_PAINT& = &H20rnPrivate Const QS_POSTMESSAGE& = &H8rnPrivate Const QS_SENDMESSAGE& = &H40rnPrivate Const QS_TIMER& = &H10rnPrivate Const QS_MOUSE& = (QS_MOUSEMOVE Or QS_MOUSEBUTTON)rnPrivate Const QS_INPUT& = (QS_MOUSE Or QS_KEY)rnPrivate Const QS_ALLEVENTS& = (QS_INPUT Or QS_POSTMESSAGE Or QS_TIMER Or QS_PAINT Or QS_HOTKEY)rnPrivate Const QS_ALLINPUT& = (QS_SENDMESSAGE Or QS_PAINT Or QS_TIMER Or QS_POSTMESSAGE Or QS_MOUSEBUTTON Or QS_MOUSEMOVE Or QS_HOTKEY Or QS_KEY)rnrnPrivate Const UNITS = 4294967296# '这是什么rnPrivate Const MAX_LONG = -2147483648# '这是什么rnrnPrivate Declare Function CreateWaitableTimer Lib "kernel32" Alias "CreateWaitableTimerA" (ByVal lpSemaphoreAttributes As Long, ByVal bManualReset As Long, ByVal lpName As String) As LongrnPrivate Declare Function OpenWaitableTimer Lib "kernel32" Alias "OpenWaitableTimerA" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal lpName As String) As LongrnPrivate Declare Function SetWaitableTimer Lib "kernel32" (ByVal hTimer As Long, lpDueTime As FILETIME, ByVal lPeriod As Long, ByVal pfnCompletionRoutine As Long, ByVal lpArgToCompletionRoutine As Long, ByVal fResume As Long) As LongrnPrivate Declare Function CancelWaitableTimer Lib "kernel32" (ByVal hTimer As Long)rnPrivate Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As LongrnPrivate Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As LongrnPrivate Declare Function MsgWaitForMultipleObjects Lib "user32" (ByVal nCount As Long, pHandles As Long, ByVal fWaitAll As Long, ByVal dwMilliseconds As Long, ByVal dwWakeMask As Long) As LongrnrnPrivate mlTimer As LongrnrnPrivate Sub Class_Terminate()rn On Error Resume Nextrn If mlTimer <> 0 Then CloseHandle mlTimerrnEnd SubrnrnPublic Sub Wait(MilliSeconds As Long)rn On Error GoTo ErrHandlerrn Dim ft As FILETIMErn Dim lBusy As Longrn Dim lRet As Longrn Dim dblDelay As Doublern Dim dblDelayLow As Doublern rn mlTimer = CreateWaitableTimer(0, True, App.EXEName & "Timer" & Format$(Now(), "NNSS"))rn rn If Err.LastDllError <> ERROR_ALREADY_EXISTS Thenrn ft.dwLowDateTime = -1rn ft.dwHighDateTime = -1rn lRet = SetWaitableTimer(mlTimer, ft, 0, 0, 0, 0)rn End Ifrn rn ' Convert the Units to nanoseconds.rn dblDelay = CDbl(MilliSeconds) * 10000#rn rn ' By setting the high/low time to a negative number, it tellsrn ' the Wait (in SetWaitableTimer) to use an offset time asrn ' opposed to a hardcoded time. If it were positive, it wouldrn ' try to convert the value to GMT.rn ft.dwHighDateTime = -CLng(dblDelay / UNITS) - 1rn dblDelayLow = -UNITS * (dblDelay / UNITS - Fix(CStr(dblDelay / UNITS)))rn rn If dblDelayLow < MAX_LONG Then dblDelayLow = UNITS + dblDelayLowrn rn ft.dwLowDateTime = CLng(dblDelayLow)rn'我不太了解FILETIME,包括上面的UNITS、MAX_LONG,请详细讲一下上面几句具体的意思。rn lRet = SetWaitableTimer(mlTimer, ft, 0, 0, 0, False)rn rn Dorn ' QS_ALLINPUT means that MsgWaitForMultipleObjects willrn ' return every time the thread in which it is running getsrn ' a message. If you wanted to handle messages in here you could,rn ' but by calling Doevents you are letting DefWindowProcrn ' do its normal windows message handling---Like DDE, etc.rn lBusy = MsgWaitForMultipleObjects(1, mlTimer, False, INFINITE, QS_ALLINPUT&)rn DoEventsrn Loop Until lBusy = WAIT_OBJECT_0rn rn ' Close the handles when you are done with them.rn CloseHandle mlTimerrn mlTimer = 0rn Exit Subrn rnErrHandler:rn Err.Raise Err.Number, Err.Source, "[clsWaitableTimer.Wait]" & Err.DescriptionrnEnd Subrnrnrnrnrn我又看到一段代码,比上面那段少,好像比上面那段简洁rnrn函数CreateWaitableTimer和SetWaitableTimer声明如下:rn rnWINBASEAPIrn__outrnHANDLErnWINAPIrnCreateWaitableTimerA(rn __in_opt LPSECURITY_ATTRIBUTES lpTimerAttributes,rn __in BOOL bManualReset,rn __in_opt LPCSTR lpTimerNamern );rnWINBASEAPIrn__outrnHANDLErnWINAPIrnCreateWaitableTimerW(rn __in_opt LPSECURITY_ATTRIBUTES lpTimerAttributes,rn __in BOOL bManualReset,rn __in_opt LPCWSTR lpTimerNamern );rn#ifdef UNICODErn#define CreateWaitableTimer CreateWaitableTimerWrn#elsern#define CreateWaitableTimer CreateWaitableTimerArn#endif // !UNICODErn rn rnWINBASEAPIrnBOOLrnWINAPIrnSetWaitableTimer(rn __in HANDLE hTimer,rn __in const LARGE_INTEGER *lpDueTime,rn __in LONG lPeriod,rn __in_opt PTIMERAPCROUTINE pfnCompletionRoutine,rn __in_opt LPVOID lpArgToCompletionRoutine,rn __in BOOL fResumern );rn rnlpTimerAttributes是设置定时器的属性。rnbManualReset是是否手动复位。rnlpTimerName是定时器的名称。rnhTimer是定时器的句柄。rnlpDueTime是设置定时器时间间隔,当设置为正值是绝对时间;当设置为负数是相对时间。rnlPeriod是周期。rnpfnCompletionRoutine是设置回调函数。rnlpArgToCompletionRoutine是传送给回调函数的参数。rnfResume是设置系统是否自动恢复。rn rn调用函数的例子如下:rn#001 //创建定时器rn#002 //蔡军生 2007/11/06 QQ:9073204 深圳rn#003 int CreateTestTimer(void)rn#004 rn#005 HANDLE hTimer = NULL;rn#006 LARGE_INTEGER liDueTime;rn#007 rn#008 //设置相对时间为10秒。rn#009 liDueTime.QuadPart = -100000000; 感觉这里设置得比较简单,不想上面那段要设置dwLowDateTime等rn#010 rn#011 //创建定时器。rn#012 hTimer = CreateWaitableTimer(NULL, TRUE, _T("TestWaitableTimer"));rn#013 if (!hTimer)rn#014 rn#015 return 1;rn#016 rn#017 rn#018 OutputDebugString(_T("10秒定时器\r\n"));rn#019 rn#020 // 设置10秒钟。rn#021 if (!SetWaitableTimer(hTimer, &liDueTime, 0, NULL, NULL, 0))rn#022 rn#023 //rn#024 CloseHandle(hTimer);rn#025 return 2;rn#026 rn#027 rn#028 //等定时器有信号。rn#029 if (WaitForSingleObject(hTimer, INFINITE) != WAIT_OBJECT_0)rn#030 rn#031 OutputDebugString(_T("10秒定时器出错了\r\n")); rn#032 //rn#033 CloseHandle(hTimer);rn#034 return 3;rn#035 rn#036 elsern#037 rn#038 //10秒钟到达。rn#039 OutputDebugString(_T("10秒定时器到了\r\n")); rn#040 rn#041 rn#042 //rn#043 CloseHandle(hTimer);rn#044 return 0;rn#045 rnrnrn看完上面的2段代码我没完全理解。随便试着写了下面的模块,结果延时不起作用。rn[code=VB]Attribute VB_Name = "YanshiMoKuai"rnOption Explicitrnrn'2009-10-15rnrnPrivate Type FILETIMErn dwLowDateTime As Longrn dwHighDateTime As LongrnEnd TypernrnPrivate Declare Function CreateWaitableTimer Lib "kernel32" Alias "CreateWaitableTimerA" (ByVal lpSemaphoreAttributes As Long, ByVal bManualReset As Long, ByVal lpName As String) As LongrnPrivate Declare Function SetWaitableTimer Lib "kernel32" (ByVal Htimer As Long, lpDueTime As FILETIME, ByVal lPeriod As Long, ByVal pfnCompletionRoutine As Long, ByVal lpArgToCompletionRoutine As Long, ByVal fResume As Long) As LongrnPrivate Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As LongrnPrivate Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As LongrnPrivate Declare Function MsgWaitForMultipleObjects Lib "user32" (ByVal nCount As Long, pHandles As Long, ByVal fWaitAll As Long, ByVal dwMilliseconds As Long, ByVal dwWakeMask As Long) As LongrnrnPrivate Const WAIT_OBJECT_0 = 0rnPrivate Const INFINITE = &HFFFF ' Infinite timeoutrnrnPublic Sub Yanshi(MilliSeconds As Long)rn On Error GoTo Cuo:rnDim Htimer As Long, WenjianTime As FILETIME, Ret As Longrnrn If Htimer <> 0 Then CloseHandle Htimerrn Htimer = CreateWaitableTimer(0, True, "Timer" & Format(Now, "hhmmnn"))rn If Htimer = 0 Thenrn Debug.Print "调用CreateWaitableTimer失败"rn Exit Subrn End Ifrn WenjianTime.dwLowDateTime = -(MilliSeconds * 10000)rn Ret = SetWaitableTimer(Htimer, WenjianTime, 0, 0, 0, 0)rn If Ret = 0 Thenrn Debug.Print "调用SetWaitableTimer失败"rn CloseHandle Htimerrn Exit Subrn End Ifrn Dorn Ret = WaitForSingleObject(Htimer, INFINITE)rn DoEventsrn Loop Until Ret = WAIT_OBJECT_0rn CloseHandle Htimerrn Htimer = 0rnrn Exit SubrnCuo:rn CloseHandle HtimerrnrnEnd Subrn[/code]rnrn请各位指点。
有一句程序看不懂
public void Alert(string str_Message,Page page) rn rn page.RegisterStartupScript("","alert('"+str_Message+"');"[img]/images/wink.gif[/img]; rn rnrn看到一段程序,测试时产生错误:rn错误 1 无效的表达式项“/” rn(在这个位置 wink.gif[/img]; )rnrn1。谁能告诉我这段话在干什么。---------[img]/images/wink.gif[/img]; rn2。如何排错?rnrn源代码如下:rnrn警告窗口 rnrn /// rn /// 服务器端弹出alert对话框 rn /// rn /// 提示信息,例子:"不能为空!" rn /// Page类 rn public void Alert(string str_Message,Page page) rn rn page.RegisterStartupScript("","alert('"+str_Message+"');"[img]/images/wink.gif[/img]; rn rn
看不懂有什么致命错误
DATA SEGMENTrnrnBUF dw 3,-4,6,7,9,2,0,-8,-9,-10,20rnrn N=($-BUF)/2rnrnDATA ENDSrnrnSTACK SEGMENT STACKrnrn DB 200 DUP(?)rnrnSTACK ENDSrnrnCODE SEGMENTrnrn ASSUME CS:CODE, DS:DATA, SS:STACKrnrnSTART: MOV AX,DATArn MOV DS,AXrn MOV CX,Nrn DEC CXrnrnLOOP1: MOV DX,CXrn MOV BX,0rn rnLOOP2: MOV AX,BUF[BX]rn CMP AX,BUF[BX+2]rn JGE Lrn XCHG AX,BUF[BX+2]rn MOV BUF[BX],AXrnrnL: ADD BX,2rn DEC CXrn JNE LOOP2rn MOV CX,DXrn LOOP LOOP1rn MOV AH,4CHrn INT 21HrnCODE ENDSrn END STARTrn;rt
有个程序看不懂
import java.util.*;rnpublic class E09_FindPrimesrnrn public static void main(String args[])rn rn int max=100;rn if(args.length!=0)rn max=Integer.parseInt(args[0]);rn for(int i=1;i
有个语句看不懂
btnSpeakText.Click += new System.EventHandler(SpeakTextClickHandler);rnrn
有个错误看不懂!!!!!!!!!
HTTP 标题已经写入到 客户浏览器。任何 HTTP 标题的修改必须在写入页内容之前。 rnrn啥意思????????
有段程序看不懂,求助
有个程序<em>看不懂</em>,向高手请教一下(抄自《c++大学教程第二版》):rnrn//create a structure, set its members, and print it.rn#include rnrnstruct Timern // structure definitionrnint hour;rnint minute;rnint second;rn;rnrnvoid printMilitary ( const Time &);//prototypernvoid printStandard( const Time &);//prototypernrnint main()rnrnTime dinnerTime; //variable of new type Timernrn// set members to valid valuesrndinnerTime.hour=18;rndinnerTime.minute=30;rndinnerTime.second=0;rnrncout<< "Dinner will be held at ";rnprintMilitary(dinnerTime);rncout<< "military time,\nwhich is ";rnprintStandard(dinnerTime);rncout<<< "\nTime with invalid values: ";rnprintMilitary(dinnerTime);rncout<
在概要设计的文档里有这么一段话,啥意思?
AUTOMATED PROCESS DESIGNrnDATA REQUIREMENTS (NON- DBMS)rnlist input&output, upload or download data requirements description, such as excel files, csv files, sam files and other non-dbms data used in the application.rn
K9F1208手册上有一段话确实是看不懂.有同学看的懂么?
K9F1208手册上有<em>一段话</em>确实是<em>看不懂</em>.有同学看的懂么?rn看了很久,都不懂.整句在线翻译都还是<em>看不懂</em>.rnrnThe K9F1208X0C is a 528Mbits(553,648,218 bits) memory organized as 131,072 rows(pages) by 528 columns. Spare sixteen col-umns are located from column address of 512 to 527. A 528-bytes data register is connected to memory cell arrays accommodatingrndata transfer between the I/O buffers and memory during page read and page program operations. [color=#FF0000]The memory array is made up ofrn16 cells that are serially connected to form a NAND structure. Each of the 16 cells resides in a different page. A block consists of thern32 pages formed two NAND structures. A NAND structure consists of 16 cells. Total 135,168 NAND structures reside in a block.[/color] Thernprogram and read operations are executed on a page basis, while the erase operation is executed on a block basis. The memoryrnarray consists of 4,096 separately erasable 16K-bytes blocks. It indicates that the bit by bit erase operation is prohibited on thernK9F1208X0C.rn(红色的不懂)rnrnThe memory array(指的是内存数组?) is made up ofrn16 cells(为什么又说是由16个单元组成?) that are serially connected to form a [color=#FF0000]NAND structure[/color](指的是什么?). Each of the 16 cells resides in a different page(为什么说每一页都由16个单元组成?). A block consists of thern32 pages formed two NAND structures. A NAND structure consists of 16 cells. Total 135,168 NAND structures(135,168个NAND structures) reside in a block.rnrn虚心请教
请教大家如下的一段话是否有问题?
在sub过程中使用的变量分为两类:一类是在过程内显式定义的,另一类则不是。在过程内显式定义的变量(使用dim或等效方法)总是局部变量。对于那些没有在过程中显式声明的变量也是局部的,除非在该过程外更高级别的位置显式声明它们。rnrn过程可以使用没有在过程内显式声明的变量,但只要有任何script级定义的名称与之同名,就会产生名称冲突。(这就话对吗?)rnrn如果过程中引用的未声明的变量与其它的过程、常数或变量的名称相同,则会认为过程引用的是script级的名称。(什么意思?)rnrn敬请各位解释,最好能举些例子!
对于《c和指针》一书的一段话有困惑
[color=#0000FF]书上说:rn 在程序中使用字符串常量会生成一个“指向字符的常量指针”,当一个字符串常量出现在一个表达式中时,表达式所使用的值就是这些字符所存储的地址,而不是这些字符本身。rn 你不能把字符串常量赋值给一个字符数组,因为字符串常量的直接值是一个指针,而不是这些字符本身。[/color]rnrn那么char str[] = "abc";能成立的原因是不是因为这是初始化而不是赋值?rn书上说的应该是:rn[code=C/C++]rnchar str[10];rnstr = "abc";rn [/code]rn是不成立的,因为"abc"是一个指针,而不是这些字符本身。rnrn这里我有点搞不懂,难道真的因为"abc"是指针所以赋值不成功吗?
js代码,有个地方看不懂
rnrn rn rn 草履虫rn rn rn rn rn rn 用户名: rn 密码: rn 重复密码: rn 个人简介: rn rn rn rnrnrn17行的(i)是干什么用的
有一段代码看不懂,求救
assume cs:codesgrncodesg segmentrn mov ax,4c00hrn int 21hrnstart: mov ax,0rn s: noprn noprn mov di,offset srn mov si,offset s2rn mov ax,cs:[si]rn mov cs:[di],axrn s0: jmp short s //跳到s后应该执行jmp short s1呀,在接着执行标号s1处的代码呀,怎么是直接执行mov ax,4c00hrn s1: mov ax,0rn int 21hrn mov ax,0rn s2: jmp short s1rn noprncodesg endsrnend startrn
sql有一条语句看不懂
num_this=myconn.execute("select count(*) from [online] where onbd='"&asd("bn")&"'")(0)rnrn后面的(0),是干什么用的。rn
有段代码看不懂,求教
#!/bin/shrn①# suck configuration.rn②BASE_DIR=$0%/*rn③. $BASE_DIR/../etc/common.confrn④. $BASE_DIR/conf/ghd_common.confrnrn⑤exec 2>&1rn⑥exec 1>$DIRGIDARC/aaa.logrnrnrn这是一个cron的前7行代码,有没有高手能告诉我①~⑥这6行代码的意思是什么?rn如:rn②$0%/*的值是什么
有一段代码看不懂?谢谢
rn rn rn 网站首页rn //下面这行代码什么意思啊!谢谢rn dede:channel type='top' currentstyle=" ~typename~ "rn [field:typename/]/dede:channelrn rn rn
初学Java有句话看不懂
public class Res n private String name;n private String sex;n private boolean flag=false;n public synchronized void set(String name,String sex)n if(flag)n try n this.wait();n catch (InterruptedException e) n e.printStackTrace();n n this.name=name;n this.sex=sex;n this.flag=true;n this.notify();n n public synchronized void out()n if(!flag)n try n this.wait();n catch (InterruptedException e) n e.printStackTrace();n n System.out.println(name+"...."+sex);n this.flag=false;n this.notify();n nnpublic class Input implements Runnable n private Res r;nn Input(Res r) n this.r = r;n nn public void run() n int x = 0;n while (true) n if (x == 0) n r.set("tom", "man");n else n r.set("李丽", "女");n n x = (x + 1) % 2;n nn nnpublic class Output implements Runnable n private Res r;nn Output(Res r) n this.r = r;n nn public void run() n while (true) n r.out();n n nnpublic class TestDemo n public static void main(String[] args) n Res r=new Res();//Res(String name, String sex)n Input in=new Input(r);//n Output out=new Output(r);//n Thread td1=new Thread(in);n Thread td2=new Thread(out);n td1.start();n td2.start();n nnInput in=new Input(r); 括号里面为什么放个r
有个sed命令的用法看不懂
最近在研究交叉编译,看到一个shell脚本的sed命令<em>看不懂</em>,谁帮我解释下啊rn[code=text]rnsed -ie "s!^CFLAG=!CFLAG=-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -miphoneos-version-min=7.0 ! Makefile”rn[/code]
求助:有一个地方看不懂
#include rnrnint main(void)rnrn int number = 0; /*The number to be reversed*/rn int rebmun = 0; /*The reversed number*/rn int temp = 0; /*Working storage*/ rn rn /*Get the value to be reversed*/rn printf("\nEnter a positive integer :");rn scanf("%d",&number);rn rn temp = number; /*Copy to working storage*/rn rn /*Reverse the number stored in temp*/rn [b]dorn rn rebmun = 10*rebmun + temp % 10; /*Add the rightmost digit*/ rn temp = temp/10; /*Remove the rightmost digit*/rn while(temp); /*Continue while temp>0*/[/b][color=#800000][/color]rn printf("\nThe number %d reversed is %d rebmum ehT\n",number,rebmun);rn return 0;rnrnrn书上原文这样写到:temp原本是43,则temp%10结果是3,将10*rebmum+temp%10的值赋予rebmum。rnrn变量rebmum的初始值是0,所以rebmum储存了数字3.将输入值最右边的数字3保存到rebmum后,就可以rnrn给temp除以10,去掉这个数字。temp的初始值是43,所以temp/10的结果四舍五入为4.在循环结束时,rnrn检查while(temp)条件,而temp的值是4,所以该条件是true。因此返回循环的开始处,执行另一个迭代。rnrn[b]后面就是理解不了了:储存在rebmum中的值与10相乘,得到30,再加上temp%10的余数4,所以rebmum的结果rnrn是34.然后将temp除以10,得到0.现在,到达循环迭代的结尾时,temp是0,即false,所以循环结束。rn[/b]rn
这个程序有一点看不懂
/*现有两个带表头节点的单链表la和lb,rn此两个表本身无相同元素存在,rnla表递增有序,lb表递减有序,rn且lb表中的元素包含在la表中连续的某一部分,rn设计一个算法找出这部分元素在la的位置,并将它们逆置,使之与lb表中的序相同.*/rn#include rn#include rntypedef int elemtype;rntypedef struct linknodernrn elemtype data;rn struct linknode *next;rnnodetype;rnrnnodetype *create()rnrn elemtype d;rn nodetype *h=NULL,*s,*t;rn int i=1;rn cout << "建立一个单链表" << endl;rn while (1)rn rn cout << " 输入第" << i << "节点data域值:";rn cin >> d;rn if (d==0) break;rnrn if (i==1)rn rn h=(nodetype*)malloc(sizeof(nodetype));rn h->data=d;h->next=NULL;t=h;rn rn elsern rn s=(nodetype *)malloc(sizeof(nodetype));rn s->data=d;s->next=NULL;t->next=s;rn t=s;rn rn i++;rn rn return h;rnrnrnvoid disp(nodetype *h)rnrn nodetype *p=h;rn cout << "输出一个单链表:" << endl << " ";rn if (p==NULL) cout << "空表";rn while (p!=NULL)rn rn cout << p->data << " ";p=p->next;rn rn cout << endl;rnrnrnnodetype *findplace(nodetype *la,nodetype *lb)rnrn nodetype *pa,*pb=lb,*ra,*rb=lb;rn while(rb->next!=NULL)rn rb=rb->next;rn pa=la->next;ra=la;rn while (pa!=NULL && pa->data!=rb->data)rn rn ra=pa;rn pa=pa->next;rn rn cout << "ra=" << ra->data << endl;rn ra->next=lb->next;rn pb=lb->next;rn while (pa!=NULL && pa->data!=pb->data)rn pa=pa->next;rn rb->next=pa->next;rn return la->next;rnrnrnvoid main()rnrn nodetype *la,*lb,*lc,*t;rn la=create();rn lb=create();rn disp(la);rn disp(lb);rn t=(nodetype *)malloc(sizeof(nodetype));rn t->next=la,la=t;rn t=(nodetype *)malloc(sizeof(nodetype));rn t->next=lb;lb=t;rn lc=findplace(la,lb);rn disp(lc);rnrnrn----------------------------------------------------rnrn ra->next=lb->next;rn pb=lb->next;rn while (pa!=NULL && pa->data!=pb->data)rn pa=pa->next;rn rb->next=pa->next;rnrn这几行我<em>看不懂</em>,lb->next应该是NULL了,怎么ra->next怎么还要等于NULL了?
有一条苹果官方说明看不懂
正在读应用商店的审核指南,有一条不明白:rnrn **iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution** rnrn这是什么意思?是不是开发的应用必须在iphone和ipad上都能运行?我现在只想开发iphone的应用。
求教,有一段代码看不懂
[code=C/C++]rnrnsize_trnstrlen (str)rnconst char *str;rnrn const char *char_ptr;rn const unsigned long int *longword_ptr;rn unsigned long int longword, himagic, lomagic;rnrn /* Handle the first few characters by reading one character at a time.rn Do this until CHAR_PTR is aligned on a longword boundary. */rn for (char_ptr = str; ((unsigned long int) char_ptrrn & (sizeof (longword) - 1)) != 0;rn ++char_ptr)rn if (*char_ptr == '\0')rn return char_ptr - str;rnrn /* All these elucidatory comments refer to 4-byte longwords,rn but the theory applies equally well to 8-byte longwords. */rnrn longword_ptr = (unsigned long int *) char_ptr;rnrn[color=#FF0000] /* Bits 31, 24, 16, and 8 of this number are zero. Call these bitsrn the "holes." Note that there is a hole just to the left ofrn each byte, with an extra at the end:rnrn bits: 01111110 11111110 11111110 11111111rn bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDDrnrn The 1-bits make sure that carries propagate to the next 0-bit.rn The 0-bits provide holes for carries to fall into. */rn himagic = 0x80808080L;rn lomagic = 0x01010101L;[/color]rn if (sizeof (longword) > 4)rn rn /* 64-bit version of the magic. */rn /* Do the shift in two steps to avoid a warning if long has 32 bits. */rn himagic = ((himagic << 16) << 16) | himagic;rn lomagic = ((lomagic << 16) << 16) | lomagic;rn rn if (sizeof (longword) > 8)rn abort ();rnrn /* Instead of the traditional loop which tests each character,rn we will test a longword at a time. The tricky part is testingrn if *any of the four* bytes in the longword in question are zero. */rn for (;;)rn rn longword = *longword_ptr++;rnrn[color=#FF0000] if (((longword - lomagic) & ~longword & himagic) != 0)[/color]rn rn /* Which of the bytes was the zero? If none of them were, it wasrn a misfire; continue the search. */rnrn const char *cp = (const char *) (longword_ptr - 1);rnrn if (cp[0] == 0)rn return cp - str;rn if (cp[1] == 0)rn return cp - str + 1;rn if (cp[2] == 0)rn return cp - str + 2;rn if (cp[3] == 0)rn return cp - str + 3;rn if (sizeof (longword) > 4)rn rn if (cp[4] == 0)rn return cp - str + 4;rn if (cp[5] == 0)rn return cp - str + 5;rn if (cp[6] == 0)rn return cp - str + 6;rn if (cp[7] == 0)rn return cp - str + 7;rn rn rn rnrnrn[/code]rnrn代码是glibc的strlen函数,红色的部分<em>看不懂</em>。rn代码的大概意思是:找出字符串的第一个'\0',这就是字符串的结尾了。rn为了提高效率,一次测试一个4个字节(也可能是8个字节),就是没试的地方<em>看不懂</em>。哪位大侠看懂了,给俺讲讲。谢谢。rnrn另外,glibc的memchr.c有注释,但我还是晕晕乎乎的,以下是有注释的代码。rnrnrn[code=C/C++]rn/* Search no more than N bytes of S for C. */rn__ptr_trn__memchr (s, c_in, n)rnconst __ptr_t s;rnint c_in;rnsize_t n;rnrn const unsigned char *char_ptr;rn const unsigned long int *longword_ptr;rn unsigned long int longword, magic_bits, charmask;rn unsigned reg_char c;rnrn c = (unsigned char) c_in;rnrn /* Handle the first few characters by reading one character at a time.rn Do this until CHAR_PTR is aligned on a longword boundary. */rn for (char_ptr = (const unsigned char *) s;rn n > 0 && ((unsigned long int) char_ptrrn & (sizeof (longword) - 1)) != 0;rn --n, ++char_ptr)rn if (*char_ptr == c)rn return (__ptr_t) char_ptr;rnrn /* All these elucidatory comments refer to 4-byte longwords,rn but the theory applies equally well to 8-byte longwords. */rnrn longword_ptr = (unsigned long int *) char_ptr;rnrn /* Bits 31, 24, 16, and 8 of this number are zero. Call these bitsrn the "holes." Note that there is a hole just to the left ofrn each byte, with an extra at the end:rnrn bits: 01111110 11111110 11111110 11111111rn bytes: AAAAAAAA BBBBBBBB CCCCCCCC DDDDDDDDrnrn The 1-bits make sure that carries propagate to the next 0-bit.rn The 0-bits provide holes for carries to fall into. */rnrn if (sizeof (longword) != 4 && sizeof (longword) != 8)rn abort ();rnrn#if LONG_MAX << 32) | 0xfefefeff;rn#endifrnrn /* Set up a longword, each of whose bytes is C. */rn charmask = c | (c << 8);rn charmask |= charmask << 16;rn#if LONG_MAX > LONG_MAX_32_BITSrn charmask |= charmask << 32;rn#endifrnrn /* Instead of the traditional loop which tests each character,rn we will test a longword at a time. The tricky part is testingrn if *any of the four* bytes in the longword in question are zero. */rn while (n >= sizeof (longword))rn rn /* We tentatively exit the loop if adding MAGIC_BITS torn LONGWORD fails to change any of the hole bits of LONGWORD.rnrn 1) Is this safe? Will it catch all the zero bytes?rn Suppose there is a byte with all zeros. Any carry bitsrn propagating from its left will fall into the hole at itsrn least significant bit and stop. Since there will be norn carry from its most significant bit, the LSB of thern byte to the left will be unchanged, and the zero will bern detected.rnrn 2) Is this worthwhile? Will it ignore everything exceptrn zero bytes? Suppose every byte of LONGWORD has a bit setrn somewhere. There will be a carry into bit 8. If bit 8rn is set, this will carry into bit 16. If bit 8 is clear,rn one of bits 9-15 must be set, so there will be a carryrn into bit 16. Similarly, there will be a carry into bitrn 24. If one of bits 24-30 is set, there will be a carryrn into bit 31, so all of the hole bits will be changed.rnrn The one misfire occurs when bits 24-30 are clear and bitrn 31 is set; in this case, the hole at bit 31 is notrn changed. If we had access to the processor carry flag,rn we could close this loophole by putting the fourth holern at bit 32!rnrn So it ignores everything except 128's, when they're alignedrn properly.rnrn 3) But wait! Aren't we looking for C, not zero?rn Good point. So what we do is XOR LONGWORD with a longword,rn each of whose bytes is C. This turns each byte that is Crn into a zero. */rnrn longword = *longword_ptr++ ^ charmask;rnrn /* Add MAGIC_BITS to LONGWORD. */rn if ((((longword + magic_bits)rnrn /* Set those bits that were unchanged by the addition. */rn ^ ~longword)rnrn /* Look at only the hole bits. If any of the hole bitsrn are unchanged, most likely one of the bytes was arn zero. */rn & ~magic_bits) != 0)rn rn /* Which of the bytes was C? If none of them were, it wasrn a misfire; continue the search. */rnrn const unsigned char *cp = (const unsigned char *) (longword_ptr - 1);rnrn if (cp[0] == c)rn return (__ptr_t) cp;rn if (cp[1] == c)rn return (__ptr_t) &cp[1];rn if (cp[2] == c)rn return (__ptr_t) &cp[2];rn if (cp[3] == c)rn return (__ptr_t) &cp[3];rn#if LONG_MAX > 2147483647rn if (cp[4] == c)rn return (__ptr_t) &cp[4];rn if (cp[5] == c)rn return (__ptr_t) &cp[5];rn if (cp[6] == c)rn return (__ptr_t) &cp[6];rn if (cp[7] == c)rn return (__ptr_t) &cp[7];rn#endifrn rnrn n -= sizeof (longword);rn rnrn char_ptr = (const unsigned char *) longword_ptr;rnrn while (n-- > 0)rn rn if (*char_ptr == c)rn return (__ptr_t) char_ptr;rn elsern ++char_ptr;rn rnrn return 0;rnrnrnrn[/code]
有两个语句我看不懂
是求平均值的问题:rnfloat xx[MAXNUM];rnint N=0;rndouble aver=0.0rndouble sumint=0.0rndouble sumdec=0.0rnvoid CalValue(void)rnint irnlong val; /*val取整变量*/rnfor(i=0;i
求助~有段英文看不懂
disableing offscreen directdraw accelerationrn就这句<em>看不懂</em>~
有一个触发器代码看不懂????
CREATE TRIGGER trig_inGoods ON dbo.tb_InStorernFOR insertrnASrnif exists(select GoodsID from inserted --inserted 有什么作用?rnwhere GoodsID in(select GoodsID from tb_GoodsInfo))rnbeginrnif exists(select StoreName from inserted rnwhere StoreName in(select StoreName from tb_GoodsInfo))rnbeginrnupdate tb_GoodsInfo set GoodsNum=GoodsNum+(select GoodsNum rnfrom inserted) where GoodsID=(select GoodsID from inserted) rnand GoodsName=(select GoodsName from inserted) and StoreName=(rnselect StoreName from inserted) and GoodsSpec=(rnselect GoodsSpec from inserted)rnendrnelsernbeginrninsert into tb_GoodsInfo(GoodsID,GoodsName,StoreName,GoodsSpec,rnGoodsUnit,GoodsNum,GoodsInPrice,GoodsOutPrice)rnselect GoodsID,GoodsName,StoreName,GoodsSpec,GoodsUnit,rnGoodsNum,GoodsPrice,GoodsPrice*110/100 from insertedrnendrnendrnelsernbeginrninsert into tb_GoodsInfo(GoodsID,GoodsName,StoreName,GoodsSpec,rnGoodsUnit,GoodsNum,GoodsInPrice,GoodsOutPrice)rnselect GoodsID,GoodsName,StoreName,GoodsSpec,GoodsUnit,rnGoodsNum,GoodsPrice,GoodsPrice*110/100 from insertedrnendrn
有行HTML代码看不懂,请教
rn放在<html>标记前面,是什么意思?rn
有个地方看不懂,求救!!
public void paint(Graphics g) rn Graphics2D g2;rn g2 = (Graphics2D) g;rn g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,rn RenderingHints.VALUE_ANTIALIAS_ON);rn g2.setRenderingHint(RenderingHints.KEY_RENDERING,rn RenderingHints.VALUE_RENDER_QUALITY);rnrn Font f = new Font("Times",Font.BOLD, 24);rn AttributedString ats = new AttributedString("The Starry Night");rn ImageGraphicAttribute iga = new ImageGraphicAttribute(img, (int) BOTTOM_ALIGNMENT);rn ats.addAttribute(TextAttribute.CHAR_REPLACEMENT, iga, 4, 5);rn ats.addAttribute(TextAttribute.CHAR_REPLACEMENT, iga, 11, 12);rn ats.addAttribute(TextAttribute.FONT, f, 0, 18);rn AttributedCharacterIterator iter = ats.getIterator();rnrn FontRenderContext frc = g2.getFontRenderContext();rn tl = new TextLayout(iter, frc);rn g2.setColor(Color.red);rn tl.draw(g2, (float)20, (float)30);rn rnrnrn主要是public void addAttribute(AttributedCharacterIterator.Attribute attribute,Object value,int beginIndex,int endIndex) 这个方法不知道是如何添加的.rn以及ImageGraphicAttribute 这个类究竟是做什么的。 看了API文档也没看懂。rn
有这样一个例子,看不懂
这样的一个xml文件,<em>看不懂</em>rnrnrnrnrnrn rnrnrnrn中间的三句rnrn rnrn表示着什么?
初学者请教,有几句看不懂
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Loadrnrn Label1.Text = DateTime.Today.ToString("yyyyMMdd")rnrn Dim uerID As String = HttpContext.Current.Session("UserID").ToStringrnrnrnrn Dim sqlcon As New SqlConnectionrn Dim sqlcmd As New SqlCommandrn Dim par(1) As SqlParameter '这<em>看不懂</em>rnrn Dim sel2 As String = "select PJNM,PHNM,WorkNM,Pprogress from WorkDetail,Project,Phase,Work where WorkDetail.PJID=Project.PJID and Phase.PHID=WorkDetail.PHID and Work.WorkID=WorkDetail.WorkID "rnrn par(0) = sqlcmd.Parameters.Add("@UserID", System.Data.SqlDbType.VarChar, 3) ' 这<em>看不懂</em>rn par(0).Value = uerID '这<em>看不懂</em>rn Tryrn sqlcon.ConnectionString = MyConfig.GetCnnStr("ProgressdataConnectionString19")rn sqlcmd.Connection = sqlconrn sqlcon.Open()rn sqlcmd.CommandText = sel2rnrnrn Dim dr As SqlDataReader = sqlcmd.ExecuteReader()rnrn If dr.Read() Thenrn Label2.Text = dr("PJNM").ToString()rn Label3.Text = dr("PHNM").ToString()rn Label4.Text = dr("WorkNM").ToString()rn Label5.Text = dr("Pprogress").ToString()rnrn Elsernrn ' MsgBox(" 僄儔乕 ", MsgBoxStyle.MsgBoxSetForeground, "僄儔乕偺妋擣")rnrn End Ifrnrnrnrn Catch ex As Exceptionrn Finallyrn sqlcon.Close()rn End Tryrnrnrn Button1.Attributes.Add("onClick", "javascript:return confirm('宲懕偡傞偙偲傪妋掕偟傑偡偐?');")rnrn End SubrnEnd Classrnrn先谢了
有个匹配转义字符,看不懂....
"/\\*!(.*)!\\*/"rn这个匹配的是"/*!"与"!*/"之间的部分,如:/*! Here ... block !*/rn主要是/\\*和\\*/不懂.rn请问这两个分别是什么意思?rn
有几句英文看不懂,谢谢
two's complement notationrnrnrntwo's这里是什么?rnrn我知道complement notation是补码的意思rnrnrnrn还有rnrna segment is a special area defined in program that begins on a paragraph boundary....?rnrnrnparagraph boundary 段落分界线???请问它指的是什么呢??标准中文译法应该是~~:)rnrn谢谢诸位
有个汇编程序看不懂!!求助!!
编写程序,实现双字节无符号数加法运算,要求 (R1R0)+(R7R6)→(61H60H)。 rnORG CLR A rnMOV C , A rnMOV A , R0 rnADDC A , R6 rnMOV 60H , A rnCLR A rnMOV A , R1 rnADDC A , R7 rnMOV 61H , A rnSJMP $rnENDrn51单片机有C这个寄存器么?貌似没有啊,怎么答案是这样??
copy的html文件,有个看不懂
这是我网页copy的文件,但是有个js的地方<em>看不懂</em>,想问下这个功能,我发现注释掉后,网页依然可以在本地运行,图片等资源都正常。我把部分考了下来,这个2个js我都不明白功能rnrn[code=html]rn rn rn rn rn rn rn 关于XXXXX - XXXXXrn rn rn rn rn rn rn rn rn rn [/code]
位运算,有个式子看不懂
rn[code=C/C++]计算一个整数的符号(是+或者-) rnint v; // 待检测的数rnrnint sign; // 符号结果,0表示正数或者0,-1表示负数rnrn rnrn// CHAR_BIT 是一个字节的位数 (通常是8).rnrnsign = -(v < 0); // if v < 0 then -1, else 0. rnrn// 或者避免使用CPU判断,因为那会增加cost:rnrnsign = -(int)((unsigned int)((int)v) >> (sizeof(int) * CHAR_BIT - 1));rnrn// 或者更少的运算:rnrnsign = v >> (sizeof(int) * CHAR_BIT - 1); //<em>看不懂</em>,求分析rnrn[/code]
有句话看不懂,请教大家
rn什么意思,rnrn我的tomcat安装后默认浏览路径 D:\Tomcat\webapps\ROOT\index.jsp
求教有个东西看不懂
请教一个菜鸟级的问题rnGoToDlgCtrl((CEdit*)GetDlgItem(IDC_EDIT1));rn这个什么意思,编译怎么会出错,打错了吗?正确怎么样的rn谢谢!!~
正弦曲线的画法,有一段看不懂
#include rn#define NUM 1000rn#define TWOPI (2 * 3.14159)rn......rnrnLRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)rnrnstatic int cxClient, cyClient ;rnHDC hdc ;rnrnint i ;rnPAINTSTRUCT ps ;rnPOINT apt [NUM] ;rnswitch (message)rnrncase WM_SIZE:rncxClient = LOWORD (lParam) ;rncyClient = HIWORD (lParam) ;rnreturn 0 ;rncase WM_PAINT:rnhdc = BeginPaint (hwnd, &ps) ;rnMoveToEx (hdc, 0, cyClient / 2, NULL) ;rnLineTo (hdc, cxClient, cyClient / 2) ;rnfor (i = 0 ; i < NUM ; i++)rnrnapt[i].x = i * cxClient / NUM ;rnapt[i].y = (int) (cyClient / 2 * (1 − sin (TWOPI * i / NUM)))rnrnrnrn我的问题是for循环中,apt[i].y = (int) (cyClient / 2 * (1 − sin (TWOPI * i / NUM)))rn怎么理解。rn
请翻译一段话
The psychic task which a person can and must set forrnhimself/herself is not to feel secure but to be able torntolerate insecurity -- erich frommrn
汇编语言是不是有机器级的汇编语言
请问<em>汇编语言</em>到底有多少种类型?
思考Hadoop权威指南的一段话
《Hadoop权威指南》这本书的第一章开头有这样一句话:    “在古时候,人们用牛来拉重物。当一头牛拉不动一根原木时,人们从来没有考虑过要想方设法培育出一种更强壮的牛。同理,我们也不该想方设法打造什么超级计算机,而应该千方百计综合利用更多计算机来解决问题。”                                  ——Grace Hopper   我觉得这句话是有些许...
关于内存映射一段话求解
以下是网上的一段.exe文件加载过程:rnü 加载过程 rnrn1. 系统根据exe文件名建立进程内核对象、页目和页表,也就是建立了进程的虚拟空间。 rnrn2. 读取exe文件的大小,在默认基地址0x0040 0000上保留适当大小的区域。可以在链接程序时用/BASE 选项更改基地址(在VC工程属性\链接器\高级上设置)。提交时,操作系统会管理页目和页表,将硬盘上的文件映射到进程空间中,页表中保存的地址是exe文件的页偏移。 rnrn3. 读取exe文件的.idata节,此节列出exe所用到的所有dll文件。然后和 rnrnexe文件一样,将dll文件映射到进程空间中。如果无法映射到基地址,系统会重新定位。 rnrn4. 映射成功后,系统会把第一页代码加载到内存,然后更新页目和页 rnrn表。将第一条指令的地址交给线程指令指针。当系统执行时,发现代码没有在内存中,会将exe文件中的代码加载到内存中。 rn------------------------------------------------------------------------------------------------------------rn我要问的是,在第二步骤中所说的“将硬盘上的文件映射到进程空间中”是不是将硬盘文件映射到线性地址上啊?线性地址再映射成物理地址?rn还有第四个步骤的疑问就是:在第二步骤中已经映射了硬盘上的文件为什么在第四步骤中还要将exe文件中的代码加载到内存中呢?硬盘上的文件指的是什么。。rnrn
帮助中的一段话
UnitrnrnMathrnrnCategoryrnrnStatistical routinesrnrnfunction SumOfSquares(const Data: array of Double): Extended;rnrnDescriptionrnrnSumOfSquares returns the sum of the squares of the Data values: Data[0]^2 + Data[1]^2 + Data[2]^2...rnrnrnrnData[0]^2 + Data[1]^2 + Data[2]^2...rnrn有这种用法吗?rn
帮助改一段话,谢谢
jsp中原:rnselected >$fn:trim(at['SNAME']) rnrnrn需要修改成:rnrnrn 不知道out.println()中的话应该怎应改比较符合 rn
汇编语言汇编语言汇编语言汇编语言汇编语言汇编语言汇编语言汇编语言汇编语言
<em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em><em>汇编语言</em>
帮我解释下面的一段话
帮我解释下面的<em>一段话</em>InvokeRequired是什么时候起作用啊rn     [code=C#]rn     private void ShowTopic(string strTopicID)rn rn if (this.Topic==null) return;rn if (this.InvokeRequired)rn rnrn tryrn rn DelegateShowTopics d = new DelegateShowTopics(ShowTopic);rn this.Invoke(d, new object[] strTopicID );rn rn catchrn rn rnrn rn elsern rn rnrn if (Topic.Id == strTopicID)rn rn //打开一个空白页,实际内容在IE_DocumentCompleted中rn this.IE.Navigate("");rn rn rn [/code]
请解释一段话,谢谢。
"使用 session 对象可以存储特定的用户会话所需的信息"rnrn谁能用通俗的话说说什么是 用户会话 ?如何确定一个 用户会话 的开始和结束?rnrn谢谢?
献给技术小白的一段话
【这段话是周子力老师对技术小白同学们的一个引领,原文摘自为QQ群中的聊天记录】         大家好,前段时间很忙,没有在这里和大家进行交流,今天我想说一点我的一些想法。咱们这个技术群目的是让愿意学习技术的学生一起讨论交流,可以学硬件也可以学软件,就目前来看,从技术层面,也无外乎这两个方面。怎么样才能学好技术?         如果基础为0 ,建议把C语言学好,这个是硬件和软件的基础。但是不...
看到一段话
人的处境都是自为的。要改变处境,先要发现自己。要明确方向,先要改变态度。要内心宁静,先要接纳自己
有关于汇编语言的资料
汇编资料,有关于<em>汇编语言</em>的资料,大学本科教材资料
汇编语言模拟题(有解答)
<em>汇编语言</em>模拟题 选择题 简答题 程序分析题 程序填空题 程序编写
汇编语言有哪些种类?
<em>汇编语言</em>除了有“ibm pc 汇编”以外,还有哪些种类?
汇编语言有什么用处?
小弟很想知道<em>汇编语言</em>在那些地方比较有用?请指明.
汇编语言高手吗?
本人寻求汇编高手,帮解决几个难题!
置在顶上的一段话
你好,我是 jauliu,欢迎来看我的博客。 就现状来看,我是一名 php 开发者,博客的主要内容还是以分享一些技术相关的文章为主。 为辅的自然是我的牢骚与发骚的文字= =
js循环显示一段话
补充load函数,点击后一字一句显示内容,自己写的,有待改善
#至所有程序员的一段话#
带有励志的生活与学习总结 ( 2019年1月19日) full name:YangGeng WeChat:ygwani 从夏天的开始,到冬天的结束,一个学期就剩下那么几天时间了。我的学院不漂亮,不高大上,但是学习很强大,管理很严格,这些都是为了培养我们...
书上的一段话,不太明白!!
书上的<em>一段话</em>:rn“当开发多用户环境下的客户应用程序运行访问远程的sql服务器时,可以使用传递式sql来进行显式事务控制。为了使用传递式sql控制事务必须满足的条件中有一个就是:必须将sql passthrough mode设为not shared.”rn这是为什么?如果是默认的share autocommit 又会有什么后果?rn我的程序中从来都没有改过该设置,会有什么不良后果吗?这两种工作方式有什么区别??
致父母的一段话
无意间在网上看到的<em>一段话</em>,摘抄如下:我钦佩一种父母,她们在孩子年幼时给予强烈的亲密,又在孩子长大后学会得体的退出,照顾和分离都是父母在孩子身上必须完成的任务。亲子关系不是一种恒久的占有,而是生命中一场深厚的缘分,我们既不能使孩子感到童年贫瘠,又不能让孩子觉得成年窒息。经常有人聊起:要孩子是为了什么?传宗接代还是养儿防老?终于听到一个令人感动的答案:为了付出与欣赏。不求孩子完美,不用替我争脸,更不用...
求书中一段话的理解
在Thinking in JAVA中讲到static方法时,最后来了这么一句。rn“和其他任何方法一样,static 方法可以创建或使用与其类型相同的被命名对象,因此,static方法常常拿来做“牧羊人”的角色,负责看护与其隶属同一类型的实例群。”rn这段话<em>看不懂</em>,求给位点拨下,最好有代码作为例子。
请教:下面一段话什么意思
eth0:Too much work in interrupt,status e401
com技术内幕中有一段话
com前不要求实现一个接口要从那个接口继承,但又说 接口的基类必须是纯虚的,怎理解这两段许啊?(没分了,不知什么时候才能补上,呵呵!)
帮忙看一段话
函数参数的传送比较容易出问题。注意当对象作为参数传给函数时会创 rn建一个该对象的拷贝,而且一定要注意该对象的构造函数不会被调用!当函 rn数调用结束时该对象的析构函数将被调用!要避免没有对象被析构,方法就 rn是将对象的引用作参数传递给函数,这样没有对象被拷贝,当然也不会有对 rn象被析构,请注意这时函数的操作将影响到该对象的内部属性。 rnrn为什么该对象的构造函数不会被调用?rnrnrn
看不懂
{    vector&amp;lt;long long&amp;gt; result(10, 0);    for(long long i = 1; i &amp;lt;= 9; i++)    {        for(long long v = 1; v*i &amp;lt;= r; v*=10)        {            long long step;            long long start ...
看不懂!!!
用几行Asp代码实现防止表单多次被提交rn作者:廖家远rnrn 在很多情况下都需要防止相同的表单被多次提交,很多人的实现方法都比较复杂(代码数量超过几十行!!)下面提供一种只需使用几行代码的方法,轻松地实现了防止用户刷新多次提交表单和使用后退钮重复多次提交表单。 rn表单文件formtest.asp rn < %Randomize '初始代随机数种子 rn num1=rnd() '产生随机数num1 rn num1=int(26*num1)+65 '修改num1的范围以使其是A-Z范围的Ascii码,以防表单名出错 rn session("antry")="test"&chr(num1) '产生随机字符串 rn % > rn < form name="test" action="testact.asp" method="post" > rn 你的名字:< input type='text' name='' size=30 > '注意本行中使用了随机表单项名 rn < input type='submit' value='提交' > rn < /form > rn表单处理程序testact.asp rn < % rn teststr=request.form(session("antry")) rn if teststr="" then rn response.write "没有填写姓名或重复提交" rn '由于用户没有填写名字,或表单被重复提交(标志为session("antry")为空)引起 rn else rn response.write teststr rn session("antry")="" '提交成功,清空session("antry"),以防重复提交!! rn end if rn % > rn 在这里,你只需随机化一个必填项目的表单项名即可,不必随机化所有的表单项目。 rn 欢迎访问我的个人主页http://swuse.yeah.netrn
看不懂就是看不懂
以下是一个程序的开头:rncode segmentrnassume cs:code,ds:codernorg 100hrnstart:rnjmp installrn小弟不懂"jmp install'是什么意思?请教诸位大虾
看不懂
int f(int x)rnrn int c=1;rn int cnt=0;rn while(c
看不懂...
LinkTopic 属性rn rnrn对于接收端控件-返回或设置发送端应用程序和主题(使用于该应用程序中的基本数据的分组)。为了指定完整的数据链,应当与 LinkItem 属性一起使用 LinkTopic。rnrn对于发送端窗体-返回或设置在 DDE 对话中发送端窗体需响应的主题。rnLinkTopic 属性由字符串组成,该字符串用来提供为建立接收端链或者发送端链必须的部分信息。该字符串依赖于正在使用的是接收端控件还是发送端窗体。每个字符串对应于标准 DDE 语法的一个或多个元素,它包括 application、topic和 item。rnrn注意 当 DDE 链接的标准定义包括 application、topic 和 item 元素时,对于接收端链接到发送端应用程序来说,应用程序内实际使用的语法可作少许的变更。例如,在 Microsoft Excel 中,可使用下面的语法:rnrnapplication|topic!itemrnrn而在 Microsoft Word for Windows 中,使用的是:rnrnapplication topic itemrnrn(不要使用管道符 [|] 或惊叹号 [!]。)rnrn在 Visual Basic 应用程序中,使用的是:rnrnapplication|topicrnrn惊叹号对于 topic 是隐含的。rnrnrnrn這到底是說什么呢?????
好美的一段话
人生中出现的一切,都无法占有,只能经历。我们只是时间的过客,总有一天,我们会和所有的一切永别。深知这一点的人,就会懂得:无所谓失去,而只是经过而已;亦无所谓得到,那只是体验罢了。 经过的,即使再美好,终究只能是一种记忆;得到的,就该好好珍惜,然后在失去时坦然地告别。
算法导论第六章堆排序的一段话
当MAX-HEAPIFY作用在一棵以结点i为根的、大小为n的子树上时……………i结点的子树大小至多为2n/3(最坏情况发生在最低层恰好半满的时候)………. 为什么子树大小至多为2n/3?rnrn在网上搜到一个分析:rnn0+n1+n2=n (1) n1+2n2+1=n (2) 由(1),(2)得, n0=n2+1,因为二叉堆是完全二叉树,且最后一层半满,即n1=0,得: n0=(n+1)/2 则最后一层为x,倒数第二层的叶子结点为x/2: x+x/2=n0=>x=(n+1)/3 所以子树大小至多为 (x+n-1)/2=((n+1)/3+n-1)/2=(2n-1)/3<=2n/3rnrn恕我愚钝,还是没有看懂啊,n0,n1,n2分别代表什么,高度为0,1,2的节点数?为什么n1为0?最底层半满是什么意思?rn有没有大侠可以给出比较清晰的分析过程呢?rn万分感激!!!!!!
他人的一段话,触动很大
虽然不太赞同楼主提问里的个别言语,但是想想楼主如果都想清楚了也就不问了;所以我来好好回答一下你这个问题。 我认为不同人适应不同的公司、一个人不同阶段的想法及关注点都会不同;那么别人的看法和感受就不一定适合自己。但是别人看问题的思路我们是可以学习和参考的,提供的实际情况也是可以帮助我们看清问题。 首先来我说一下几点实际情况: 1.阿里P6是高级工程师(阿里把晋升分为P和M两个序列。...
谁知道下面一段话的内容?
Comments should justify offensive code.The justification should be that something bad will happen if unoffensive code is used.Just making code faster is not enough to rationalize a hack;the performace maust be shown to be unacceptable without the hack.The comment should explain the unacceptable behavior and describe why the hack is a "good" fix.
一段话不理解,求解释
在C++编程规范中看到:rn静态生存周期的对象,包括全局变量,静态变量,静态类成员变量,以及函数静态变量,都必须是原生数据类型(POD:Plain Old Data)。rn静态变量的构造函数,析构函数以及初始化操作的调用顺序在C++标准中未明确定义,从而导致难以发现的bug。比如作用域结束时,某个静态变量已经被析构了,但其他代码还试图访问该变量,导致系统崩溃。所以只允许PDO类型的静态变量。同样,不允许用函数返回值来初始化静态变量。rn不甚理解,求解释!(除了比如那句)
看不懂,实在看不懂!!!!
想实现自适应的带引用计数的智能指针,比如class A已实现引用计数功能,现在设计一个class A_var的智能指针,在A *pA=get()中已调用_add_ref(),A_var析构时自动调用A::_remove_ref()。参考了一下TAO中的TAO_Pseudo_Var_T,它居然有下面的代码:rnTAO_Pseudo_Var_T::TAO_Pseudo_Var_T (const TAO_Pseudo_Var_T & p)rn : ptr_ (T::_duplicate (p.ptr ()))rnrnrn想不通,既然T为非特化的,怎么可以调用T::_duplicate()呢?rnrn顺便请教一下实现自适应的带引用计数的类的智能指针如何实现为好?
pylint 0.21下载
pylint 0.21 依赖logilab-common和logilab-astng 相关下载链接:[url=//download.csdn.net/download/ixuh2/2675814?utm_source=bbsseo]//download.csdn.net/download/ixuh2/2675814?utm_source=bbsseo[/url]
命令行解析函数getopt用法详解下载
命令行解析函数getopt使用方法详解,更方便分析命令参数 相关下载链接:[url=//download.csdn.net/download/wjth07/3745676?utm_source=bbsseo]//download.csdn.net/download/wjth07/3745676?utm_source=bbsseo[/url]
RH033-RHEL5-en-2-20070602下载
RH033 Red Hat Linux Essentials 相关下载链接:[url=//download.csdn.net/download/mjpclab/4882812?utm_source=bbsseo]//download.csdn.net/download/mjpclab/4882812?utm_source=bbsseo[/url]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池
我们是很有底线的