Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
有一点要说明,我们原来介绍的程序都是先开一个char类型的缓冲区,用来存储新图数据,但在这个算法中,因为e有可能是负数,为了防止得到的值超出char能表示的范围,我们使用了一个int类型的缓冲区存储新值。-point to note, we originally introduced procedures are to open a type of char buffer new plan to store data, but at this algorithm, e may be negative, In order to prevent the value of char can be said beyond the scope we used an int type of buffer storage new value.
Date : 2008-10-13 Size : 1.93kb User : 王夏

HILBERT.c:10年前写的一个程序,好象是画希尔伯特曲线的程序,用的是Bios中断 int 10实现的。-HILBERT.c : 10 years ago wrote a procedure appears to be painting Hilbert curve procedures, the suspension is fitted to achieve the 10 int.
Date : 2008-10-13 Size : 16.24kb User : weicy

电子表控件,根据字库生成原理制作成0-9的电子表字库(二维数组).其中经典代码为读字模部分和透明显示部分.读者需要自己调用void _DrawTime(HDC hdc,int X,int Y,unsigned long color) 说明:参数color为字体颜色. 测试一下,是不是时间变漂亮了
Date : 2008-10-13 Size : 10.51kb User : YJJ

1.(椭圆)画一个与客户区等大,并随客户区改变大小的填充椭圆。(最好可以每次随机确定椭圆边框和填充的颜色,其中随机颜色分量的值,可调用[返回int型随机数的C语言]函数rand,再余上256[可得0~255之间的随机数]:rand() % 256) 2.(直线)用鼠标交互绘制动态直线。(参见3.5的2和3)
Date : 2008-10-13 Size : 25.58kb User : 钟国英

画图 2.计算计算一组几何图形的面积之和重新写一个函数,类似于sum函数 3.在Shape中添加一个纯虚函数void Draw(CDC *pDC, Coordinate *m_pCoordinate) 它将作为所有几何类绘图的共同方法。 4.添加一个坐标系类:Coordinate。 5.在Polygon中重载void Draw(CDC *pDC) 6.在Ellipse中重载void draw(CDC *pDC) 7.在View类中的OnDraw(CDC *pDC)中将图形画出来 8.调用void draw(CDC *pDC, Shape *a[], int n)实现多个几何图形的绘制
Date : 2008-10-13 Size : 101.79kb User : 张平

有一点要说明,我们原来介绍的程序都是先开一个char类型的缓冲区,用来存储新图数据,但在这个算法中,因为e有可能是负数,为了防止得到的值超出char能表示的范围,我们使用了一个int类型的缓冲区存储新值。-point to note, we originally introduced procedures are to open a type of char buffer new plan to store data, but at this algorithm, e may be negative, In order to prevent the value of char can be said beyond the scope we used an int type of buffer storage new value.
Date : 2026-01-07 Size : 2kb User : 王夏

HILBERT.c:10年前写的一个程序,好象是画希尔伯特曲线的程序,用的是Bios中断 int 10实现的。-HILBERT.c : 10 years ago wrote a procedure appears to be painting Hilbert curve procedures, the suspension is fitted to achieve the 10 int.
Date : 2026-01-07 Size : 16kb User : weicy

电子表控件,根据字库生成原理制作成0-9的电子表字库(二维数组).其中经典代码为读字模部分和透明显示部分.读者需要自己调用void _DrawTime(HDC hdc,int X,int Y,unsigned long color) 说明:参数color为字体颜色. 测试一下,是不是时间变漂亮了-Electronic form control, in accordance with the principle of font generation into electronic form font 0-9 (two-dimensional array). In which the classical part of the code for reading and transparent matrix display. Readers need to call void _DrawTime (HDC hdc, int X, int Y, unsigned long color) Description: color for the font color parameters. test is not the time to become beautiful
Date : 2026-01-07 Size : 10kb User : YJJ

1.(椭圆)画一个与客户区等大,并随客户区改变大小的填充椭圆。(最好可以每次随机确定椭圆边框和填充的颜色,其中随机颜色分量的值,可调用[返回int型随机数的C语言]函数rand,再余上256[可得0~255之间的随机数]:rand() % 256) 2.(直线)用鼠标交互绘制动态直线。(参见3.5的2和3)-1. (Oval) painting a large area with customers and with customers to change the size of area fill oval. (The best can be determined for each random oval borders and fill colors, in which random color component values may also be called [to return a random number int type C language] function rand, again more than the 256 [available between 0 ~ 255 random number]: rand () 256) 2. (Linear) interaction with the mouse dynamic linear mapping. (See 3.5 of 2 and 3)
Date : 2026-01-07 Size : 25kb User : 钟国英

画图 2.计算计算一组几何图形的面积之和重新写一个函数,类似于sum函数 3.在Shape中添加一个纯虚函数void Draw(CDC *pDC, Coordinate *m_pCoordinate) 它将作为所有几何类绘图的共同方法。 4.添加一个坐标系类:Coordinate。 5.在Polygon中重载void Draw(CDC *pDC) 6.在Ellipse中重载void draw(CDC *pDC) 7.在View类中的OnDraw(CDC *pDC)中将图形画出来 8.调用void draw(CDC *pDC, Shape *a[], int n)实现多个几何图形的绘制-Paint 2. Calculation of calculating a set of geometric shapes of the area and re-write a function, similar to sum function 3. In Shape Add a pure virtual function void Draw (CDC* pDC, Coordinate* m_pCoordinate) it will serve as all the geometric types of graphics common methodology. 4. Add a coordinate system type: Coordinate. 5. Polygon in overloaded void Draw (CDC* pDC) 6. In the Ellipse in overloaded void draw (CDC* pDC) 7. In the View class OnDraw (CDC* pDC) will be drawn graphics 8. Call void draw (CDC* pDC, Shape* a [], int n) the mapping of multiple geometric shapes
Date : 2026-01-07 Size : 102kb User : 张平

string转换为int的演示程序,挺简单-stringToint
Date : 2026-01-07 Size : 5kb User : huahua

This is a rudimentary color blob extractor. You may choose ExtractBlobs(int r, int g, int b) and call it with a tolerance for each value of red, green and blue channel. Afterwards you get the rectangles containing mainly this colors. Note: The original code is in C#, but I didn t find this in here. So I added it to Java. If you d like to get the whole projet upload it or refer also to: http://www.mycsharp.de/wbb2/thread.php?postid=3564548#post3564548
Date : 2026-01-07 Size : 1kb User : dr4g0n76

DL : 0
在窗口指定区域动态绘制波形类以及示例 初始化工作一次完成后,后续只需调用唯一接口 int AddNewValue(WORD wVal)即可。波形振幅、频率;曲线颜色、粗细、背景色都可以控制改变。-Dynamic rendering the designated area in the window class and the sample waveform initialization work that is completed, simply call up the only interface to int AddNewValue (WORD wVal) can. Waveform amplitude, frequency curve color, thickness, background color change can be controlled.
Date : 2026-01-07 Size : 10kb User : Dragia

本文介绍了类,代表了全托管代码的位图。 一个位图,基本上是一维数组,使用了一些计算被视为一个二维数组看到。在这种数组中的值可以是颜色索引(当使用调色板)或RGB值直接使用某种类型的编码。托管位图具有PixelArray,这是一个字节数组,GrayscaleBitmap的诠释(System.Int32的),为ArgbBitmap为ColorBitmap颜色和简单的类。他们也知道有一个宽度,计算出的X / Y坐标。高度值,然后计算作为其宽度PixelArray长度划分。他们当然有一些其他方法。它们可以被转换成和相互System.Drawing.Bitmaps,也可以复制一个唯一的“块“到另一个 -A bitmap is basically a one-dimensional array that uses some calculation to be seen as a two-dimensional array. The values in such array could be color indexes (when using color palettes) or the RGB values directly, using some type of encoding. The managed bitmaps are simple classes that have a PixelArray, which is an array of bytes, for GrayscaleBitmap, of int (System.Int32) for ArgbBitmap and of Color for ColorBitmap. They also have a Width to know to calculate a X/Y coordinate. The height value is then calculated as a division of the PixelArray length by its Width. They, of course, have some additional methods. They can be converted to and from each other and System.Drawing.Bitmaps, and also can copy only "blocks" from one to another
Date : 2026-01-07 Size : 89kb User : 胡九

DL : 0
测试代码,主要看int类型转换float后是怎么转换的。-Test code, mainly to see the int type float after conversion is how to convert.
Date : 2026-01-07 Size : 167kb User : ii

自绘ComboBox,学自绘控件用的,希望对大家有用。-The CCstmComboBox class is derived from the MFC CComboBox class, and supports dialog data exchange and validation with DDX_CBString for CString and DDX_CBIndex for int variables like the ordinary CComboBox MFC class.
Date : 2026-01-07 Size : 134kb User : ji

DL : 0
arc画圆弧 int X0=300 int Y0=300 //圆心 int R=50 //半径 pDC->Arc(X0-R,Y0-R,X0+R,Y0+R,X0+R,Y0,X0+40,Y0-30) -Draw an arc arc
Date : 2026-01-07 Size : 1.83mb User : 顾生普

DL : 0
vc++ 获得指定像素点的颜色,如演示截图所示,用户可以用鼠标左键单击图片的某一处时,就会在图片的右侧以该点颜色填充一个实心的矩形。实现方法通过函数COLORREF CDC::GetPixel( int x, int y)可以得到指定点的颜色,其参数x、y 是指定点的坐标-When vc++ for the specified pixel color, as shown in the screenshot demonstrates, the user can use the left mouse button, click the image one place, will be in the right side of the picture to the point of a solid color fill rectangle. Implementation by the function COLORREF CDC :: GetPixel (int x, int y) can be color specified point, the parameters x, y coordinates of the specified point
Date : 2026-01-07 Size : 76kb User : wangshuang

一个Hanoi的小游戏void Hanoi(int n, char x,char y,char z){ if (n==1) { printf( %c %d %c\n ,x,n,z) return } Hanoi(n-1,x,z,y) printf( %c %d %c\n ,x,n,z) Hanoi(n-1,y,x,z) }-Hanoi in a game void Hanoi (int n, char x, char y, char z) (if (n == 1) (printf ( c d c , x, n, z) return) Hanoi ( n-1, x, z, y) printf ( c d c , x, n, z) Hanoi (n-1, y, x, z))
Date : 2026-01-07 Size : 7kb User : xian4126602

DL : 1
描述   公司有n个员工,编号1 ~ n。员工数量众多,需要你为他们编写一个管理系统。   员工上班时都要登录管理系统登记一个code,离开要从管理系统上注销,员工也可以随时更新自己的code。到了下班时间,所有员工都会自动注销。公司管理人员随时都可能想要知道有多少员工上班,以及任一员工登记的code。 输入   第一行两个整数n、m。接下来m行,每行都是以下内容之一: I a c //Log In:员工a登录,code为c。若a已登录,则将code更新为c O a //Log Out:编号为a的员工注销。若a未登录,则注销无效 C //Close:到下班时间,所有员工注销 N //Number:询问有多少员工正在上班 Q a //Query:询问员工a的code(若未登录或已注销,视为-1) 输出   一个整数,是所有询问(N、Q)的答案之和(int表示,自动溢出,不用管溢出部分)(The company has n employees, numbered 1 ~ n. The large number of employees requires you to write a management system for them. When employees go to work, they have to log in to the management system to register a code and leave to logout from the management system. Employees can also update their code at any time. By the time of get off work, all employees will be automatically logged off. Company managers may want to know how many employees work at any time, as well as any employee registration code.)
Date : 2026-01-07 Size : 449kb User : 关林
« 12 »
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.