#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
1. 标准输入输出 标准输入、输出主要由缓冲区和操作方法两部分组。缓冲区实际上可以看做内存中的字符串数组,而操作方法主要是指printf、scanf、puts、gets,getcha、putcahr等操作缓冲区的方法。在C++以及Java等面向对象的编程语言中,将缓冲区以及操作缓冲区的方法封装成一类... ...
分类:
编程语言 时间:
2016-06-19 19:49:23
阅读次数:
306
ruby学习笔记-puts,p,print的区别 共同点:都是用来屏幕输出的。 不同点:puts 输出内容后,会自动换行(如果内容参数为空,则仅输出一个换行符号);另外如果内容参数中有转义符,输出时将先处理转义再输出p 基本与puts相同,但不会处理参数中的转义符号print 基本与puts相同,但 ...
分类:
其他好文 时间:
2016-06-14 11:56:58
阅读次数:
128
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
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
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
读取文件基本操作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输出字符串。 ...
分类:
其他好文 时间:
2016-05-24 11:54:39
阅读次数:
394
Quine 以哲学家 Willard van Orman Quine (1908-2000) 而命名,表示一个可以生成他自己的完全的源代码的程序。编写出某个语言中最简短的 quine 通常作为黑客们的消遣。 其中一种很简单的解法: #define q(k) main(){return!puts(#k ...
分类:
其他好文 时间:
2016-05-22 18:20:47
阅读次数:
111