1 安装:首先安装MPLAB IDE V7.42的程序,然后再安装C的组件PICC8.05-PL.安装过程中全部确认选择,完毕后重启计算机。 2 激活:(PICC8.05-PL) 运行“开始”菜单下的“HI-TECH SOFTWARE”中的 激活(Complier Activation)程序, 再同时启动算号器程序(HtkeyGen.exe),将Last Name前的勾去掉,填入公司名称,算出相应内 容填入激活程序相应栏目,OK即可完成激活。 3 设置: 3.1 将MPLAB 7.42启动后,在文件栏中打开C的桌面项目文件,在Project栏目中 检查 select language Toolsuite...中的选项,所有路径须指向安装路径如C:\HT-PIC\BIN\PICC.EXE; 3.2 在Project栏目中检查 setlanguage Tool Locations中的HI-TECH ToolsuiteXDGR 相关选项,executables中各程序应指向picc.exe Default Search Paths & Directories中 的相关路径应为安装目录如C:\HT-PIC\include 和C:\HT-PIC\lib; 3.3 设置programmer中的select programmer选项为"MPLAB IED 2"(经验:如果不打开编译器,此选项无法选中)。 3.4 设置单片机型号,在Congfigure中的Select Device选择准确的芯片型号;
上传时间: 2016-01-01
上传用户:Ants
学会对文件的记录锁定,及解锁。#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
标签: 记录
上传时间: 2016-01-04
上传用户:亚亚娟娟123
Matrix TCL Lite 1.12 This matrix C++ template class library is for performing common matrix operations in your C++ program like any other built-in data types. To install the package, just copy MATRIX.H file into the INCLUDE directory of your compiler and include this header file in your program source file.
标签: matrix performing template library
上传时间: 2016-01-05
上传用户:h886166
/// /// /// /// /// /// / ///文 件:.cs ///概 要:针对国内短信解码(USC2) ///组成结构:包含四个函数: /// 1、GetEverySMS(string SMS) /// 2、GetTelphone(string SMS) /// 3、GetDataTime(string SMS) /// 4、GetContent(string SMS)
上传时间: 2016-01-07
上传用户:Amygdala
Delphi的IP输入控件,可以直接使用IPString取出输入的IP地址,返回String
上传时间: 2013-12-24
上传用户:15071087253
This directory contains the memtest 8051 firmware for the Anchor Chips EZ-USB chip. The purpose of this software is to test the different memory segments in the Ez-Usb chip. This example will output the string "good" on the 7 segment LED if the mem test passes, or it will output the first address where the memtest fails.
标签: directory the contains firmware
上传时间: 2013-12-16
上传用户:gdgzhym
Linux 2.4.18 s3c2440 led driver 使用dev-C++撰寫,需要linux 2.4.18 kernel include,編譯完成後產生led module。 insmod main.o //安裝模組 mknod /dev/leds c 221 0 使用方法: int main(int argc, char *argv[]) { int testdev //led test... testdev = open("/dev/QuickMarkLed",O_RDWR) ioctl(testdev, 2, 1) //ioctl(device, led number, open/close) open=1 ioctl(testdev, argv[1][0]- 0 , argv[2][0]- 0 ) //ioctl(device, led number, open/close) open=1 close(testdev) return 0 }
标签: s3c2440 driver Linux dev-C
上传时间: 2014-01-01
上传用户:qlpqlq
C++是在C语言的基础上开发的一种集面向对象编程、通用编程和传统的过程性编程于一体的编程语言,是C语言的超集。本书是根据1998年的ISO/ANSI C++标准编写的,通过大量短小精悍的程序详细而全面地阐述了C++的基本概念和技术。 全书分17章和10个附录。分别介绍了C++程序的运行方式、基本数据类型、复合数据类型、循环和关系表达式、分支语句和逻辑操作符、函数重载和函数模板、内存模型和名称空间、类的设计和使用、多态、虚函数、动态内存分配、继承、代码重用、友元、异常处理技术、string类和标准模板库、输入/输出等内容。 本书针对的是C++初学者,书中从C语言基础知识开始介绍,然后在此基础上详细阐述C++新增的特性,因此不要求读者有C语言方面的背景知识。本书可作为大中院校教授C++课程的教材,也可供初学者自学C++时使用。
上传时间: 2016-01-22
上传用户:zuozuo1215
baidu 本程序是用JNI技术实现的读取硬盘序列号 将ChenminDiskIDJoc.jar 加入环境变量 这两个文件放入window 文件夹 或者JDK的bin文件夹 或者你的应用文件夹 DiskID32.dll DiskID.dll public static String chenmin.io.DiskID.Factory() 返回硬盘厂家 public static String chenmin.io.DiskID.DiskID() 返回硬盘序列号 ChenminDiskIDTest.bat 将启动直接演示一个读取硬盘序列号的测试 测试读取硬盘序列号的源代码在ChenminDiskIDTest.jar中
标签: ChenminDiskIDJoc window baidu JNI
上传时间: 2016-01-22
上传用户:康郎
jSP编写的了BBS系统 架設方法 : 解壓縮dzbbs.zip後,打開dzbbs/set.jsp,修改以下 try{ cn=DriverManager.getConnection("jdbc:mysql://localhost/mysql?useUnicode=true&characterEncoding=big5","root","pass") // mysql為資料庫名稱,root 為用戶帳號 , pass為用戶密碼 }catch(Exception e){ } String bbs_name="DzBBS" //論壇名稱 String temple="default" //風格模版 String adminpass="pass" //管理員密碼 設定好後運行http://user.net/dzbbs,然後再注冊成為會員即可,密碼需要和上面所設定的一樣 免費論壇空間推荐 MyJavaServer+db4free 完美組合 MyJavaServer是國外免費5mb空間 如何申請請看 http://blog.csdn.net/leafxx/archive/2006/10/02/1317960.aspx db4free是國外免費Mysql空間
上传时间: 2013-12-10
上传用户:yimoney