码迷,mamicode.com
首页 >  
搜索关键字:eof    ( 7139个结果
VC++6.0连接Access数据库
建立一个连接数据库的类:1.头文件:ADOConn.h#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","adoEOF")rename("BOF","adoBOF") c....
分类:数据库   时间:2015-05-22 21:09:43    阅读次数:189
南阳33(蛇形填数)规律题;
1 #include 2 int main() 3 { 4 int i,j,m,n; 5 while(scanf("%d",&n)!=EOF) 6 { 7 int k=0,num[100][100]; 8 if(n%2==0)//计算旋转次数; 9 m=n/2...
分类:其他好文   时间:2015-05-20 22:01:49    阅读次数:125
C++刷题——1910: 字符统计
Description 给出一串字符,要求统计出里面的字母、数字、空格以及其他字符的个数。字母:A, B, ..., Z、a, b, ..., z组成数字:0, 1, ..., 9 空格:" "(不包括引号) 剩下的可打印字符全为其他字符。 Input 测试数据有多组。每组数据为一行(长度不超过100000)。数据至文件结束(EOF)为止。 Output 每组输入对应...
分类:编程语言   时间:2015-05-19 14:54:35    阅读次数:139
用expect跳过密码验证的shell范例
#!/bin/bash Local_Dir=‘/tmp/test_huadan‘ Ip=‘192.168.0.221‘ PassWord=‘Lhm0125‘ Des_Dir=‘/tmp/test_huadan‘ List=$(find$Local_Dir-cmin-60) foriin$List do #echo$i if[-f$i] then expect<<EOF#利用expect命令,捕捉Password关键字,然后传入密码,此案例还..
分类:系统相关   时间:2015-05-18 21:04:55    阅读次数:485
vim环境设置
cat >> /home/xxx/.vimrc << "EOF"syntax enablesyntax oncolorscheme desertset nuset tabstop=4set softtabstop=4set shiftwidth=4set expandtabset diffopt+=...
分类:系统相关   时间:2015-05-18 20:34:55    阅读次数:161
feof和EOF的字符被重复读取问题的思考
void?main() { ??PNode?pNode; ??FILE?*fp=fopen("1.txt","r"); ??pNode=Create(i); ??while(getc(fp)!=EOF)?{ ????int?i; ????fscanf(fp,"%d",&i); ????pNode=Add(i,pNode); ??} ??...
分类:其他好文   时间:2015-05-18 09:19:48    阅读次数:151
acm_hdu ACM Steps Section1(1.1.1-1.1.8)
1.1.1#include #include int main(int argc, const char * argv[]){ int a,b; while (scanf("%d%d",&a,&b) != EOF) { printf("%d\n",a+b); }...
分类:其他好文   时间:2015-05-17 18:24:24    阅读次数:106
acm_hdu Problem Archive 1004
#include #include #include int main(){ int n = 0; while (scanf("%d",&n) != EOF && n!= 0) { char str[1000][16];//只对各不相同的颜色进行存储 memset(...
分类:其他好文   时间:2015-05-17 18:07:25    阅读次数:103
acm_hdu ACM Steps Section2(1.2.1-1.2.8)
1.2.1#include #include #define up 6#define down 4#define stop 5int main(int argc, const char * argv[]){ int n = 0; while (scanf("%d",&n) != EOF)...
分类:其他好文   时间:2015-05-17 18:07:02    阅读次数:90
c语言文件基础知识
#include #include #include #include /* * EOF: 符号常量,其值为-1. * fgets() 最多读取int-1个字符,遇换行或EOF即返回. * fputs() 写文件时,忽略字符串截止符'\0'. * fread()和fwrite() 数据块读写,多用于...
分类:编程语言   时间:2015-05-16 10:28:04    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!