07 2008 档案

摘要:函数名: atoi 功 能: 把字符串转换成长整型数 用 法: int atoi(const char *nptr); 程序例: #include #include int main(void) { int n; char *str = "12345.67"; n = atoi(str); printf("string = %s integer = %d/n",... 阅读全文
posted @ 2008-07-15 22:08 StudyNLP 阅读(1684) 评论(0) 推荐(0)
摘要:下面这些函数被应用于文件内存映射中: 1) CreateFileMapping 2) FlushViewOfFile 3) MapViewOfFile 4) MapViewOfFileEx 5) MapViewOfFileVlm 6) OpenFileMapping 7) UnmapViewOfFile 8) UnmapViewOfFileVlm 函数详细说明:『见本页末』... 阅读全文
posted @ 2008-07-15 22:00 StudyNLP 阅读(987) 评论(0) 推荐(0)
摘要:摘要: 本文给出了一种方便实用的解决大文件的读取、存储等处理的方法,并结合相关程序代码对具体的实现过程进行了介绍。 引言 文件操作是应用程序最为基本的功能之一,Win32 API和MFC均提供有支持文件处理的函数和类,常用的有Win32 API的CreateFile()、WriteFile()、Rea... 阅读全文
posted @ 2008-07-15 21:50 StudyNLP 阅读(326) 评论(0) 推荐(0)
摘要:/*------------------------------------------------------------------------------ 把ASCII字符串转换成UNICODE字符串 [input]: source=源ASCII字符串 [output]: obj=目标UNICODE字符串 */ void ConvertA... 阅读全文
posted @ 2008-07-15 21:49 StudyNLP 阅读(1358) 评论(0) 推荐(0)
摘要:大家都知道C语言中的随机函数random,可是random函数并不是ANSI C标准,所以说,random函数不能在gcc,vc等编译器下编 译通过。那么怎么实现VC语言中的随机函数呢? 其实,除了random函数,还有一个rand函数,这个函数也是一个随机函数,他可以产生从0到rand_max(32767)的随机数。 #i nclude #i nclude int main() { in... 阅读全文
posted @ 2008-07-10 21:04 StudyNLP 阅读(1224) 评论(0) 推荐(0)