搜索资源列表
myshell
- 应用UNIX的fork()等系统调用,编写一个c程序具有以下功能: a) 实现Shell的基本功能,包括有:打印提示符;接受和分析命令行(滤去无效的空格、tab符号以及换行符等);执行命令(要有出错处理;输入exit或者bye退出);返回父进程; b) 处理后台程序(不需要wait) c) 处理多行命令(分析命令行中的‘ ’并处理之) d)应用 dup(), pipe()系统调用具有输入输出重定向以及管道功能;-Application of UNIX s fork () system call,
GPIO_KeyInterrupt
- 按键进入GPIO中断服务函数,并采用延时函数来控制LED的亮灭。开发环境:TKStudio。使用中断函数需在vector_cfg.h中修改对应的中断,例如:#define PIOINT1_IRQ_Handle GPIOIsr0,还需要在vector_table.c中写外部函数定义,例如:extern void GPIOIsr0 (void) -Press the button to enter the GPIO interrupt service function, and use delay
Visual
- 本实例中将利用 SetTimer、OnTimer 和 KillTimer 这三个函数实现可调节计时器程序。 本实例编写的计时器有倒计时和正常计时两种计时方式,还可以水平滑块调节计时的快 慢。-UINT SetTimer( UINT nIDEvent, UINT nElapse, void (CALLBACK EXPORT* lpfnTimer)( HWND, UINT, UINT, DWORD) )
sha256
- SHA-256源代码,三个对外的函数:void SHA256Init (SHA256Context *sc) void SHA256Update (SHA256Context *sc, const void *data, uint32_t len) void SHA256Final (SHA256Context *sc, uint8_t hash[SHA256_HASH_SIZE]) 第一个函数初始化,第二个函数输入要hash的字符串,第三个函数输出结果-SHA-256 sou
wwsdk3.05
- 淘宝旺旺的最新SDK,新版2008版的旺旺更改了自制插件的策略,以前的sdk包无效了。使用这个新的就可以了,测试时替换旺旺2008中的文件即可。-Taobao Wangwang latest SDK, the new 2008 version of the self-made plug-ins Wangwang change strategy, the previous null and void the sdk package. The use of the new can, and test
cvThreshold_cvCanny
- open cv 邊緣化 用Canny作邊緣化處理 cvCanny, void cvCanny( const CvArr* image, CvArr* edges, double threshold1, double threshold2, int aperture_size=3 ) image 單通道輸入圖像. edges 單通道存儲邊緣的輸出圖像 threshold1 第一個閾值 threshold2 第二個閾值 ap
ZhengfengRao-rtp2mp4-7af710e
- 利用 MP4封装方式 封装音频文件,视频文件,合成avi格式的可播放文件-MP4 avi void and windows linux Audio video package into avi,Use MTwenty words it enoughP4 encapsulation method,And that s all.
ILI9320
- ILI9320驱动程序,显示简单图像和驱动时序,用LPC2103写的程序。that‘s ok-int main (void) { PINSEL0 = 0X00 PINSEL1 = PINSEL1 & (~(0x03 << 2)) /* 将P0.17设置为GPIO */ PINSEL1 = PINSEL1 & (~(0x03FF << 4)) /* 将P0.18-P0.22设置为GPIO */
Demo8
- 写一个应用程序,要求编写一个Panel的子类MyPanel,MyPanel中有一个文本框和一个按钮,要求MyPanel的实例作为其按钮的ActionEvent事件的监视器,当单击按钮时,程序获取文本框中的文本,并将该文本作为按钮的名称。然后再编写一个Frame的子类,即窗口。窗口的布局为BorderLayout布局。窗口中添加两个MyPanel面板,分别添加到窗口的东部区域和西部区域-MyPanel.Java package cn import java.awt.* import
Cshapprojcet
- 谈谈类和结构的区别? 最大区别一个是引用类型,一个是值类型 默认成员访问为public是另外一个区别 1. 在.net(C# or vb.net)中如何获得当前窗体或控件的句柄,特别是控件本身的句柄(请列举)。 this(C#) Me(vb.net). 2在.net(C# or vb.net)中如何用户自定义消息,并在窗体中处理这些消息。 在form中重载DefWndProc函数来处理消息: protected override void DefWndProc ( ref
C
- 数据类型:基本数据类型(包括常量和变量),构造数据类型(包括数组类型,结构类型,联合类型),指针类型,空类型(其类型说明符为void)四大类。 整形量包括:整形常量,整型变量。整形常量就是整常熟。使用的整常数有八进制,十进制,十六进制三种。 -Data types: basic data types (including constants and variables), structural data types (including array type, structure typ
DRMPlayer
- public void playerUpdate(final Player p, final String event, final Object eventData) { // queue a call to updateEvent in the user interface event queue Display display = Display.getDisplay(midlet) display.callSerially(new Runnable() {
JAVA1
- 为了实现定时事件,我们引入了一个接口implements TimerClient这个接口是别人做好了的,具体代码在包中,它的作用是只要我们设置一下定时产生事件的时间,它就定时调用方法public void timerEvent(int id)因此,我们就在这个方法中每调用一次,在不同的地方画一个圆就可以了。 -In order to achieve regular events, we have introduced an interface implements TimerClient o
PacketReceiveDemonew
- Methods void close() int read() reads and returns a chracter. int read(char[] characterArray) populates an array of characters with data. boolean ready() - returns “true” if there is data available. …… -Methodsvoid close ()
cifafenxi
- token,字符数组,长度为32,存放识别出来的单词符号。 tmp,字符数组,长度为256,可以缓存用户输入的字符串。 char *fgets(char *string, int n, *stdin):*string输入数据的首地址, n 一次读入数据块的长度, stream文件指针. Void getbc() //检查ch中的字符是否为空白字符,如是则调用getch(),直到ch中读入一个非空白字符为止. fgets() //从流中读取一字符串 Void getch()
tony
- #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("7
tony
- 溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70)
tony
- 溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70)
tony
- 成績顯示三個部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread printf("請輸入分數\n") scanf("%f",&gread) if(gread>=80&&gread<=100) printf("成績為A\n") else if(gread>=60&&gread<=79) {
tony
- 河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,int) int main(void) { int n int option printf("題目二:河內塔問題\n") printf("請輸入要搬移的圓盤數目\n") scanf("%d",&n) printf("最少搬移的次數為%d