CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - h.3
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - h.3 - List
[
File Operate
]
IniFile
DL : 0
操作INI文件,非常方便... 使用方法: 1.先把IniFile.h,IniFile.ccp加入Porject,在要使用该类的头文件中加入 #include \"IniFile.h\",及CIniFile IniFile 2.读取和写入: string = IniFile.GetString(\"section\",\"item\",\"默认\") int = IniFile.GetInt(\"section\",\"item\",666) IniFile.SetString(\"section\",\"item\",\"设置值\") IniFile.SetInt(\"section\",\"item\",666) 3.ini文件名及路径在初始化时,用SetFileName()设置
Date
: 2008-10-13
Size
: 2.92kb
User
:
电风扇
[
File Operate
]
newHD7279
DL : 0
#include <reg51.h> /*-------------------------------------------- 调用方式:自行I/O 口定义﹫2001/05/12 函数说明:私有函数,各接口定义 --------------------------------------------*/ sbit HD7279_CS=P1^4 // HD7279_CS--P1.4 sbit HD7279_CLK=P1^5 // HD7279_CLK-- P1.5 sbit HD7279_DATA=P1^6 // HD7279_DATA-- P1.2 sbit HD7279_KEY =P1^7 // HD7279_KEY-- P1.3 /*-------------------------------------------- 调用方式: HD7279A 各指令定义﹫2001/05/12 函数说明:私有函数,接口定义 --------------------------------------------* /#define HD7279_RESET 0xa4 //复位 #define HD7279_TEST 0xbf //测试 #define HD7279_RLC 0xa3 //循环左移 #define HD7279_RRC 0xa2 //循环右移 #define HD7279_RL 0xa1 //左移 #define HD7279_RR 0xa0 //右移 #define HD7279_DECODE0 0x80 //译码方式0 #define HD7279_DECODE1 0xc8 //译码方式1
Date
: 2008-10-13
Size
: 4.32kb
User
:
徐亮
[
File Operate
]
c-star
DL : 0
.h 头文件:常量声明,结构体,函数的声明 .c/.cpp 变量、函数的实现 流程: 1。读文件,方法可用读 section或者txt(检查到头[description],开始读) 2。while/for 开始解析数据(定义一个结构体,把每一行的每个数据分别存入结构体内。最好考虑下文件的占用问题,可以读1000个关文件,读后一1000个再打开文件) 注意:处理Item:判断lenth是否合法,char*是否为NULL 要写个HandleError函数,处理错误的结果,如addlog(日志) 3。转存 解析好的数据存为.csv格式的文件(实际跟txt相似,只是所有量用“,”隔开,是个表格文件,一行代表表格的一行)
Date
: 2008-10-13
Size
: 21.93kb
User
:
gaohao
[
File Operate
]
IniFile
DL : 0
操作INI文件,非常方便... 使用方法: 1.先把IniFile.h,IniFile.ccp加入Porject,在要使用该类的头文件中加入 #include "IniFile.h",及CIniFile IniFile 2.读取和写入: string = IniFile.GetString("section","item","默认") int = IniFile.GetInt("section","item",666) IniFile.SetString("section","item","设置值") IniFile.SetInt("section","item",666) 3.ini文件名及路径在初始化时,用SetFileName()设置-Operation of INI file, is very convenient to use ...: 1. First IniFile.h, IniFile.ccp adding Porject, to be used in the first such document by adding# Include
Date
: 2025-12-16
Size
: 3kb
User
:
电风扇
[
File Operate
]
c-star
DL : 0
.h 头文件:常量声明,结构体,函数的声明 .c/.cpp 变量、函数的实现 流程: 1。读文件,方法可用读 section或者txt(检查到头[description],开始读) 2。while/for 开始解析数据(定义一个结构体,把每一行的每个数据分别存入结构体内。最好考虑下文件的占用问题,可以读1000个关文件,读后一1000个再打开文件) 注意:处理Item:判断lenth是否合法,char*是否为NULL 要写个HandleError函数,处理错误的结果,如addlog(日志) 3。转存 解析好的数据存为.csv格式的文件(实际跟txt相似,只是所有量用“,”隔开,是个表格文件,一行代表表格的一行)
Date
: 2025-12-16
Size
: 274kb
User
:
gaohao
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.