Welcome![Sign In][Sign Up]
Location:
Search - printf

Search list

[Other resourcemyprointf

Description: 小型的printf函数原码,省略了浮点数的支持,可明显减小原码大小.-small printf function source, the omission of the float, could significantly reduce the size of the original code.
Platform: | Size: 1565 | Author: 谭晓波 | Hits:

[Other resourceheibaizi

Description: 在图形模式下主要显示数字比较麻烦,这里我就用一维数组来统计得分了.希望大家可以指点下在图形模式下应该如何像printf一样输出一个得分.这里的黑白玩家都用上下左右四个键控制,回车代表确认按下. -in graphics mode is largely compared trouble Here, I used one-dimensional array of scoring statistics. we can hope that under the guidance of the graphics mode like how Prince tf as a scoring output. here are composed of black and white players from top to bottom about four control keys, press the Enter representative confirmed.
Platform: | Size: 2571 | Author: 岳颖君 | Hits:

[Software EngineeringIntel_IA32_C_CPU

Description: 剖析Intel IA32 架构下C 语言及CPU 浮点数机制 Version 0.01 哈尔滨工业大学 谢煜波 (email: xieyubo@126.com 网址:http://purec.binghua.com) (QQ:13916830 哈工大紫丁香BBSID:iamxiaohan) 前言 这两天翻看一本C 语言书的时候,发现上面有一段这样写到 例:将同一实型数分别赋值给单精度实型和双精度实型,然后打印输出。 #include <stdio.h> main() { float a double b a = 123456.789e4 b = 123456.789e4 printf(“%f\\n%f\\n”,a,b) } 运行结果如下:-analysis framework and the C language CPU float mechanism Version 0.0 a Harbin Industrial University Shushan wave (email : xieyubo@126.com website : http://purec.binghua.com) (QQ : HIT lilac BBSID 13916830 : iamxiaohan) Introduction The two epoch-making book on the C language, discovered that there are some cases written : the same number of each type is assigned to the single-precision and double-real float, then print output. # Include
Platform: | Size: 168329 | Author: lza | Hits:

[Other resourceMCS5_uCOC_II

Description: 移植到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
Platform: | Size: 157834 | Author: zhangk | Hits:

[Other resourcenewPrintf1

Description: 类似于printf的函数,可以实现其输出的功能,-similar to the printf function, can achieve its output function,
Platform: | Size: 8071 | Author: li | Hits:

[Other resourceviPrnt

Description: 此为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
Platform: | Size: 8548 | Author: 杨美荟 | Hits:

[Email Clientx-string-functions

Description: 类似于printf格式的可变参数的串拷贝、连接函数-printf format similar to the variable parameters of the string copy, link function
Platform: | Size: 1308 | Author: 黄森 | Hits:

[Windows Developstepnc_write_v1_1

Description: The STEPNCWrite library writes STEP-NC toolpath data (AP-238 CC1). This C++ library is completely open-source and has been released under the GNU General Public License (GPL). The library writes data in XML format (ISO 10303-28) using just printf(), so it does not depend on any STEP toolkit. It has no other dependencies and should build on Windows, Linux, Mac, or any other Unix platform. If you want to view your toolpath files, you can use the open-source Java AP-238 Toolpath Viewer. For more sophisticated applications, we encourage you to look at our commercial product, the STEP-NC Explorer which can display workpiece, fixture, and tool geometry as well as the paths, simulate their operation and convert -STEPNCWrite writes STEP-NC to olpath data (AP-238 CC1). This C library is comp letely open-source and has been released under the GNU General Public License (GPL). The libra ry writes data in XML format (ISO 10303-28) usin g just printf (), so it does not depend on any STEP toolkit. It has n o other dependencies and should build on Window s, Linux, Mac, or any other Unix platform. If you want to view yo ur toolpath files, you can use the open-source Java AP-238 Toolpat h Viewer. For more sophisticated applications , we encourage you to look at our commercial pro duct , the STEP-NC Explorer which can display workp iece, fixture , and tool geometry as well as the paths , simulate their operation and convert
Platform: | Size: 100726 | Author: 易力 | Hits:

[Other resourceuart_con

Description: 实用的串口收发程序,实现了printf和scanf,注释详细,适用于51单片机-practical Serial Transceivers procedures, and the printf Scanf Notes detailed, apply to the 51 SCM
Platform: | Size: 929 | Author: 陈新明 | Hits:

[Linux-Unixself_printf

Description: 实现printf功能的变长函数程序,适合初学者学习-achieve printf function of variable-length function procedures for beginners learning
Platform: | Size: 1064 | Author: yy | Hits:

[Disk Toolsdisk_tool_miniTO

Description: 分区表备份器 miniTO 源码 现传上源码...希望能对正学习DOS,WINDOWS,磁盘和编程者有点帮助... 内含纯DOS,WIN32控制台和WIN32 GUI三个版本.它们生成的备份文件可以在任何版本中使用. WIN32 GUI版本暂使用备份功能(其他模块也都已全部写好,全是完整的,现在仅开启备份功能),如果想使用还原替换和比较功能,可自行打开调用的开关或加几句调用的代码就可以了, 一会儿我再把它们加上去,... (在WIN,打印功能是不能使用直接使用DOS的代码的,要把它们先送到编辑框的缓冲区再显示的...有兴趣的也可自己弄...) 因刚刚从DOS代码转写成WIN,程序提示还没有完全改写成WIN的,printf()等还留在里面,不过对编译没有影响,有时间可以改写掉, 因时间关系,没有详细的注释,不过在写的时候,变量名字基本是根据其功能起的,所以,对程序的代码思路还是不难理解的-Backup partition table for miniTO source is on the traditional source of hope ... is learning DOS, Windows, disk and programmers a little help ... containing pure DOS. Win32 console and GUI Win32 version 3. They generated backup file can be any version convinces used. Win32 GUI version occasional use backup functions (other modules have already been prepared, all is complete, Now only open backup function), if we want to reinstate the use of replacement and comparison functions, can open the call of a few switches or additions to the calling code can be, I then later they added. ... (WIN, Print function is not used directly use the DOS code. They should first sent to the editors of the frame buffer shows again and again ... interested can also get their own ...) from a DO S WIN code into t
Platform: | Size: 211931 | Author: 李大大 | Hits:

[Disk Toolsdisk_tool_miniTO_updated_edition

Description: 现传上源码...希望能对正学习DOS,WINDOWS,磁盘和编程者有点帮助... 内含纯DOS,WIN32控制台和WIN32 GUI三个版本.它们生成的备份文件可以在任何版本中使用. DOS版具有全部功能 WIN版控制台 暂未开启打印功能 WIN版GUI 暂未开启比较和打印功能 WIN32 版本的暂未开启的功能的模块都是完整的,如果想使用,可自行打开调用的开关或加几句调用的代码就可以了, 以后有时间我再把它们加上去,...) (在WIN,打印功能是不能使用直接使用DOS的代码的,要把它们先送到编辑框的缓冲区再显示的...有兴趣的也可自己弄...) 因刚刚从DOS代码转写成WIN,程序提示还没有完全改写成WIN的,printf()等还留在里面,不过对编译没有影响,有时间可以改写掉, 因时间关系,没有详细的注释,不过在写的时候,变量名字基本是根据其功能起的,所以,对程序的代码思路还是不难理解的-is on the traditional source of hope ... is learning DOS, Windows, disk and programmers a little help ... containing pure DOS. Win32 console and GUI Win32 version 3. They generated backup file can be any version convinces used. DOS version is fully functional WIN version of the console is yet to open the Print function WIN version of the GUI yet opened earlier and print versions of the Win32 function is yet to open the function of the module is a complete, and if we want to use, can open the call of a few switches or additions to the calling code can be in the future when I have time then they added. ...) (WIN, Print function is not used directly use the DOS code. They should first sent to the editors of the frame buffer shows again and again ... interested can also get their own ...) from
Platform: | Size: 276238 | Author: 李大大 | Hits:

[Linux-Unixctime

Description: 在sco unix 下显示前n天或后n天日期的处理程序。 printf(\"功能: 时间戳与时间格式字符串的转换程序\\n\") printf(\" -i 输入的参数为时间戳\\n\") printf(\" -s 输入的参数为格式化时间\\n\") printf(\" -t 输入的时间取当前系统时间\\n\") printf(\" -x 输入的时间增加或减少的天数\\n\") printf(\" -o 输出的时间为时间戳格式\\n\") printf(\" -O 输出的时间为格式化时间\\n\") printf(\" -h 帮助文件-查看[format]如何定义,例 %s -h\\n\",procname) printf(\"范例:1 取当前日期的前2天的时间显示 %s -t -x -2\\n\",procname) printf(\" 2 取20030101的前5天的时间显示 %s -s 20030101000000 -x -5\\n\",procname) printf(\" 3 取20031231的后5天的时间显示 %s -s 20031231000000 -x 5 -O \\\"%%D %%T\\\"\\n\",procname) printf(\" 4 取时间戳为1089619417的时间显示 %s -i 1089619417 \\n\",procname) printf(\" 5 取时间戳为1089619417的后4天的时间显示 %s -i 1089619417 -x 4 \\n\",procname) -in sco unix under the former n n days or days after the date of processing. Printf ( "function : timestamp and time format string conversion program \\ n ") printf (" - i input parameters timestamp \\ n ") printf (" - s input parameters for formatting time \\ n ") printf (" - t input the time for the current system time \\ n ") printf (" - x importation time increase or decrease the number of days \\ n " ) printf ( "- o output format for timestamp \\ n") printf ( "- O when output time for the inter-formatted \\ n ") printf (" - h Help-View [format] definition , the cases% s-h \\ n ", procname) printf (" Examples : a date from the current two days before the time displayed% s-t-2 x \\ n ", procname) printf ( &q
Platform: | Size: 2560 | Author: yux | Hits:

[Other resourceClassicVcPrograms

Description: 经典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
Platform: | Size: 130193 | Author: lidan | Hits:

[OS programzhiyuanguanlixitong

Description: 操作系统课程设计 资源管理系统 safe() //用银行家算法判定系统是否安全 do{ printf(\"\\n*****输入要进行的操作 1:分配资源 2: 修改资源 3:显示资源 4:离开*****\") scanf(\"%d\",&choice) -courses on operating system design resource management system safe () / / algorithm with bankers determine whether the safety system do (printf ( "\\ n ***** input to the operation of a : 2 distribution of resources : 3 amend resources : resources four shows : left *****") Scanf ( "% d",
Platform: | Size: 2481 | Author: 叶风 | Hits:

[OS programtubianli

Description: 图的遍历的演示(c 语言 数据结构课程设计题) /*定义图*/ typedef struct{ int V[M] int R[M][M] int vexnum }Graph /*创建图*/ void creatgraph(Graph *g,int n) { int i,j,r1,r2 g->vexnum=n /*顶点用i表示*/ for(i=1 i<=n i++) { g->V[i]=i } /*初始化R*/ for(i=1 i<=n i++) for(j=1 j<=n j++) { g->R[i][j]=0 } /*输入R*/ printf(\"Please input R(0,0 END):\\n\") scanf(\"%d,%d\",&r1,&r2) while(r1!=0&&r2!=0) { g->R[r1][r2]=1 g->R[r2][r1]=1 scanf(\"%d,%d\",&r1,&r2) } } -graph traversal of the display (c language curriculum design data structures that) / * definition of the map * / typedef s truct V (int int [M] R [M] [M]) int vexnum Graph / * create map * / void creatgraph (Graph * g, int n) (int i, j, r1, r2 g -
Platform: | Size: 1405 | Author: 吉庆 | Hits:

[ELanguagecompiler([1].netstl)

Description: (1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言; (2) 一个简单的说明文档; (3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录; (4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。 注意事项: (1) 两人一组 (2) 可以使用词法、语法自动生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等 (3) 不用考虑Pascal和C的关键词不同问题,即Pascal子集语言中假设不出现int,for等作为变量标志符 (4) read()和write()可用由scanf(),printf()等组成的语句转换。 (5) 如果有疑问可以发信给我 xpqiu@fudan.edu.cn.
Platform: | Size: 48656 | Author: cy | Hits:

[Other resource13554_dfgn

Description: 打印日志文件,带可变参数,类似与printf函数,可以把文件直接打印到文件中
Platform: | Size: 8670765 | Author: 111111 | Hits:

[Other resourceself_printf

Description: 自己写的C语言代码用来实现printf,经典的就是经典,可以随便拿来用
Platform: | Size: 1248 | Author: | Hits:

[Other4

Description: 学会对文件的记录锁定,及解锁。#include <stdio.h> #include <unistd.h> #include <fcntl.h> int main() { int fd int i struct { char name[20] uint ID int age } myrec fd =open(\"name\", O_RDWR|O_CREAT, 0755) if (fd == -1) return -1 printf(\"Input your name:\") scanf(\"%s\", myrec.name) printf(\"Inpute your ID :\") scanf(\"%d\", &myrec.ID) printf(\"Input your age :\") scanf(\"%d\", &myrec.age) lseek(fd, 0,SEEK_END) lockf(fd, 1, 0) write(fd, (void *)&myrec, sizeof(myrec)) lockf(fd, 0 ,0) return 0 } 执行命令cc lock.c –o lock.out Chmod +x lock.out ./lock.out
Platform: | Size: 9297 | Author: 华羿 | Hits:
« 1 2 3 4 5 6 78 9 10 11 12 ... 38 »

CodeBus www.codebus.net