码迷,mamicode.com
首页 >  
搜索关键字:puts    ( 2099个结果
小软件
#include<stdio.h> #include<stdlib.h> intuse(){ FILE*xxxFile=fopen("xxx.txt","rb"); FILE*yyyFile=fopen("yyy.txt","wb"); charc; while((c=getc(xxxFile))!=EOF) { if(c==‘?‘)putc((char)32,yyyFile); elseputc(c,yyyFile); } puts("文件已处理好~~"); ..
分类:其他好文   时间:2016-06-25 15:13:11    阅读次数:224
字符串分隔
I use this to split string by a delim. The first puts the results in a pre-constructed vector, the second returns a new vector. Note that this solutio ...
分类:其他好文   时间:2016-06-21 22:15:21    阅读次数:138
C语言的输入、输出流
1. 标准输入输出 标准输入、输出主要由缓冲区和操作方法两部分组。缓冲区实际上可以看做内存中的字符串数组,而操作方法主要是指printf、scanf、puts、gets,getcha、putcahr等操作缓冲区的方法。在C++以及Java等面向对象的编程语言中,将缓冲区以及操作缓冲区的方法封装成一类... ...
分类:编程语言   时间:2016-06-19 19:49:23    阅读次数:306
ruby学习笔记(1)-puts,p,print的区别
ruby学习笔记-puts,p,print的区别 共同点:都是用来屏幕输出的。 不同点:puts 输出内容后,会自动换行(如果内容参数为空,则仅输出一个换行符号);另外如果内容参数中有转义符,输出时将先处理转义再输出p 基本与puts相同,但不会处理参数中的转义符号print 基本与puts相同,但 ...
分类:其他好文   时间:2016-06-14 11:56:58    阅读次数:128
Box of Bricks最小移动砖块数目
Description Little Bob likes playing with his box of bricks. He puts the bricks one upon another and builds stacks of different height. “Look, I've bu ...
分类:移动开发   时间:2016-06-11 18:45:03    阅读次数:263
POJ-2318 TOYS
TOYS Description Calculate the number of toys that land in each bin of a partitioned toy box. Mom and dad have a problem - their child John never puts ...
分类:其他好文   时间:2016-06-08 12:33:22    阅读次数:248
POJ-2398 Toy Storage
Toy Storage Description Mom and dad have a problem: their child, Reza, never puts his toys away when he is finished playing with them. They gave Reza ...
分类:其他好文   时间:2016-06-08 12:26:23    阅读次数:169
tcl相关
读取文件基本操作setf[opene:/00w]#用句柄f以写的方式打开文件e;/00若文件不存在打开新文件 puts$f"nihao"#将内容nihao输出至句柄f close$f#关闭句柄f setf[opene:/00r]#用句柄f以读的方式打开文件e;/00若文件不存在将创建 while{[gets$fline]>=0}{#读取一行内容 puts$f }#..
分类:其他好文   时间:2016-06-02 11:42:22    阅读次数:156
putchar和puts
putchar输出一个字符,puts输出字符串。 ...
分类:其他好文   时间:2016-05-24 11:54:39    阅读次数:394
Qunie问题
Quine 以哲学家 Willard van Orman Quine (1908-2000) 而命名,表示一个可以生成他自己的完全的源代码的程序。编写出某个语言中最简短的 quine 通常作为黑客们的消遣。 其中一种很简单的解法: #define q(k) main(){return!puts(#k ...
分类:其他好文   时间:2016-05-22 18:20:47    阅读次数:111
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!