建立一个连接数据库的类: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
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
Description
给出一串字符,要求统计出里面的字母、数字、空格以及其他字符的个数。字母:A, B, ..., Z、a, b, ..., z组成数字:0, 1, ..., 9 空格:" "(不包括引号) 剩下的可打印字符全为其他字符。
Input
测试数据有多组。每组数据为一行(长度不超过100000)。数据至文件结束(EOF)为止。
Output
每组输入对应...
分类:
编程语言 时间:
2015-05-19 14:54:35
阅读次数:
139
#!/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
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
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
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
#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
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
#include #include #include #include /* * EOF: 符号常量,其值为-1. * fgets() 最多读取int-1个字符,遇换行或EOF即返回. * fputs() 写文件时,忽略字符串截止符'\0'. * fread()和fwrite() 数据块读写,多用于...
分类:
编程语言 时间:
2015-05-16 10:28:04
阅读次数:
173