programmingwith8086.blogspot.com
Programming the 8086
http://programmingwith8086.blogspot.com/2011/02/fibonacci-series.html
Programming the 8086: Fibonacci Series. Wednesday, February 16, 2011. Enter the number: $'. Reading 1st multidigit number. Posted by Arun Ramesh. Subscribe to: Post Comments (Atom). Sort the characters in a string. Sum of row elements of a matrix. Insert a string in middle of another string. Cursor operations-Change size and Move. Reverse each words in a sentance. Factorial of a number. No of vowels in a string. Insert a string in another string. GCD of two numbers. No of words in a sentance. Display a c...
graphics-using-c.blogspot.com
Graphics programming using c
http://graphics-using-c.blogspot.com/2010/08/filling-recursive-method.html
Graphics programming using c. Tuesday, August 3, 2010. Filling - recursive and non-recursive method. 3 Write a program to implement following seed filling algorithms on polygon, circle and an ellipse. A) floodfill b) boundary fill. Recursive and Non Recursive method. NULL) { pop(); x=p- x; y=p- y; if( getpixel(x 1,y)! Bdry)& (getpixel(x 1,y)! New) { putpixel(x 1,y,new); push(x 1,y); } if( getpixel(x-1,y)! New) { putpixel(x-1,y,new); push(x-1,y); } if( getpixel(x,y 1)! Bdry)& (getpixel(x,y 1)! Circumcircl...
graphics-using-c.blogspot.com
Graphics programming using c
http://graphics-using-c.blogspot.com/2010/10/draw-following-figure1.html
Graphics programming using c. Wednesday, October 13, 2010. Draw the following figure(1). Struct point { int x,y; }pol[ 3. Int n,r; float trans[ 3. Void midpoint(int xc,int yc,int r) { int x= 0. Int y=r; int p= 1. R; plot(xc,yc,x,y); while. Plot(xc,yc,x,y); } } void plot(int xc,int yc,int x,int y) { putpixel(xc x,yc y, 10. Putpixel(xc-x,yc y, 10. Putpixel(xc x,yc-y, 10. Putpixel(xc-x,yc-y, 10. Putpixel(xc y,yc x, 10. Putpixel(xc-y,yc x, 10. Putpixel(xc y,yc-x, 10. Putpixel(xc-y,yc-x, 10. I ) { for. New,bd...
graphics-using-c.blogspot.com
Graphics programming using c
http://graphics-using-c.blogspot.com/2010/08/line-clipping.html
Graphics programming using c. Sunday, August 15, 2010. Xa) m=(float)(yb-ya)/(float)(xb-xa); while(1) { if(rcode1= 0& rcode2= 0) return 1; else if( rcode1&rcode2)! 0) return 0; else { int outcode=(rcode1= 0)? Rcode2:rcode1; if(outcode&top) { if(m! 0) x=xa (float)(1/m)*(float)(wymax-ya); else x=xa; y=wymax; } else if(outcode&bottom) { if(m! Kbhit() ; closegraph(); initgraph(&gd,&gm,NULL); printf(After Clipping ); rectangle(wxmin,wymin,wxmax,wymax); if(clipline() line(xa,ya,xb,yb); while(!
programmingwith8086.blogspot.com
Programming the 8086
http://programmingwith8086.blogspot.com/2011/05/sum-of-row-elements-of-matrix.html
Programming the 8086: Sum of row elements of a matrix. Monday, May 2, 2011. Sum of row elements of a matrix. Read a multidigit number. Enter the no of rows: $'. Enter the no of column: $'. Enter the element of matrix : $'. Sum of elements of row $'. Read no of rows. Read no of column. Calculating total no of elements. Read 1st matrix elements. Posted by Arun Ramesh. Subscribe to: Post Comments (Atom). Sort the characters in a string. Sum of row elements of a matrix. Cursor operations-Change size and Move.
graphics-using-c.blogspot.com
Graphics programming using c
http://graphics-using-c.blogspot.com/2010/10/rotate-triangle-along-circumference-of.html
Graphics programming using c. Tuesday, October 12, 2010. Rotate a triangle along the circumference of a circle, also rotate the triangle with reference to its centroid. Rotate a triangle along the circumference of a circle, also rotate the triangle with reference to its centroid. Use midpoint algorithm for circle drawing. Kbhit() ; closegraph(); return 0; }. Posted by Arun Ramesh. Subscribe to: Post Comments (Atom). There was an error in this gadget. Amazon Contextual Product Ads. View my complete profile.
programmingwith8086.blogspot.com
Programming the 8086
http://programmingwith8086.blogspot.com/2011/02/cursor-operations-change-size-and-move.html
Programming the 8086: Cursor operations-Change size and Move. Saturday, February 19, 2011. Cursor operations-Change size and Move. Press 1 to increase and 0 to decrease. The size of cursor (only 4 sizes, initially minimum) $'. Press 8,2,4 and 6 to move the cursor. Up,down,left and right respectively $'. Press ENTER to finish $'. Get cursor position and size. Posted by Arun Ramesh. March 16, 2016 at 3:52 AM. Wont the value of AX be reset to 0 if XOR is performed? Shouldnt you push and pop it? Xor ax, ax.
graphics-using-c.blogspot.com
Graphics programming using c
http://graphics-using-c.blogspot.com/2010/08/line-drawing.html
Graphics programming using c. Tuesday, August 3, 2010. 1 Write a program to draw line using DDA algorithm and Bresenham's algorithm. Posted by Arun Ramesh. Subscribe to: Post Comments (Atom). There was an error in this gadget. Amazon Contextual Product Ads. Draw sierpinski triangle using fractal geometric method. Draw a Sierpinski triangle. Draw a polygon. Use Bresenham line drawing algorithm to draw line. Draw a polygon. Use Bresenham/Midpoint line drawing algorithm to draw line. View my complete profile.
graphics-using-c.blogspot.com
Graphics programming using c
http://graphics-using-c.blogspot.com/2010/11/draw-sierpinski-triangle.html
Graphics programming using c. Sunday, November 21, 2010. Draw a Sierpinski triangle. Define pi 3.142857. Define ROUND(a)( int)(a 0.5). Int max; void DDA(int xa,int ya,int xb,int yb) { int dx,dy,steps,k; dx=xb-xa; dy=yb-ya; float x=xa,y=ya,xinc,yinc; if. Abs(dx) abs(dy) steps=abs(dx); else. Steps=abs(dy); xinc=dx/( float. Steps; yinc=dy/( float. Steps; putpixel(ROUND(x),ROUND(y), 5. K steps;k ) { x =xinc; y =yinc; putpixel(ROUND(x),ROUND(y), 5. A b) s=a; else. 160; newy1=(y1 y2)/ 2. 160; newy2=(y2 y3)/ 2.
programmingwith8086.blogspot.com
Programming the 8086
http://programmingwith8086.blogspot.com/2011/02/change-string-to-upper-or-lower-case.html
Programming the 8086: Change the string to upper or lower case. Tuesday, February 15, 2011. Change the string to upper or lower case. Enter the string $'. Enter your option(1 or 2): $'. Case converted string $'. Posted by Arun Ramesh. Subscribe to: Post Comments (Atom). Sort the characters in a string. Sum of row elements of a matrix. Insert a string in middle of another string. Cursor operations-Change size and Move. Reverse each words in a sentance. Factorial of a number. No of vowels in a string.