CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - INT 1
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - INT 1 - List
[
Windows Develop
]
MIPS
DL : 0
《MIPS五级整数流水线模拟系统》设计文档与源代码。 [代码性质] VC完整应用程序代码-The source and design document of <MIPS simulant system of 5 level int pipelining>. [code kind] VC whole application source code.
Date
: 2026-01-06
Size
: 969kb
User
:
毛建孟
[
Windows Develop
]
2-16进制正整数字符串转为数值11
DL : 0
函数 long StrToData(CString strData,int jz) 功能:字符串转为正整数值 [字符串可为2-16]任意进制数值字符串 返回:长整型数值 参数:strData 为将要转换的字符串 参数:jz 为字符串的进制 如: CString s s="FFA6" long data=StrToData(s,16) 则:data的值为:65446 用法:将StrToData.h和StrToData.cpp复制加入到您的工程里,在需要调用的函数中 加入#include "StrToData.h"即可调用-function of long StrToData(CString strData,int jz) :changed character string to positive integer,changed character may be any decimal system,return:long Integer value,parameter:strData is the character string to be changed,jz is type of decimal system.
Date
: 2026-01-06
Size
: 12kb
User
:
梁志洪
[
Windows Develop
]
ysdy
DL : 0
特别要注意的是用extern int dllGlobalVar声明所导入的并不是DLL中全局变量本身,而是其地址,应用程序必须通过强制指针转换来使用DLL中的全局变量。-particular attention to the use extern int dllGlobalVar statement is not a DLL into the global variables themselves, but their addresses, applications must pass mandatory conversion to the use of indicators DLL global variable.
Date
: 2026-01-06
Size
: 52kb
User
:
郝晓
[
Windows Develop
]
reply_1_855734
DL : 0
// Canny算子 void Canny(LPBYTE pGray, SIZE sz, double sigma, double dRatLow, double dRatHigh, LPBYTE pResult) { //经过高斯滤波后的图像 LPBYTE pGaussSmooth pGaussSmooth = new unsigned char[sz.cx*sz.cy] //x方向导数的指针 int *pGradX pGradX = new int[sz.cx*sz.cy] //y方向 int *pGradY pGradY = new int[sz.cx*sz.cy] //梯度的幅度 int *pGradMag pGradMag = new int[sz.cx*sz.cy] //对原图高斯滤波 GaussianSmooth(sz,pGray,pGaussSmooth,sigma) //计算方向导数和梯度的幅度 Grad(sz,pGaussSmooth,pGradX,pGradY,pGradMag) //应用非最大抑制 NonmaxSuppress(pGradMag,pGradX,pGradY,sz,pResult) //应用Hysteresis,找到所有边界 Hysteresis(pGradMag,sz,dRatLow,dRatHigh,pResult) delete[] pGradX pGradX = NULL delete[] pGradY pGradY = NULL -//Canny operator void Canny (LPBYTE pGray. SIZE sz, double sigma, double dRatLow. double dRatHigh. LPBYTE pResult) (//after Gaussian filtering of images LPBYTE pGaussS mooth unsigned pGaussSmooth = new char [sz.cx* sz.cy]// x direction derivative indicators pGradX pGradX int* = new int [ sz.cx* sz.cy]// int* y direction pGradY pGradY = new int [sz.cx* sz.cy]// gradient magnitude int* pGradMag pGradMag = new int [sz.cx* sz.cy]// maximum Gaussian filter to GaussianSmo oth (sz, pGray, pGaussSmooth. sigma)// calculate derivative and the gradient range Grad (sz. pGaussSmooth, pGradX, pGradY. pGradMag)// non-application of the biggest inhibition NonmaxSuppress (pGradMa g, pGradX, pGradY, sz, pResult)// Application Hysteresis, find all border Hysteresis (pGradMag, sz, dRa
Date
: 2026-01-06
Size
: 53kb
User
:
王学金
[
Windows Develop
]
dwqdsort111
DL : 0
1)实现以下常用的内部排序算法并对它们的时间效率进行比较: 必做(6种):起泡排序、直接插入排序、简单选择排序、快速排序、希尔排序、堆排序; 选做:折半插入、二路归并、基数排序等等; 2)函数首部要求:void XXXXSort(char **list, int len, int n, int *c, int *s) 其中: a) XXXXSort为排序函数名,具体如下: 起泡排序BubbleSort 直接插入排序InsertSort 简单选择排序SelectSort 快速排序QuickSort 希尔排序ShellSort 堆排序HeapSort 折半插入BInsertSort 二路归并Merge2Sort 基数排序RadixSort b) list为二维字符数组的头指针,该二维数组的规格为:char list[n][len] 每行用于存放一个字符串(最大长度为len-1),共n行; c) c用于返回关键字比较次数; d) s用于返回移动次数; 3)要求把各种排序函数做成函数库(文件名统一为:sort.c),用统一提供的主程序进行调用和测评。 -a) achieve the following commonly used internal sorting algorithm as well as their time efficiency comparison : regimen (6) : bubble sort, direct insertion sequence and simple choice sorting, quick sort, Hill, ranked Heap Sort; elected to do : half of insertion, two-way merge. Sort base, and so on; 2) function first requirement : void XXXXSort (char** list, int len, int n, int* c, int* s) which : a) XXXXSort sort of a function name, as follows : bubble sort BubbleSort direct insertion sort InsertSort simple choice ranking Sele ctSort Quick Sort QuickSort Hill Sorting ShellSort Heap Sort HeapS ort half insert BInsertSort two-way merge Merge2Sort radix sort Radi xSort b) list for the two-dimensional array of characters in the first indicator, the two-dimensional array specifications : cha
Date
: 2026-01-06
Size
: 10kb
User
:
战天
[
Windows Develop
]
sort
DL : 0
给定N个int类型(自定N的上限M,例如M=100000,N的取值不能少于10000)的整数,分别使用插入排序、快速排序、归并排序和堆排序方法进行升幂排序。-Int a given N-type (the upper limit of N self-M, for example, M = 100000, N value should not less than 10000) integer, respectively, using the insertion sort, quick sort, merge sort and heap sort methods or power sequencing.
Date
: 2026-01-06
Size
: 311kb
User
:
nemo
[
Windows Develop
]
maopo
DL : 0
maopao int vc++ study progamme
Date
: 2026-01-06
Size
: 431kb
User
:
zhanghaiyong
[
Windows Develop
]
0600
DL : 0
线程的同步和异步一个简单的例子 WORD wVersionRequested WSADATA wsadata int err wVersionRequested=MAKEWORD(1,1) err=WSAStartup(wVersionRequested,&wsadata) -Synchronous and asynchronous threaded a simple example WORD wVersionRequested WSADATA wsadata int err wVersionRequested = MAKEWORD (1,1) err = WSAStartup (wVersionRequested,
Date
: 2026-01-06
Size
: 3.51mb
User
:
lumingyu
[
Windows Develop
]
float_char_int_string
DL : 0
各种基本数据类型转换源程序。 本程序涉及到的数据类型有:float, int , char, string.-A variety of basic data type conversion source. This procedure involves the data types are: float, int, char, string.
Date
: 2026-01-06
Size
: 105kb
User
:
Steno
[
Windows Develop
]
chaofan
DL : 0
#include<iostream> using namespace std int s[100005] int main() { int i,j,k,sum,n while(scanf(" d",&n)!=EOF) { for(i=0 i<n i++) scanf(" d",&s[i]) sort(s,s+n) for(i=sum=0 i<n i++) { sum += s[i] * (n - i) } printf(" d\n",sum) } return 0 } -# include <iostream> using namespace std int s [100005] int main () (int i, j, k, sum, n while (scanf ( " d" , & n)! = EOF) (for (i = 0 i <n i++) scanf(" d",&s[i]) sort(s,s+n) for(i=sum=0 i<n i++) { sum+= s[i]* (n- i) } printf(" d\n",sum) } return 0 }
Date
: 2026-01-06
Size
: 273kb
User
:
七七十四
[
Windows Develop
]
process
DL : 0
为了更充分的利用CPU,必须管理好进程内及进程间的调度关系,此实验就是模拟进程之间的调度方法。在实验中,只模拟了3个状态之间的调度过程,为了便于观察调度过程,我采用手动操作方式(即根据操作者输入的命令来做相应的转换)。在程序中,为进程建议一个结构体,以这种类型建立一个数组,用了存储所有进程信息;同时建议了两个先进先出的对列(ready,blocked)用来存储当前就绪的进程和等待资源的进程(在程序中这两个队列只是存储了进程在存储进程的数组的下标,用下标来作为唯一标识且访问,但是不是pid)。对列是自己写的结构,用一个数组来实现队列,其实是实现了循环队列。在用一个变量running(int)来表示当前运行的进程(当然,这里也是进程数组的下标)。当进程调度时,其进程状态也相应改变,只是对两个队列和running的操作,同时改变该进程的状态(state)。 关键字:操作系统 进程调度 -In order to more fully use the CPU, must manage the process and the process of scheduling inter-relations, this experiment is to simulate the process of scheduling between the methods. In the experiment, only three state simulation of the activation process between, in order to facilitate observation of the activation process, I used manual mode of operation (that is, operator input in accordance with an order to do the conversion). In the procedure for the process to recommend a structure to set up an array of this type, with all the process of information storage also proposed for two out of the FIFO (ready, blocked) used to store the current process in place and the process of waiting for resources (in the process the two queues is stored in the storage process, the process of array subscript, used as a subscript uniquely identify and access, but not a pid). To write out the structure of their own, using an array to achieve the queue is a queue cycle. Using a variable in the runnin
Date
: 2026-01-06
Size
: 1.08mb
User
:
white Snow
[
Windows Develop
]
samlple
DL : 0
简单路径,#include "stdafx.h" #include <iostream> #include <fstream> #include <queue> #include <stack> using namespace std struct ArcNode { int adjvex ArcNode *nextarc } typedef char VertexType struct VNode { int data ArcNode *firstarc -sample.rar
Date
: 2026-01-06
Size
: 12kb
User
:
张宏
[
Windows Develop
]
computer4
DL : 0
简介的计算器,含小数点,int类型。 可实现加减乘除的运算-computer
Date
: 2026-01-06
Size
: 3.32mb
User
:
小三
[
Windows Develop
]
VCTest
DL : 0
这是一个IP地址的分解代码可以将网址分解四个Int数据例如:(192.168.1.2)分解为192 168 1 2-This is an IP address of the decomposition of the code can be broken down 4 Int data such as URL: (192.168.1.2) divided into 19,216,812
Date
: 2026-01-06
Size
: 7kb
User
:
unkx
[
Windows Develop
]
clock2
DL : 0
一个简单的VC制作的指针式时钟,本程序主要是编辑void CWulihuaView::OnDraw(CDC* pDC)(此函数用于绘制时钟的边框和指针以及十二个时间点)和另外两个函数:int CWulihuaView::OnCreate (LPCREATESTRUCT lpCreateStruct)和 void CWulihuaView::OnTimer (UINT nIDEvent),后两个函数主要是用于窗口和时间刷新,代码编辑之后运行结果是一个时钟。-VC make a clock ,example
Date
: 2026-01-06
Size
: 1.86mb
User
:
mcroal
[
Windows Develop
]
sjjg
DL : 0
Index /*定义学号主关键字索引文件结构*/ typedef struct{ char num[8] /*学号*/ char name[9] /*姓名*/ char gender[3] /*性别*/ int score /*成绩*/ }DataType /*定义主文件结构*/-Index /* definition of Student ID primary key index file structure*/typedef struct (char num [8] /* Student ID*/char name [9] /* Name*/char gender [3] /* Sex*/int score /* success* /) DataType /* define the main file structure* /
Date
: 2026-01-06
Size
: 384kb
User
:
acting
[
Windows Develop
]
largeinteger
DL : 0
由于int有符号型可表示的最大数为2^31-1,为2147483647。位数为10位。13!=6227020800,就已经超过了int型表示范围。本程序用数组的思想实现了大整数的阶乘。-To achieve a large integer factorial
Date
: 2026-01-06
Size
: 206kb
User
:
serenha
[
Windows Develop
]
NumberTransfer
DL : 0
Use this Program to Transfer number from string to int
Date
: 2026-01-06
Size
: 481kb
User
:
Figer
[
Windows Develop
]
VC
DL : 0
最好使用简单设置(4个主要参数)SetDCB(int nBaudRate,int nDataBit,int nCheckBit,int nStopBit ) -int nBaudRate,int nDataBit,int nCheckBit,int nStopBit )
Date
: 2026-01-06
Size
: 14.42mb
User
:
好米
[
Windows Develop
]
WinMain
DL : 0
WinMain-函数功能 函数功能:该函数被系统调用,作为一个32位应用程序的入口点。 函数原型:int WINAPI WinMain(HINSTANCEE hlnstance,HINSTANCE hPrelnstance,LPSTR lpCmdLine,int nCmdShow);-WinMain-function function function function: This function is system calls, as a 32-bit application entry point. Prototype: int WINAPI WinMain (HINSTANCEE hlnstance, HINSTANCE hPrelnstance, LPSTR lpCmdLine, int nCmdShow)
Date
: 2026-01-06
Size
: 105kb
User
:
门票
«
1
2
3
4
5
6
7
8
9
10
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.