码迷,mamicode.com
首页 >  
搜索关键字:unexpected eof bcp    ( 8055个结果
c语言 while (~scanf("%d%d",&n,&m)) 在这里这个符号“~”是什么意思
按位取反,简单地说就是二进制1变0,0变1由于scanf是有返回值的,且返回值为int型特别的此处用法导致只有scanf返回-1,循环才会结束,也就是要返回EOF while (~scanf("%d%d",&n,&m))等效于 while (scanf("%d%d",&n,&m)!=EOF)
分类:编程语言   时间:2014-09-09 11:30:28    阅读次数:344
CSU1217
就跟数字出现奇数次道理是一样的,将一个数转化为2进制后找出现奇数次个1的位置,最后将其输出来便是出现奇数次的数#include int main(){ int n,a; while(scanf("%d",&n)!=EOF){ int res=0; for(in...
分类:其他好文   时间:2014-09-09 10:56:18    阅读次数:193
杭电2040
#includeint main(){ int m,x,y,i,j; while(scanf("%d",&m)!=EOF) { while(m--) { int sum1=0,sum2=0; scanf("%d %d",&x,...
分类:其他好文   时间:2014-09-08 08:31:26    阅读次数:155
HDU 1164
因为规模小,使用试除法即可#include #include #include #include using namespace std;const int Maxn=100;int prime[Maxn];int main(){ int n,m; while(scanf("%d",&n)!=EOF...
分类:其他好文   时间:2014-09-07 22:20:45    阅读次数:157
MFC数据库操作
本例采用Microsoft SQL2008建立的一个数据库表/****链接数据库操作**/在stdafx.h的头文件中加入#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace\rename("EOF",...
分类:数据库   时间:2014-09-06 16:00:03    阅读次数:354
Get start with "Redis" —— by “EOF”
Get start with "Redis"              怎么安装Redis的  tutorial一堆~我不重复了,仅仅留下自己开始玩Redis的经验(LZ 数据库零经验,So...一切从零开始学Redis) 在shell下触发redis-server就启动Redis了. 我一开始傻乎乎的~好郁闷,都没有交互,我怎么用Redis啊? ...
分类:其他好文   时间:2014-09-05 18:22:52    阅读次数:213
delphi DataSet读写
DBGridEh1.DataSource.DataSet.Open; while not DBGridEh1.DataSource.DataSet.Eof do begin {showmessage('CID : '+string(DBGridEh1.DataSource.DataSet....
分类:其他好文   时间:2014-09-05 16:02:11    阅读次数:116
c语言entab
k&r习题,将空格替换为制表。 参考答案: #include<stdio.h> #define TABINC 8 main() { int c,nb,nt,pos; nb=nt=0; for(pos=1;(c=getchar())!=EOF;++pos){ if(c==‘ ‘){ if(pos...
分类:编程语言   时间:2014-09-05 13:04:51    阅读次数:247
20140905bug
shell脚本: syntax error near unexpected token elseif [ -f "$impDataFile" -a -f "$tagFile" ] ;then else #一开始左边缺了空格 echo "file is not exists"fi
分类:其他好文   时间:2014-09-05 12:51:01    阅读次数:216
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!