Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - INT 1
Search - INT 1 - List
操作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 : 电风扇

打开一个TXT文件并显示在EDIT控件中 步骤: 1.新建一个基于对话框的工程,名称为ReadFile 2.在界面上添加一个按钮(IDC_BUTTON1)和一个文本编辑(IDC_EDIT1) IDC_EDIT1的属性:多行、可下拉滚动条. 3.编辑按钮触发事件(void CReadFileDlg::OnButton1()) void CReadFileDlg::OnButton1() { // TODO: Add your control notification handler code here CString sFileFilter=\"*.hex|*.hex\" CString sFileName CFileDialog fDlg(true,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,sFileFilter,NULL) fDlg.DoModal() sFileName=fDlg.GetFileName() if(sFileName!=\"\") { CFile file(sFileName,CFile::modeRead) int nFileLength=file.GetLength() char *buffer HGLOBAL hgl=::GlobalAlloc(GMEM_MOVEABLE,nFileLength+1) buffer=(char *)::GlobalLock(hgl) file.Read(buffer,nFileLength) SetDlgItemText(IDC_EDIT1,buffer) ::GlobalUnlock(hgl) ::GlobalFree(hgl) } UpdateData(false) }
Date : 2008-10-13 Size : 25.48kb User : 这程子

扇区读写的汇编代码,根据需要可以扩充 !谢谢!还有编译工具.-sector read and write assembly code, can be expanded as required. Thank you! There compiler tools.
Date : 2026-01-07 Size : 75kb User : ECHO

操作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 : 2026-01-07 Size : 3kb User : 电风扇

打开一个TXT文件并显示在EDIT控件中 步骤: 1.新建一个基于对话框的工程,名称为ReadFile 2.在界面上添加一个按钮(IDC_BUTTON1)和一个文本编辑(IDC_EDIT1) IDC_EDIT1的属性:多行、可下拉滚动条. 3.编辑按钮触发事件(void CReadFileDlg::OnButton1()) void CReadFileDlg::OnButton1() { // TODO: Add your control notification handler code here CString sFileFilter="*.hex|*.hex" CString sFileName CFileDialog fDlg(true,NULL,NULL,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,sFileFilter,NULL) fDlg.DoModal() sFileName=fDlg.GetFileName() if(sFileName!="") { CFile file(sFileName,CFile::modeRead) int nFileLength=file.GetLength() char *buffer HGLOBAL hgl=::GlobalAlloc(GMEM_MOVEABLE,nFileLength+1) buffer=(char *)::GlobalLock(hgl) file.Read(buffer,nFileLength) SetDlgItemText(IDC_EDIT1,buffer) ::GlobalUnlock(hgl) ::GlobalFree(hgl) } UpdateData(false) } -Open a TXT file and displayed in the EDIT control steps: 1. Create a new dialog-based project, known as the ReadFile2. In the interface to add a button (IDC_BUTTON1) and a text editor (IDC_EDIT1) IDC_EDIT1 properties: multi-line, can be drop-down scroll bar .3. Edit button trigger events (void CReadFileDlg:: OnButton1 ()) void CReadFileDlg:: OnButton1 () (//TODO: Add your control notification handler code here CString sFileFilter =*. hex |*. hex CString sFileName CFileDialog fDlg (true, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, sFileFilter, NULL) fDlg.DoModal () sFileName = fDlg.GetFileName () if (sFileName! =) (CFile file (sFileName, CFile:: modeRead) int nFileLength = file.GetLength () char* buffer HGLOBAL hgl =:: GlobalAlloc (GMEM_MOVEABLE, nFileLength+ 1) buffer = (char*):: GlobalLock (hgl) file.Read (buffer, nFileLength) SetDlgItemText (IDC_EDIT1, buffer):: GlobalUnlock (hgl):: GlobalFree (hgl)) UpdateData (false))
Date : 2026-01-07 Size : 1.8mb User : 这程子

可以将int类型的转换为ascii码,输入为一个为binary为内容的文件,输出为一个ascii内容的文件。-Int type can be converted to ascii code for a binary input for the content of the document, the contents of the output to a ascii file.
Date : 2026-01-07 Size : 2kb User : 王欣

int iCopyFile(char*sourcefile,char*destinationfile) Purpose: Copy SourceFile to DestinationFile - line by line.-int iCopyFile(char*sourcefile,char*destinationfile) Purpose: Copy SourceFile to DestinationFile- line by line.
Date : 2026-01-07 Size : 1kb User : 3x0sk3l3t0n

有名的词典查询 自动生成10000个单词然后找他的类似词。。。 -//Dictionary #include <iostream> #include <fstream> #include <string> #include <time.h> #define maxsize 10000000 #define exp_n 10000 using namespace std string word[maxsize] //words of dictionary int word_n //number of words int fn //number of words found int fl[26] int compare_n void Input_data() { int i word_n=0 ifstream infile("dict.txt") while(!infile.eof()){ infile>>word[word_n] //ucase letter convert to lcase letter for(i=0 i<word[word_n].length() i++) if(char(word[word_n][i]) < a ) word[word_n][i]+= a - A word_n++ } infile.close() } int char_int_converter(char c) { if(c<= z && c>= a ) return c- a if(c<= Z && c>= A ) return c- A cout<<"Error!"<<endl exit(0) } int Inword(string ss,int srt,int nd,int &pos)//confirm the word in dictionary or not { //find area:srt is start position nd is end position int k int startw=srt,endw=nd
Date : 2026-01-07 Size : 1.08mb User : 秘密

CString,float,int,long,String,char *,char[],之间的转换-CString, float, int, long, String, char, char*, char [], the conversion between
Date : 2026-01-07 Size : 3kb User : 陈伟源

VC++中常用的数据类型之间的转换,包括CString,string,int ,double,char等变量之间的转换-The transformation between the common types variables in VC++
Date : 2026-01-07 Size : 4kb User : zxl_hust

vs2005下的数据转换int和CSTring互转 -vs2005 to data conversion int and CSTring Huzhuan
Date : 2026-01-07 Size : 10kb User : 解决

在matlab环境下读取两个txt文档中的内容,并实现两个内容的相似性比较-compare with two groups of int number
Date : 2026-01-07 Size : 1kb User : 谭松

读取 ini 文件,支持 int,long, char, string-Read ini file, supporting int, long, char, string...
Date : 2026-01-07 Size : 2kb User : FangQY

自动读取配置文件中的参数,能读取的类型有int, float, char, double-read the parameters from the configuration file, the type is int, float, char, double
Date : 2026-01-07 Size : 7kb User : stephenpeng

简单封装了ini配置文件读取写入操作类。可以方便对多个ini文件管理,读取或者写入项,直接读取int型,float型数值。不是完整工程,只是把.cpp和.h文件添加到所需工程就可以了。-Simple package ini configuration file to read the write operation class. You can easily manage multiple ini files, read or write items, directly read int type, float type value. Not a complete project, just add the .cpp and .h files to the desired project.
Date : 2026-01-07 Size : 1kb User : 骆叶

read file transfer string to int
Date : 2026-01-07 Size : 4kb User : zzj
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.