搜索资源列表
LinuxUART
- linux 下串口编程 #include <stdio.h> /*标准输入输出定义*/ #include <stdlib.h> /*标准函数库定义*/ #include <unistd.h> /*Unix标准函数定义*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定义*/ #inc
LBarc
- 1.用圆生成的B算法编程实现圆弧的绘制 2、圆弧的起始角、终止角及半径用交互方式输入 3、画弧程序的接口为 void Arc(float θ1, float θ2, float R) 4、程序检测的例子至少四组,须分别跨过四坐标轴
GatutTextCrawler
- 本程序执行后,创建一个能够加载文字的面板,文字的内容是本地主机的IP地址的动态显示。跑马灯文字的大小和跑马灯文字显示的速度都可以在GatutTextCrawler.html文件里通过参数进行设置。 编程思路:首先,本练习因为要制作侦测IP的跑马灯的实例,所以首先要生成程序界面:在函数public void init()中,首先通过语句s = getParameter(\"fontSize\")和fontSize = s != null ? Integer.valueOf(s).intValu
dongtaishuzu
- 动态申请一维数组 #include\"iostream.h\" void main() { int n,*array cin>>n array=new int[n] delete []array }
dongtai2wei
- #include\"iostream.h\" void main() { int n,**array cin>>n array=new int *[n] for(int i=0 i<n i++) { array[i]=new int[n] } array[n-1][n-1]=3 cout<<array[n-1][n-1]<<endl }
serial_program_for_51
- 很完整的51串口程序 包括如下: 串口中断服务程序,仅需做简单调用即可完成串口输入输出的处理 出入均设有缓冲区,大小可任意设置。 可供使用的函数名: char getbyte(void) 从接收缓冲区取一个byte,如不想等待则在调用前检测inbufsign是否为1。 getline(char idata *line, unsigned char n) 获取一行数据回车结束,必须定义最大输入字符数 putbyte(char c) 放入一个字节到发送缓冲区 putb
newasp200611413439593
- int PosFromChar(UINT nChar) // 通过指定的字符获得其x轴的位置 int CharFromPos(int nPosX) // 通过给定的x轴的位置获得相应的字符 void CutString() // 剪切字符串 void PasteString() // 粘贴字符串 void CopyString() // 拷贝字符串 void MakeBKGround(CDC *pDC, COLORREF c
fft
- fft源代码,#include \"f2407_c.h\" #include \"math.h\" #define N 32 // FFT变换的点数 extern void fft(void); extern void resave(void); interrupt void phantom(void); void sysinit(void); extern int input[2*N];
fushu
- 复数运算#include<iostream.h> class Complex { public: Complex( double r =0, double i =0 ) Complex(int a) { Real = a Image = 0 } void print() const friend Complex operator+ ( const Complex & c1, const Complex & c2 ) friend Com
wordanalysis
- 、该个词法分析器要求至少能够识别以下几类单词: a. 关键字:else if int return void while共6个,所有的关键字都是保留字,并且必须是小写; b. 标识符:识别与C语言词法规定相一致的标识符,通过下列正则表达式定义:ID = letter (letter | digit)*; c. 常数:NUM=(+ | - |ε)digit digit*(.digit digit* |ε)(e(+ | - |ε) digit digit* |ε),letter = a|
threadpoo.tar
- threadpoo #include \"thread-pool.h\" static void *tp_work_thread(void *pthread) static void *tp_manage_thread(void *pthread) static TPBOOL tp_init(tp_thread_pool *this) static void tp_close(tp_thread_pool *this) static void tp_p
neicun
- 我所采用的内存管理思想是链表管理思想,内存分配方案是最佳适应方案(best fit)。其主要的数据结构为 struct node { char* p int memosize int flag struct node* next } 这是一个链表的结点的数据结构,用它来管理内存的分配与回收。P 表示所指的分配的内存的首地址,memosize 表示分配的内存块的大小,flag 为一个标志量,表示内存块是否被占用。用 1 和 0 来表示被占用和不被占
student
- 1. 学生成绩删除功能:该功能通过调用int shanchu(struct Student *p,int x,int num,float a[])来实现。该功能采用的是询问管理人员的意见之后再功能实现,由学号来引出学生信息,当学号不存在时,系统将给出信息“该学生不存在!”。然后询问管理员是否继续删除。 2. 学生成绩添加功能:该功能通过调用void luru(struct Student *p)来实现。实现了手工输入功能,当然可以通过连接数据库来在数据库中进行修改。 3. 学生成绩更新功
vc21487899244
- 主要源码: void CFDlg::OnChangeEdit1() { UpdateData() m_strExt.MakeUpper() m_list.ResetContent() if(m_strExt.GetLength()==0) return CStdioFile sf if(sf.Open(\"FileExt.txt\",Cfile::modeRead)) { CString strTe
DDA
- 两种常用的DDA算法的主要程序, void Line::Draw_Bresenham(CDC *pDC)
delay
- C51精确延时分析探讨 从精度考虑,它得研究结果是: void delay2(unsigned char i) { while(--i) } 为最佳方法。
1-1
- c++二、通过将其元素插入到双向链表中的方法对数组A进行排序。算法对链表的当前操作位置进行维护,当需要插入表项时,若新元素比当前位置值要大,则往前移动;若小则往后移动。编写函数DoubleSort实现上述排序算法。 template <class T> void DoubliSort( T a[], int n)
1-2
- 二、通过将其元素插入到双向链表中的方法对数组A进行排序。算法对链表的当前操作位置进行维护,当需要插入表项时,若新元素比当前位置值要大,则往前移动;若小则往后移动。编写函数DoubleSort实现上述排序算法。 template <class T> void DoubliSort( T a[], int n)
void
- 用于分栏 是一个很基础的VC汇编语言!很实用
Asprise-OCR-CSharp-Windows_Server_32bit-4.0
- 识别图片上的文字,识别率有80% 附加c#调用 [DllImport(\"AspriseOCR.dll\")] static extern string craboOCR(string file, int type) private void GetVeryfyCode() { if(File.Exists(_imgPath))//ok now? { try { this.picbVeryfyCode.Image=Syste