首页 | 本学科首页   官方微博 | 高级检索  
相似文献
 共查询到20条相似文献,搜索用时 31 毫秒
1.
在C、C++语言编程环境中,系统没有提供二进制格式数据输入输出(I/O)的库函数。本文详细探讨了二进制格式数据在内外存的存放格式,并用C语言的指针技术实现了这种格式数据的I/O,文件的读、写及空间效率显著提高。同时开发了几组关于二进制文件进行读写的C语言函数,供C语言用户方便使用。  相似文献   

2.
并行文件系统的设计   总被引:2,自引:0,他引:2  
孙凝晖 《计算机学报》1994,17(12):938-945
在大规模并行处理巨型机(MPP)的设计中,提高I/O性能同提高计算能力和通信能力同样重要。并行文件系统(PFS)在多个I/O结点的多个磁盘上,分布文件系统和文件的磁盘块,将文件读写在计算结点转化成多个对物理块的直接I/O请求,利用预读,预分配,磁盘缓冲式区和异步I/O增加I/O的并发生,在特定的文件使用模式下,也是MPP应用的主要I/O模式,获得很高的I/O效率。  相似文献   

3.
在C、C++语言编程环境中,针对系统没有提供二进制格式数据输入输出(I/O)库函数的情况,用C语言的指针技术实现了这种格式数据的I/O,文件的读、写效率平均提高3倍,空间效率提高2.5倍,单精度读写效率提高近6倍。  相似文献   

4.
Borland公司的TurboC2.0之所以能风靡当今PC机世界,除了因为它有良好的界面,强大的符号调试功能以外,还因为它具有设计精良、运行高速、结构优化的运行库函数。用户可以在自己的C程序中,调用这些函数以执行各种任务,包括低级和高级I/O、串和文件操作、内存分配、过程控制、数据转换、数学计算、屏幕操作和图形功能等等。在实际工作中,我们发现TurboC20的两个接口库函数aberotd0(读绝对磁盘扇区)和abewrite01写绝对磁盘扇区)无法读写32Mb以上容量的硬盘(BOrlandC++2.0的absread0和abswrite0也不能)但现在大量的微机其…  相似文献   

5.
在计算机中,常用的输入设备有键盘、磁盘等,输出设备有显示器、打印机、磁盘等。DOS中规定了标准的输入输出(I/O)设备,默认情况下,将键盘作为标准输入,将显示屏作为标准输出。I/O的重走向是指把通常在标准输入输出设备上进行的I/O操作,重新走向到某一指定的文件或设备上进行。其中:输出转向符“>”将命令输出到一个文件或设备;输出转向符“>>”将命令的输出附加到某个文件末尾;输入转向符“<”将命令输入改为一个文件或非标准输入设备;管道操作符“|”将一个命令的输出作为第二个命令的输入。灵活巧妙地运用DOS提…  相似文献   

6.
本文通过对Windows的内存管理与文件I/O的分析,给出了一种用C++实现的适用于Windows的结构文件缓冲区类,该缓冲区运用了“平滑过渡”及自动回写技术,既可高效处理一次性装入的小型数据文件同时又兼顾了大型数据文件的缓冲效率。  相似文献   

7.
易际明 《软件》1996,(12):3-6
本文介绍了FoxPRO低级文件I/O函数的功能,以及巧妙使用这些函数编程建立DXF图形交换文件,在AutoCAD环境下通过DXFIN命令去调用,以把该文件的数据转换成AutoCAD几何图形的原理和方法,给出了一个应用实你,本文所介绍的方法在参数化绘图和CAD/CAM方面有十分重要的应用价值。  相似文献   

8.
CPU术语解释     
3DNow!:(3D no waiting)AMD公司开发的 SIMD指令集,可以增强浮点和多媒体运算的速度,它的指令数为21条。 ALU:(ArithmeticLongicUnit,算术逻辑单元)在处理器之中用于计算的那一部分,与其同级的有数据传输单元和分支单元。 CMOS:(ComplementryMetalOxideSemiconductor,互补金属氧化物半导体)它是一类特殊的芯片,最常见的用途是主板的BIOS(BasicInput/Output System,基本输入/输出系统)。 COB:…  相似文献   

9.
C~(++)中的操作符重载(续一)OperatoroverloadinginC~(++)JOOP¥//(上接94年第4期)现在我们有一个说明复数的类,我们可以说明一个复数类型的对象,并且通过调用成员函数执行对象的操作,认识到无论何时,成员函数被引用都是...  相似文献   

10.
在FOXptoZ.5数据库管理系统中,除提供数据的各种高级维护和处理的命令及函数外,还提供了一组低级文件I/0函数,它们支持C语言类型低层文件I/0操作。利用这些函数不仅可以处理其他类型的文件或直接操作通讯端口,还可实现一些特殊功能。本文以实例的形式介绍FOXpf025&jgJ$低级文件I/0函数的使用技巧。1板书仿真All.PRG为板书仿真程序。采用了FoxProZ.5数据库低级文件1只函数:FOPEN()、FGETh()、FEOH)及FCLffiE)EOI.R4,0是在R4>0环境下制成的讲稿文件。程序利用打开文件函数FOPEN()打开该文件,打开…  相似文献   

11.
C2C搅局     
  相似文献   

12.
13.
卢晓雷 《个人电脑》2004,10(8):30-31
激光打印和LED打印是当今数码打印领域的两大核心技术.二者的不同之处在于光扫描成像过程。目前.普通激光打印技术的光扫描成像过程是将全部数据信号串行传送给一个光发射装置,然后发射出的光线经旋转的多棱镜反射后再成像于感光鼓上。类似于激光打印技术,LED技术的光扫描成像方式则是采用了密集LED阵列为光发射器,数据电信号经LED转化为光信号.并照射到感  相似文献   

14.
N. H. Gehani 《Software》1992,22(10):827-848
C does not have exception handling facilities. Errors are handled by examining the value returned by each function and signals (conditions reported to the program) are handled by using library functions. These approaches lead to ad hoc error-handling techniques and can make programs hard to understand. Exceptional C, a superset of C, provides exception handling facilities. Exceptional C integrates the two techniques used by C programmers (i.e., status values and signals) to handle errors into one unified exception handling mechanism. In this paper, I review exception handling models, specify the criteria used for designing the exception handling facilities in Exceptional C, and then describe these facilities. I also illustrate the use of the exception handling facilities with examples.  相似文献   

15.
As software systems become increasingly massive, the advantages of automated transformation tools are clearly evident. These tools allow the machine to both reason about and manipulate high-level source code. They enable off-loading of mundane and laborious programming tasks from human developer to machine, thereby reducing cost and development timeframes.Although there has been much academic work in software transformation, there still exists many hurdles in realising this technology in a commercial domain. From our own experience, there are two significant problems that must be addressed before transformation technology can be usefully applied in a commercial setting. These are: 1.) avoiding disruption of style (i.e. layout and commenting) and the introduction of any undesired modifications which occur as a side effect of the transformation process. 2.) correct handling of C preprocessing and the presentation of a semantically correct view of the program during transformation. Many existing automated transformation tools inherently disrupt style through the use of pretty printing and the need to perform preprocessing before any transformation. Some also require source to be modified so that it conforms to a subset of the grammar. In this paper we describe our own C/C++ transformation system, Proteus, that is able to meet the stringent criteria laid out by Lucent's own software developers.  相似文献   

16.
预处理在C/C 中发挥着重要作用,然而这些预处理功能存在着一些缺陷,例如在头文件包含进来时,无法改变头文件中的内容;代码的重用性不高;大量重复代码等等。本文提出用一种高级配置语言XVCL(XML-basedVariantConfigura-tionLanguage)代替原来的预处理机制,来克服以上提出的问题。文件被组织为树形结构,并定义了利于提高重用性的变量作用域机制。文章通过一个实例来验证本文提出的方法的有效性。  相似文献   

17.
18.
As software systems become increasingly massive, the advantages of automated transformation tools are clearly evident. These tools allow the machine to both reason about and manipulate high-level source code. They enable off-loading of mundane and laborious programming tasks from human developer to machine, thereby reducing cost and development time frames.Although there has been much work in software transformation, there still exist many hurdles in realizing this technology in a commercial domain. From our own experience, there are two significant problems that must be addressed before transformation technology can be usefully applied in a commercial setting. These are: (1) Avoiding disruption of the style (i.e., layout and commenting) of source code and the introduction of any undesired modifications that can occur as a side effect of the transformation process. (2) Correct automated handling of C preprocessing and the presentation of a semantically correct view of the program during transformation. Many existing automated transformation tools require source to be manually modified so that preprocessing constructs can be parsed. The real semantic of the program remains obscured resulting in the need for complicated analysis during transformation. Many systems also resort to pretty printing to generate transformed programs, which inherently disrupts coding style. In this paper we describe our own C/C++ transformation system, Proteus, that addresses both these issues. It has been tested on millions of lines of commercial C/C++ code and has been shown to meet the stringent criteria laid out by Lucent’s own software developers.  相似文献   

19.
伴随着互联网的发展,电子商务逐渐进入我们的经济生活中。作为网络经济的产物,电子商务企业与传统企业在竞争优势上存在巨大差异。面对着日益激烈的竞争,电子商务企业如何保持核心竞争力优势对企业的生存尤为重要。本文聚焦于C2C领域,并以淘宝网为例,尝试从企业核心竞争力的角度诠释电子商务企业与传统企业竞争优势的差异和竞争力培养的着力点。  相似文献   

20.
通常的C/C 预处理器是一个宏处理器,在编译前自动地把源文件转换为编译器可识别的形式。传统的预处理方法基于文本行替换,没有考虑到具体的上下文环境。这种预处理机制在文件包含、宏作用域、头文件关系上存在着一些缺陷,会影响工程项目代码重用,降低程序的可维护性、可扩展性等。通过从分析c预处理器缺陷出发,并利用FOG[1]及其语言可以得到一种基于元变量和元函数的语法替换机制的解决方案。  相似文献   

设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号