码迷,mamicode.com
首页 >  
搜索关键字:unexpected eof bcp    ( 8055个结果
UVa 272
背景;今天写一道模拟题写了10个小时,仍然未果,故水此题借以开心。 思路:一个一个的读,遇到引号就交替着换为规定的引号。 学习: 1.这里特殊引号是一种特殊字符,并不是ASCII表那255个字符里具有的,所以只能把它当做字符串常量输出。 2.条件表达式的简约感。 3.(temp=getchar())!=EOF //括号不能省略。运算符优先级:关系运算符大于逻辑预算符大于复制运算符,逗号最...
分类:其他好文   时间:2015-01-18 09:20:09    阅读次数:234
hihoCoder-1000-A+B
题目描述:传统的A+B题使用语言:C代码:#include int main(void){ int a,b; while((scanf("%d %d",&a, &b))!=EOF){ printf("%d\n",a+b); } return 0;}RE:scan...
分类:其他好文   时间:2015-01-17 19:26:06    阅读次数:220
使用 trait 时报PHP Parse error: syntax error, unexpected 'use' (T_USE) 这个错误
找一大圈原因, 最后终于找到了, 不是PHP版本的原因[], 是自己把use 写到了类里的方法里了.这个东东, 不能脱离类单独使用, 否则的话, 会被认为是命名空间了.测试例子如下// Trait.phptrait CustomerFunctionsTrait { public functio...
分类:Web程序   时间:2015-01-17 19:24:09    阅读次数:487
NYOJ 111 分数加减法
分数加减法时间限制:3000 ms | 内存限制:65535 KB 难度:2描述编写一个C程序,实现两个分数的加减法输入输入包含多行数据 每行数据是一个字符串,格式是"a/boc/d"。 其中a, b, c, d是一个0-9的整数。o是运算符"+"或者"-"。 数据以EOF结束 输入数据保证合法输出...
分类:其他好文   时间:2015-01-17 15:10:09    阅读次数:97
myeclipse报错:Could not create the view: An unexpected exception was thrown.
打开server窗口,发现显示:Could not create the view: An unexpected exception was thrown.此处解决方法: 关闭myeclipse 删除文件workspace/.metadata/.plugins/org.eclipse.core......
分类:系统相关   时间:2015-01-17 12:34:41    阅读次数:640
字符串比较报错
今天要归档日志时发现要排除当日的日志不能归档,gz -9 $filename 但发现没有--exclude 选项,故选择使用判断语句进行排除特定文件名。但使用if ..then ..fi 判断字符串是否相等时报错:syntax error near unexpected token `then'原因...
分类:其他好文   时间:2015-01-15 18:08:11    阅读次数:123
HDOJ 1094
#include "stdio.h"int main(void){ int i, m, n; int sum = 0; while(scanf("%d", &m) != EOF){ for(i=0; i<m; i++){ scanf("%d", &n); sum += n; } ...
分类:其他好文   时间:2015-01-13 14:13:20    阅读次数:116
HDOJ 2009
#include"stdio.h"#include"math.h" int main(void){ double m, n; while(scanf("%lf%lf", &n, &m) != EOF){ double sum, x; sum = n; int i; for(i=1; i<...
分类:其他好文   时间:2015-01-13 14:12:37    阅读次数:134
HDOJ 2006
#include "stdio.h"int main(void){ int i, j, num; int OddSum = 1; while(scanf("%d", &j) != EOF){ for(i=0; i<j; i++){ scanf("%d", &num); if(num...
分类:其他好文   时间:2015-01-13 14:06:03    阅读次数:153
HDOJ 2004
#include"stdio.h"int main(void){ int i; while(scanf("%d", &i) != EOF){ if(i 100){ printf("Score is error!\n"); } else{ i = i / 10; swi...
分类:其他好文   时间:2015-01-13 14:02:31    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!