码迷,mamicode.com
首页 >  
搜索关键字:unexpected eof bcp    ( 8055个结果
shell 自动登录脚本
#!/bin/bash IP=`awk‘{print$1}‘/home/bash/mima.txt` foriin$IP do {port=`grep$i/home/bash/mima.txt|awk‘{print$2}‘` pawd=`grep$i/home/bash/mima.txt|awk‘{print$3}‘` expect<<EOF spawnssh-p$portroot@$i; expect{ "(yes/no)?"{send"yes\r"} "password:"{send"$pa..
分类:其他好文   时间:2014-09-28 18:43:36    阅读次数:133
杭电2052
#includeint main(){ int a,b,i,j; while(scanf("%d %d",&a,&b)!=EOF) { for(i=0;i<b+2;i++) { if(i==0||i==b+1) ...
分类:其他好文   时间:2014-09-28 10:02:31    阅读次数:251
关于MyEclipse 10.7 部署报错,抛空指针异常的解决办法
(1)在MyEclipse Servers视图在MyEclipse 10.7.0在某些情况下,可能无法打开。 试图打开视图将导致NPE将被记录。 Could not create the view: An unexpected exception was thrown. java.lang.NullPointerException at com.genuitec.eclipse.ast...
分类:系统相关   时间:2014-09-27 12:03:29    阅读次数:244
Linux中syntax error near unexpected token 错误提示解决方法
Linux中syntax error near unexpected token... 错误提示有一般有两种原因:1)window和Linux下换行符不一致导致window下的换行和Linux下的换行不同,如果将window下编写的代码文件上传到Linux下,容易出现该错误提示。可用 vi -b 文...
分类:系统相关   时间:2014-09-27 11:22:19    阅读次数:511
杭电2051
1 #include 2 int main() 3 { 4 int n,a[20],i,j; 5 while(scanf("%d",&n)!=EOF&&n>0) 6 { 7 8 for(i=0;n/2.0!=0;i++) 9 ...
分类:其他好文   时间:2014-09-27 10:22:09    阅读次数:149
json格式字符串用jquery.parseJSON()出现的问题 Uncaught SyntaxError: Unexpected token ' Uncaught SyntaxError: Unexpected number (index)
Unexpected number(index)的错误用的json字符串如var jsonStr = "{1:'北京note备注信息',2:'上海note备注信息',3:'广东note备注信息',4:'深圳note备注信息4',5:'天津note备注信息5',6:'湖北note备注信息6',7:'重...
分类:Web程序   时间:2014-09-26 19:36:58    阅读次数:455
hdu 1106
#include#include#include#includeusing namespace std;char a[1000+10];int num[1000+10];int main(){ int i,j; int l,r; while(scanf("%s",a)!=EOF) ...
分类:其他好文   时间:2014-09-26 01:05:17    阅读次数:303
ssh自动化出现的莫名报错
代码如:ssh -q user@host <<EOF ping -c 3 localhostEOF会出现提示如:Pseudo-terminal will not be allocated because stdin is not a terminal.google了下,有人提出加上-T(ssh -....
分类:其他好文   时间:2014-09-25 22:10:27    阅读次数:223
输入输出函数小结
输入函数scanf ,sscanf(输入源是字符串),fscanf(输入源是文件)函数返回值 :返回成功读入的项目的个数。如果没有读取任何项目返回0。当它检测到文件结尾时,它返回EOF。输入结束标志:跳过输入队列的换行符,空格开始读入。遇到换行,空格是结束读入,注意 :输入字符串时逗...
分类:其他好文   时间:2014-09-25 19:08:37    阅读次数:299
AndroidStudio中gradle异常:unexpected end of block data
原因:可能是AndroidbuildTools版本不够高。解决方法:打开build.gradle,将android中buildToolsVersion改为'20.0.0' (我使用的是gradle 2.1)更多尝试后发现也可能是其他版本不够。如下是可行的:android { compileSd...
分类:移动开发   时间:2014-09-25 05:53:18    阅读次数:281
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!