CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - printf.c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Games
SDK
Other
Search - printf.c - List
[
Other resource
]
c环境下的编译器
DL : 0
在c环境下的编译器 一.实验完成主要功能描述: 1.if语句 2.if_else语句 3.while语句 4.数组 5.函数调用 6.对外部函数printf的调用(用于打印) 二.测试环境 1.fedora core 4(OS) 2.lex version 2.5.4 3.yacc 4.gcc (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8) -in the context of a compiler. Experiments main function Description : 1.if statement 2.if_else statement 3.while statements 4. 5 array. Function call 6. The external function calls printf (print) 2. A test environment . fedora core 4 (OS) 2.lex 3.yacc 4.gcc version 2.5.4 (GCC) 4.0.0 20050519 (Red Hat 4.0.0-8)
Date
: 2008-10-13
Size
: 5.81kb
User
:
韩天毅
[
Other resource
]
keil_iodemo
DL : 0
The project KEIL_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the Keil ARM toolchain. The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module. The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems. -The project shows how to use me mory allocation routines (malloc) and char I / O (printf, Scanf) via a serial interface with the Keil ARM t oolchain. The I / O functions are adapted for the Analog Devices ADuC7000 series using the SERIA Synchronization module. The example also shows the efficien cy of the CA Keil ARM Compiler run-time library w hich is tuned for single chip systems.
Date
: 2008-10-13
Size
: 19.42kb
User
:
郭文彬
[
Other resource
]
gnu_iodemo
DL : 0
UART I/O and Memory Allocation Example for GNU The project GNU_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the GNU toolchain. The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module. The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems.-UART I / O and Memory Allocation for Example The GNU project GNU_IODemo shows how to use memo ry allocation routines (malloc) and char I / O (p rintf. Scanf) via a serial interface with the GNU toolc DERA. The I / O functions are adapted for the Anal og Devices ADuC7000 series using the SERIAL.C m odule. The example also shows the efficiency of the Keil CA ARM Compiler run-time library which is tuned for single chip systems.
Date
: 2008-10-13
Size
: 41.96kb
User
:
郭文彬
[
Other resource
]
MCS5_uCOC_II
DL : 0
移植到MCS51的uCOS_II。 1。在文件OS_CORE.C中OSMapTbl和OSUnMapTbl数组用于查表,所以应该放在code里。 增加code关键字。UCOS_II.H和OS_CORE.C。 2。OS_CFG.H堆栈大小MaxStkSize改为900。 3。OS_CPU_C.C的InitTimer0函数增加了关于开T0中断的解释。 允许T0中断,此时EA=0(51上电缺省值),中断还不会发生,满足在OSStart()前不产生中断的要求。 4。修改中断处理流程,以便严密监视中断嵌套情况。每个中断进入后立即进行OSIntNesting+1原语操作。 5。增加printf函数的移植,支持灵活的数据显示。支持标准或长二进制/八进制/十进制/十六进制/无符号整数, 支持字符、字符串、浮点数、百分号%。其中,浮点数在整个范围内被完全支持,统一采用科学记数法显示。 -transplanted to the MCS51 uCOS_II. 1. In the document which OSMapTbl OS_CORE.C and OSUnMapTbl array for Lookup, Therefore, it should be placed on code Lane. Increased code keyword. UCOS_II.H and OS_CORE.C. 2. OS_CFG.H MaxStkSize stack size to 900. 3. OS_CPU_C.C InitTimer0 function of the increase on the open T0 interrupted explained. Allow T0 interruption, this time EA = 0 (51 electricity default value), also will not be interrupted. meet the OSStart () do not have interrupted the former requirements. 4. Changes interrupt handling procedures, in order to closely monitor the situation interrupt nesting. Each interruption immediately after entering OSIntNesting a primitive operation. 5. Printf function to increase the transplant, support flexible data show. Support for standard or long binar
Date
: 2008-10-13
Size
: 154.13kb
User
:
zhangk
[
Other resource
]
viPrnt
DL : 0
此为VISA数据读取转换程序,主要实现如C++中的printf相似的功能,要求是带不定参数使用-this as VISA read data conversion, as the main achievement of C similar to the printf function, demand is uncertain parameters belt use
Date
: 2008-10-13
Size
: 8.35kb
User
:
杨美荟
[
Other resource
]
ClassicVcPrograms
DL : 0
经典C语言程序设计100例1-10 如【程序1】 题目:有1、2、3、4个数字,能组成多少个互不相同且无重复数字的三位数?都是多少? 1.程序分析:可填在百位、十位、个位的数字都是1、2、3、4。组成所有的排列后再去 掉不满足条件的排列。 2.程序源代码: main() { int i,j,k printf(\"\\n\") for(i=1 i<5 i++) /*以下为三重循环*/ for(j=1 j<5 j++) for (k=1 k<5 k++) { if (i!=k&&i!=j&&j!=k) /*确保i、j、k三位互不相同*/ printf(\"%d,%d,%d\\n\",i,j,k) } } -classic C Programming Language Design 100 cases [1-10 as a procedure -- topic : 1,2,3, 4 figures, the number can be formed without contending with repeat the three-digit figures? Are? 1. Program Analysis : can be filled in 100, 10, - digit figures are 1,2,3,4. With all the components removed after not satisfied with the conditions. 2. Source code : main () (int i, j, k printf ( "\\ n") for (i = 1 i
Date
: 2008-10-13
Size
: 127.14kb
User
:
lidan
[
Other resource
]
self_printf
DL : 0
自己写的C语言代码用来实现printf,经典的就是经典,可以随便拿来用
Date
: 2008-10-13
Size
: 1.22kb
User
:
方
[
Other resource
]
houzhuishi2
DL : 0
\"栈顶运算符为: %c\\n\",getTop(optr)) printf(\"此时运算符为:%c\\n\",e) printf(\"栈顶运算符优先级低,%c进栈\\n\",e) push(optr,e) //e进运算符栈
Date
: 2008-10-13
Size
: 1.61kb
User
:
李默
[
Other resource
]
LCD
DL : 0
液晶显示屏显示程序示例及汉字字模提取程序。示例程序中包含一个类似于printf的子程序可方便地显示字符串。字模提取程序会自动从单片机C程序中提取所包含的汉字的字模,生成示例子程序所需要的小字库。
Date
: 2008-10-13
Size
: 373.99kb
User
:
liwen
[
Other resource
]
c
DL : 0
c++冒泡排序#include \"stdio.h\" void sort() { int i,count=0,a[20] int k=20 printf(\"please input 20 defferent numbers?\\n\") for(i=0 i<20 i++) scanf(\" %d\\a\",&a[i]) while(count<20) { for(i=0 i<k i++) { if(a[i] > a[i+1]) { int temp temp=a[i] a[i]=a[i+1] a[i+1]=temp } } count=count+1 } for(i=0 i<k i++) printf(\"%d\",a[i]) } void main() { sort() }
Date
: 2008-10-13
Size
: 623byte
User
:
李仅
[
Other resource
]
sprintf
DL : 0
详细介绍了C语言库函数sprintf的用法,以及他和printf的区别。sprintf提供了强大的格式功能,将结果输出到一个字符串中,对C语言开发人员很有用。
Date
: 2008-10-13
Size
: 9.37kb
User
:
唐莎
[
Other resource
]
Printf_Scanf
DL : 0
实现了标准C语言库函数printf scanf功能,只需要提供字符串输出函数和字符串输入函数即可使用。
Date
: 2008-10-13
Size
: 1.22kb
User
:
zzm
[
Other resource
]
C++完美演绎2
DL : 0
C++完美演绎 经典算法 如 /* 头文件:my_Include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.1415926 /* 宏常量,在稍后章节再详解 */ #define circle(radius) (PI*radius*radius) /* 宏函数,圆的面积 */ /* 将比较数值大小的函数写在自编include文件内 */ int show_big_or_small (int a,int b,int c) { int tmp if (a>b) { tmp = a a = b b = tmp } if (b>c) { tmp = b b = c c = tmp } if (a>b) { tmp = a a = b b = tmp } printf(\"由小至大排序之后的结果:%d %d %d\\n\", a, b, c) } 程序执行结果: 由小至大排序之后的结果:1 2 3 可将内建函数的include文件展开在自编的include文件中 圆圈的面积是=201.0619264-C perfect interpretation of classic algorithms / * header files : my_Include.h * / # include lt; Stdio.hgt; / * Start with the built-in C language function instructions * / # define PI 3.1415926 / * Acer constants later, in another chapter Elaborates on * / # define circle (radius) (PI * * radius radius) / * Macro function, a round of the area * / / * to compare the numerical size of the write functions include writing paper * / int show_big_or_small (int a, b int, int c) (int tmp if (Agt; b) (tmp = a b a = b = tmp) if (BGT; c) (tmp = b b = c c = tmp) if (Agt; b) ( tmp = a b a = b = tmp) printf ( "ascending order by the following results :% d% d% d \\ n", a, b, c)) procedures : in ascending order by the following results : 1 2 3 will the built-in functions include documents writte
Date
: 2008-10-13
Size
: 127.5kb
User
:
立功
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.