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
Button control
ComboBox
EditBox
TreeView
Static control
PropertySheet
RichEdit
ListView/ListBox
Menu control
ToolBar
StatusBar
Dialog_Window
Other
Tab Control
Search - INT 1 - List
[
Other
]
VB应用技巧
DL : 0
VB应用技巧 1.int文件的读写 2.如何取得计算机名 3.计算Windows从启动后所运行的总时间-1.int VB application skills to read and write two papers. How to get the computer name three. Calculation Window s from the start after running total time
Date
: 2008-10-13
Size
: 1.92kb
User
:
黄桦
[
Other
]
jfc
DL : 0
线性方程一元求解double roundto(double x,int n) //将某数保留指定位数!-linear equations to solve one yuan roundto double (double x, int n) / / designated certain reservations median!
Date
: 2008-10-13
Size
: 7.02kb
User
:
dezhen
[
Other
]
HexStrToInt
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 long StrToData (CString strData. int jz) function : is the string to integer values [string for 2 -16] arbitrary numerical string to 229 : long integer numerical parameters : strData will be converted to a string parameters : jz for the string-band such as : CString s = s "FFA6" long StrToData data = (s, 16) : data values are : 65446 directions : StrToData.cpp StrToData.h and will be added to your copy of the works, in the need to call a function to add # include "StrToData.h" can be transferred with
Date
: 2008-10-13
Size
: 11.87kb
User
:
张海良
[
Other
]
duotai
DL : 0
设计有理数类rational_number 数据成员: int numerator(分子) int denominator(分母) 成员函数 (1)构造函数rational_number ()和rational_number (int x, int y) (2)拷贝构造函数 (3) 重载运算符“+”、“-”、“*”和“/” 2. 设计有理数类rational_number 数据成员: int numerator(分子) int denominator(分母) 成员函数 (1)构造函数rational_number ()和rational_number (int x, int y) (2)拷贝构造函数 友元重载运算符“+”、“-”、“*”和“/” 3. 分别使用以上两个类,完成有理数的加、减、乘、除运算;验证其加运算、乘运算的交换律。 -Rational Design category rational_number
Date
: 2008-10-13
Size
: 1.8kb
User
:
zn
[
Other
]
332658
DL : 0
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #include <math.h> #include <conio.h> struct DuLNode{ struct DuLNode *prior int data struct DuLNode *next-# include
Date
: 2008-10-13
Size
: 2.93kb
User
:
黄宇
[
Other
]
KeyPwm234
DL : 0
PWM控制电机,用PWM控制电机,熟悉定时器Timer A/B的编程方法。用Timer A作为脉宽调制信号产生的定时器.了一个函数F_Pwm(int a,int b) 用于PWM设置,传入两个参数第一个用于频率设置,第二个用于占空比设置。-PWM motor control using PWM motor control, timer Timer familiar with the A / B programming method. A Timer used as a PWM signal to the timer. A function F_Pwm (int a, int b) for PWM setup, the first two parameters into a set for the frequency, duty cycle for the second set.
Date
: 2008-10-13
Size
: 8.36kb
User
:
雷鸣
[
Other
]
TIME-INT
DL : 0
该程序利用了定时器1的周期中断功能,每1ms产生一次中断-procedures for the use of the timer interrupt the cycle of a function, each have an interruption 1ms
Date
: 2008-10-13
Size
: 1.39kb
User
:
林博
[
Other
]
tu
DL : 0
[输入] 图的顶点个数N,图中顶点之间的关系及起点A和终点B [输出] 若A到B无路径,则输出“There is no path” 否则输出A到B路径上个顶点 [存储结构] 图采用邻接矩阵的方式存储。 [算法的基本思想] 采用广度优先搜索的方法,从顶点A开始,依次访问与A邻接的顶点VA1,VA2,...,VAK, 访问遍之后,若没有访问B,则继续访问与VA1邻接的顶点VA11,VA12,...,VA1M,再访问与VA2邻接顶点...,如此下去,直至找到B,最先到达B点的路径,一定是边数最少的路径。实现时采用队列记录被访问过的顶点。每次访问与队头顶点相邻接的顶点,然后将队头顶点从队列中删去。若队空,则说明到不存在通路。在访问顶点过程中,每次把当前顶点的序号作为与其邻接的未访问的顶点的前驱顶点记录下来,以便输出时回溯。 #include<stdio.h> int number //队列类型 typedef struct{ int q[20] -[imported] map of the number of vertices N, Vertex map of the relationship between the starting point and end point A and B [output] if A to B without path then exporting "There is no path" Otherwise output A to B on the path vertices [storage structure] plan adopted adjacency matrix of storage. [Algorithm for the basic idea] BFS way from the vertex A, A visit followed with adjacent vertices VA1, VA2 ,..., VAK, visiting times, if not visit B, continue to visit with the VA1 adjacent vertices VA11, VA12 ,..., VA1M. VA2 and then visit the adjacent vertices ... and so on until finding B, the first to reach point B path, must be at least a few side paths. Queue used to achieve record was visited by the vertex. Each visit with the team atop the points are adjacent to the vertex, then t
Date
: 2008-10-13
Size
: 9.72kb
User
:
Demonic
[
Other
]
dfgdfgdfg
DL : 0
http://www.bc-cn.net/Article/kfyy/cyy/jc/200409/5_4.html float aver(float a[5]) { int i float av,s=a[0] for(i=1 i<5 i++) s=s+a[i] av=s/5 return av } void main() { float sco[5],av int i
Date
: 2008-10-13
Size
: 250.02kb
User
:
asdfasdf
[
Other
]
4
DL : 0
学会对文件的记录锁定,及解锁。#include <stdio.h> #include <unistd.h> #include <fcntl.h> int main() { int fd int i struct { char name[20] uint ID int age } myrec fd =open(\"name\", O_RDWR|O_CREAT, 0755) if (fd == -1) return -1 printf(\"Input your name:\") scanf(\"%s\", myrec.name) printf(\"Inpute your ID :\") scanf(\"%d\", &myrec.ID) printf(\"Input your age :\") scanf(\"%d\", &myrec.age) lseek(fd, 0,SEEK_END) lockf(fd, 1, 0) write(fd, (void *)&myrec, sizeof(myrec)) lockf(fd, 0 ,0) return 0 } 执行命令cc lock.c –o lock.out Chmod +x lock.out ./lock.out
Date
: 2008-10-13
Size
: 9.08kb
User
:
华羿
[
Other
]
Huffman
DL : 0
huffman 编码。typedef struct { int weight int flag int parent int lchild int rchild }hnodetype
Date
: 2008-10-13
Size
: 947byte
User
:
地瓜
[
Other
]
execRing0CodebyAnyUserMode
DL : 3
众所周知在非 Admin 用户模式下,是不允许加载驱动执行 RING 0 代码的。 本文提供了一种方法,通过修改系统 GDT,IDT 来添加自己的 CALLGATE 和 INTGATE 这样便在系统中设置了一个后门。我们就可以利用这个后门 在任意用户模式下执行 ring 0 代码了。为了保证我们添加的 CALLGATE 和 INT GATE 永久性。可以在第一次安装时利用 SERVICE API 或 INF 文件设置成随 系统启动。不过此方法也有个缺陷,就是在第一次安装 CALLGATE 或 INTGATE 时仍然需要 ADMIN 权限。下面分别给出了添加 CALLGATE 与 INTGATE 的具体 代码。
Date
: 2008-10-13
Size
: 4.22kb
User
:
Michael
[
Other
]
list
DL : 0
生成一个单向链表(*pListHead) 用C中的结构体或C++中的类实现 完成基本要求 基本算法要求: 实现对链表的逆序 void reverse(CList& ); 查找链表倒数第k个元素 FindFBack(CList&, int k); 高要求: 对链表排序 order(CList&); 判断单向链表是否有环
Date
: 2008-10-13
Size
: 6.17kb
User
:
qiuqiu
[
Other
]
ch10
DL : 0
数据结构(严慰敏)配套纯c代码实验十 typedef int InfoType // 定义其它数据项的类型 typedef int KeyType // 定义RedType类型的关键字为整型 struct RedType // 记录类型(同c10-1.h) { KeyType key // 关键字项 InfoType otherinfo // 其它数据项 } typedef char KeysType // 定义关键字类型为字符型 #include\"c1.h\" #include\"c10-3.h\" void InitList(SLList &L,RedType D[],int n) { // 初始化静态链表L(把数组D中的数据存于L中) char c[MAX_NUM_OF_KEY],c1[MAX_NUM_OF_KEY] int i,j,max=D[0].key //
Date
: 2008-10-13
Size
: 12.71kb
User
:
冰河
[
Other
]
ch2
DL : 0
#include\"c1.h\" typedef int ElemType #include\"c2-2.h\" #include\"bo2-4.cpp\" void MergeList_CL(LinkList &La,LinkList Lb) { LinkList p=Lb->next Lb->next=La->next La->next=p->next free(p) La=Lb }
Date
: 2008-10-13
Size
: 37.57kb
User
:
冰河
[
Other
]
ch3
DL : 0
// algo3-12.cpp 银行业务模拟。实现算法3.6、3.7的程序 #define Qu 4 // 客户队列数 #define Khjg 5 // 两相邻到达的客户的时间间隔最大值 #define Blsj 30 // 每个客户办理业务的时间最大值 #include\"c1.h\" typedef struct // 定义ElemType为结构体类型 { int OccurTime // 事件发生时刻 int NType // 事件类型,Qu表示到达事件,0至Qu-1表示Qu个窗口的离开事件 }Event,ElemType // 事件类型,有序链表LinkList的数据元素类型
Date
: 2008-10-13
Size
: 19.41kb
User
:
冰河
[
Other
]
ch4
DL : 0
Status StrAssign(SString T,char *chars) { // 生成一个其值等于chars的串T int i if(strlen(chars)>MAXSTRLEN) return ERROR else { T[0]=strlen(chars) for(i=1 i<=T[0] i++) T[i]=*(chars+i-1) return OK } }
Date
: 2008-10-13
Size
: 17.14kb
User
:
冰河
[
Other
]
ch5
DL : 0
Status CreateSMatrix(RLSMatrix &M) { // 创建稀疏矩阵M int i Triple T Status k printf(\"请输入矩阵的行数,列数,非零元素数:\") scanf(\"%d,%d,%d\",&M.mu,&M.nu,&M.tu) M.data[0].i=0 // 为以下比较做准备 for(i=1 i<=M.tu i++) { do {
Date
: 2008-10-13
Size
: 19.39kb
User
:
冰河
[
Other
]
score.cpp
DL : 0
题目: 已知全班有65人,期末考共8门课,每门功课成绩均用百分制(整数)计分,请输入全班同学成绩,在A盘上生成全班成绩文件:A:\\allscore.dat。输入形式为: 学号 成绩1 成绩2 ··· 成绩8 long int int int 从全班成绩文件中读出同学成绩资料,统计出至少有4门课成绩>=85分,其余>=70分的同学及其资料,在D盘上生成D:\\score.dat文件;从全班成绩文件中找出需要参加补考(有一门或一门以上课程成绩<60分)的同学及其资料在C盘上生成补考文件C:\\scoreb.dat。-topics : 65 known to the whole class, final exams a total of eight classes, homework for each performance will be used percentile system (rounded) points, the importation of whole class achievements, the A-class results generated on paper : A : \\ allscore.dat. Entry forms : school performance, a performance two accomplishments eight long int int int results from the whole document read out the students achievements, the statistics there are at least four Course gt; = 85 points, the remaining gt; = 70 students and, in the D - on Generation D : \\ score.dat documents; results from the whole document identifying the need to participate in make-up (with one or more courses a success lt; 60 minutes) of the students and information on the C-Generation Examination C : \\ scoreb.dat.
Date
: 2008-10-13
Size
: 1.22kb
User
:
阿兜
[
Other
]
Date
DL : 0
This file implements the Date class member functions Date representation: int variable -- year,mon and day
Date
: 2008-10-13
Size
: 8.59kb
User
:
dinnalin
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.