码迷,mamicode.com
首页 >  
搜索关键字:stdin    ( 2699个结果
利用fgets,fputs的回显程序
#include #define MAXLINE 20int main(void){char line[MAXLINE];while(fgets(line,MAXLINE,stdin) != NULL && line[0] != '\n') fputs(line, stdout);return 0;...
分类:其他好文   时间:2014-06-26 00:18:04    阅读次数:256
POJ 2632 Crashing Robots (模拟 坐标调整)(fflush导致RE)
fflush(stdin)会导致Runtime Error...
分类:其他好文   时间:2014-06-16 12:11:13    阅读次数:245
zboot/piggyback.c
/** linux/zBoot/piggyback.c** (C) 1993 Hannu Savolainen*//** This program reads the compressed system image from stdin and* encapsulates it into an ob...
分类:其他好文   时间:2014-06-06 15:57:43    阅读次数:246
POJ2491 Scavenger Hunt【裸map】
#include #include #include #include #include #include #include #include using namespace std; int main() { #ifndef ONLINE_JUDGE freopen("D:/1.txt","r",stdin); freopen("D:/2.txt","w",stdout...
分类:其他好文   时间:2014-06-02 07:02:20    阅读次数:253
Qt控制台输出QString
有时候想在控制台输出我们想要的QString变量。1、qDebug可以实现在控制台终端打印,但我们还是想使用C++中的std::coutQTextStreamcin(stdin,QIODevice::ReadOnly);QTextStreamcout(stdout,QIODevice::WriteO...
分类:其他好文   时间:2014-05-29 23:39:33    阅读次数:406
linux命令---sed
用途sed, 流编辑, 可以用来分析standard input, 还可以将数据进行取代, 删除, 新增, 取特定行.用法sed -nefr action选项与参数: -n: 在一般sed用法中, 所有来自stdin的数据一般都会被列出到屏幕上, 但如果加上-n参数, 则只有经过sed特殊处理的那....
分类:系统相关   时间:2014-05-28 18:27:46    阅读次数:320
sscanf
#define LOCAL#include#include#includeusing namespace std;int main(){#ifdef LOCAL freopen("sscanf.in","r",stdin); freopen("sscanf.out","w",stdout...
分类:其他好文   时间:2014-05-26 18:50:27    阅读次数:222
定积分求面积
http://acm.hdu.edu.cn/showproblem.php?pid=1071#include#includeint main(){ //freopen("in.txt","r",stdin); int t; scanf("%d",&t); while(t--)...
分类:其他好文   时间:2014-05-26 02:14:56    阅读次数:222
【动态规划初级】 BadNeighbors
目录最大连续序列和不连续序列的最大和1.最大连续序列和是指所有连续子序列元素和最大的那个。#include#includeusing namespace std;int main(){ freopen("in.txt","r",stdin); int n; while(cin>>n) { int a...
分类:其他好文   时间:2014-05-22 11:49:54    阅读次数:273
hadoop学习;Streaming,aggregate;combiner
hadoop streaming允许我们使用任何可执行脚本来处理按行组织的数据流,数据取自UNIX的标准输入STDIN,并输出到STDOUT 通过设定mapper为‘RandomSample.py 10’,我们按十分之一的采样率,没有设定特殊的reducer,一般默认使用IdentityReducer(把输入直接转向输出) 通过HDFS的命令getMerge(输出合并)或其他文件操作,可以获得...
分类:其他好文   时间:2014-05-18 15:12:21    阅读次数:380
2699条   上一页 1 ... 266 267 268 269 270 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!