码迷,mamicode.com
首页 >  
搜索关键字:eof    ( 7139个结果
android 通过包名过滤logcat
1 #!/bin/bash 2 3 if [[ ! -n $1 ]]; then 4 cat 6 EOF 7 exit 1 8 fi11 12 package_name=$113 ip=110.1.1.19:555514 pid_...
分类:移动开发   时间:2015-01-12 17:28:07    阅读次数:254
UVa 10340 字符串基础
背景:小紫书习题,开始数组开小了runtime error了一次,显然数组越界。复杂度:O(max(A的长度,B的长度))。 题意:看字符串A是不是字符串B的子串。直接顺序扫描即可。 #include #include char str[1000000],ttr[1000000]; int main(void){ while(scanf("%s %s",str,ttr)!=EOF){ i...
分类:其他好文   时间:2015-01-11 23:03:21    阅读次数:416
php笔记[2]
strlen()函数获得字符窜的长度读取文件:fgets(),fgetss()和fgetcsv()读取整个文件:readfile(),fpassthru()和file()读取一个字符:fgetc()使用fgetc()函数的唯一缺点是它返回文件结束符EOF,而fgets()不会读取设定的长度:frea...
分类:Web程序   时间:2015-01-11 16:08:02    阅读次数:246
标准IO之格式化输入和输出
1. 格式化输入 返回值:三个函数的返回值一致,若成功,指定输入的项数,若输入出错或在任意变换前已到达文件结尾则返回EOF (1). scanf 原型:int scanf(const char *restrict format, ...); 最基础,从标准输入输入 (2). fscanf 原型:int fscanf(FILE *restrict fp, const char *re...
分类:其他好文   时间:2015-01-10 12:45:37    阅读次数:281
表达式求值
#include#includeusing namespace std;long long a[1000001];char c[1000001];int main(){ int i=2; cin>>a[1]; int ans=0; while(scanf("%c",&c[i++])!=EOF) s....
分类:其他好文   时间:2015-01-09 20:51:32    阅读次数:234
tttt
1 while(scanf("%d",&n)!=EOF) 2 { 3 res=-1; 4 level(tmp,n,res,1); 5 printf("%d/n",res); 6 }View Code
分类:其他好文   时间:2015-01-08 21:29:23    阅读次数:177
sdsdd
1 while(scanf("%d",&n)!=EOF) 2 { 3 res=-1; 4 level(tmp,n,res,1); 5 printf("%d/n",res); 6 }View Code
分类:其他好文   时间:2015-01-08 21:25:37    阅读次数:201
编程挑战系统的输入和输出详细说明
在高校俱乐部线上编程挑战中,一道题目的所有测试数据是放在一个文本文件中,选手将一道题目的程序提交给评判系统运行,程序从该文件中读取测试数据,再把运行结果输出到另一个文本文件中。系统把输出文件与标准答案比对,来评判程序编写得正确与否。本系统采用标准的输入输出,输入结束有文件末尾标识(EOF),这可以用...
分类:其他好文   时间:2015-01-06 13:46:22    阅读次数:209
整数分隔
#include #include #define MAX 1000000000 using namespace std; int main() { int N =0 ; while (EOF != scanf("%d", &N)) { if (N 1000000) { cout<<"-1"<<endl; ...
分类:其他好文   时间:2015-01-04 13:35:55    阅读次数:138
AJAX服务器返回数据 连接数据库查询数据
getcustomer.asp" 中的源代码负责对数据库进行查询,然后用 HTML 表格返回结果:")do until rs.EOF for each x in rs.Fields response.write("" & x.name & "") response.write("" &...
分类:数据库   时间:2015-01-04 12:05:12    阅读次数:213
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!