- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
34 Posted Topics
I recommend to push all necessary register before using external function. Add [CODE]push eax push ebx push ecx[/CODE] before [CODE]call printf[/CODE] and [CODE]pop ecx pop ebx pop eax[/CODE] after it.
You changed *p* by *p++;*, so you cannot free new *p*. :)
Even more, you can use strict comparison operator == created by yourself. class Point3D { public: double x,y,z; Point3D() { initializeK(); } void initializeK() { x=0.;y=0.;z=0.; } ~Point3D() { } int operator ==(const Point3D &pnt) { int ires; ires=0; if(pnt.x==this->x&&pnt.y==this->y&&pnt.z==this->z) ires=1; return ires; } }; ... Point3D pnt1,pnt2; pnt1.x=1.;pnt1.y=2.;pnt1.z=3.; pnt2.x=1.;pnt2.y=2.;pnt2.z=3.1; …
This function: system("dir"); will show you the result of **dir** command.
Just HTML will not help. You need to use something like PHP on your back side.
You can find the first employee in the list that is greater than that you want to insert, and insert before it.
This line: int *b; just tells the machine that address *b* will point to integer, and what memory adress contains *b* we do not know. Before the line *b=6; you should allocate place in the memory to put number 6 there: b=new int[1]; . So, it should be like: int …
select * from ( select t2.col1, t2.coln, SUBSTR(t2.colr, 1, INSTR(t2.colr, '.') - 1) as coln2, SUBSTR(t2.colr, INSTR(t2.colr, '.') + 1) as coln3 from ( select t.Filling_s_no, SUBSTR(t.Filling_s_no, 1, INSTR(t.Filling_s_no, '.') - 1) as coln, SUBSTR(t.Filling_s_no, INSTR(t.Filling_s_no, '.') + 1) as colr from TCD_EX_Tab t ) t2 ) t3 order by …
I need to use Drools 6.2.0.Final. Is it possible to use Guvnor with it? Any example? Thank you.
Did you check *upload_max_filesize* variable in PHP.INI?
#include <stdio.h> #include <string.h> void main() { char s1[]="abcd",s2[]="xyz"; if(strcmp(s1,s2)) printf("No"); else printf("Yes"); }
finit fld [Leg1] fld [Leg1] fmulp fld [Leg2] fld [Leg2] fmulp faddp fsqrt fstp [Hypotenuse] Leg1 dt 3.0 Leg2 dt 4.0 Hypotenuse dt ?
fld [z] ... z dt ? ;10 bytes variable
b. mov ebx,0 mov edi,A mov bl,byte [edi] mov edx,0 inc edi mov ecx,1 mMain: cmp bl,byte [edi] jge mSkip mov bl,byte [edi] mov edx,ecx mSkip: inc edi inc ecx cmp ecx,[n] jl mMain A db 2,8,7,6,5,9,0,3,1,4 n dd $-A edx will contain result (same as c in your C-code).
Remove Line 7. Insert this: string[] names_ = new string[x]; before 5th line.
This is the function which calculates number of 0-bits in 16-bit number: [CODE]GetNumberOfZeros16: mov eax,0 mov ecx,16 mCountZeros: test dx,1 jnz mSkip inc eax mSkip: shr dx,1 loop mCountZeros ret[/CODE] . Let me know if you need more help.
[CODE] mov eax,[qsec] mov ebx,60 mov edx,0 div bx push edx mov edx,0 div bx push edx lea edi,[sHHMMSS] mov ecx,3 mRp: mov ebx,10 mov edx,0 div bx add eax,'0' mov byte [edi],al inc edi add edx,'0' mov byte [edi],dl inc edi cmp ecx,1 jle mEx pop eax mov byte …
After you entered string with number and converted it to number, for example it is in eax: [CODE] mov ecx,eax mov ebx,0 cmp ecx,0 jle mSkip mMain: add ebx,ecx loop mMain mSkip:[/CODE], result will be in ebx.
[CODE] mov ecx,0 mov cl,[QDM] mov ebx,ecx mov edi,Matrix mSpiral: push edi mov al,[edi];Output [edi] push ecx mov edx,ecx mov ecx,edx dec ecx cmp ecx,0 jle mSkD1 mD1: add edi,ebx mov al,[edi];Output [edi] loop mD1 mSkD1: mov ecx,edx dec ecx cmp ecx,0 jle mSkD2 mD2: inc edi mov al,[edi];Output [edi] …
[CODE]<? $tf_con=@strtotime(@$_POST['time_out'])-@strtotime(@$_POST['time_in']); echo("[".$tf_con."] seconds or<br/>"); $tf_con/=60;echo("[".$tf_con."] minutes or<br/>"); $tf_con/=60;echo("[".$tf_con."] hours or<br/>"); $tf_con/=24;echo("[".$tf_con."] days<br/>"); ?> <html> <body> <form method='POST'> time_out (YYYY/MM/DD HH:MM:SS): <input type='text' name='time_out' value="<?echo(@$_POST['time_out']);?>"/> time_in (YYYY/MM/DD HH:MM:SS): <input type='text' name='time_in' value="<?echo(@$_POST['time_in']);?>"/> <input type='submit' value='Submit'/> </form> </body> </html>[/CODE]
Look at [url]http://www.daniweb.com/software-development/assembly/threads/400486[/url]
Change [B]for(j=1;j<=n;j++1)[/B] to [B]for(j=1;j<=n;j++)[/B].
Add resource to your project. Add icon to this resource. Rebuild. Look at your EXE file - it should have your icon. PS. If you are running your console application from VS debugger, you will see default icon probably...
Here is your C++ algorithm: [CODE]format PE GUI 4.0 include 'win32a.inc' mov [digit1],1 mdigit1: mov [digit2],1 mdigit2: mov [digit3],1 mdigit3: mov eax,[digit1] mul [digit1] mul [digit1] mov ebx,eax mov eax,[digit2] mul [digit2] mul [digit2] add ebx,eax mov eax,[digit3] mul [digit3] mul [digit3] add ebx,eax mov eax,100 mul [digit1] mov ecx,eax …
[CODE] mov esi,ak mov ecx,0 mov cx,[qak] mov eax,0;sum msum: add ax,word [esi] add esi,2 loop msum mov edx,0 mov ebx,0 mov bx,[qak] div ebx ;EAX contains average now [/CODE]
Comparison must use double equals sign like: [CODE]if(grid[0][0][B]==[/B]2){printf("\n_");} if(grid[0][0][B]==[/B]1){printf("\nX");}[/CODE]
DX will contain required sum: [CODE] mov dx,0 mov esi,matr mov ecx,0 mov cx,[dimmatr] mov eax,1 mRow: push ecx mov cx,[dimmatr] mov ebx,0 mCol: cmp ebx,eax jl msk add dx,word [esi] msk: inc ebx add esi,2 loop mCol inc eax pop ecx loop mRow dimmatr dw 3;matrix dimension matr dw …
You have to overload operator = in your class.
This should work: [CODE] mov cl,07d mov ch,015d mov ebx,200h mov eax,0 ciklus: mov [ebx],cl inc cl inc ebx inc eax cmp cl,ch jle ciklus mov ebx,200h mov ecx,eax mov dx,0 ciklus1: test byte [ebx],3h jnz msk mov ax,0 mov al,[ebx] add dx,ax msk: inc ebx loop ciklus1 [/CODE] .
This code: [CODE] mov edx,0 cmp eax,1 jle mEx mov ecx,eax shr ecx,1 mov ebx,2 mov edx,1 mMain: cmp ebx,ecx jg mEx push eax mov edx,0 div ebx pop eax cmp edx,0 je mEx inc ebx jmp mMain mov edx,1 mEx: [/CODE] checks if number in eax is prime. If …
C++ does not have any possibility to learn array length.
[CODE]format PE GUI 4.0 include 'win32a.inc' mov esi,shex mov ecx,0 mGotoEnd: cmp byte [esi],0 je mGotoEndEx inc esi inc ecx jmp mGotoEnd mGotoEndEx: dec esi mov edx,0 mov ebx,1 mConvertToNumber: mov eax,0 mov al,[esi] mov ah,'0' cmp al,'A' jl mDigit mov ah,'A'-10 mDigit: sub al,ah mov ah,0 push edx mul …
[CODE]format PE GUI 4.0 include 'win32a.inc' ;Initialize aResult array to all zeros mov ecx,15 mov edi,aResult mIni: mov byte [edi],0 inc edi loop mIni mov esi,aData;Set index for aData array mov edi,aResult mMain: cmp byte [esi],0 jne mSkEx;While not EOS do jmp mEx mSkEx: cmp byte [esi],0A0h;Check if between $A0 …
I did not care of errors because you did not write about them, so I do not know how to process them. Only digits and capitals 'A'-'F' are allowed to enter. Let me know if you have any questions. [CODE] ;nasm -f bin HexToA.asm -o HexToA.com ;Convert HEX to character …
The End.