求一个整数n对16求商和余数
摘要:#include <stdio.h> int getShang(int n) // 对16求商 { return n >> 4; } int getYushu(int n) // 对16求余 { return n & 0xf; } void main() { int n = 1; while(n != 0) { scanf("%d", &n); ...
阅读全文
posted @
2010-09-01 21:15
清清飞扬
阅读(567)
推荐(0) 编辑
msado15.tlh中重要的枚举(精简)
摘要:1. msado15.tlhenum ConnectPromptEnum{ adPromptAlways = 1, adPromptComplete = 2, adPromptCompleteRequired = 3, adPromptNever = 4};enum ParameterAttributesEnum{ adParamSigned = 16, adParamNullable = 64, adParamLong = 128}; enum ParameterDirectionEnum{ adParamUnknown = 0, adParamInput = 1, adParamOutpu
阅读全文
posted @
2010-09-01 21:13
清清飞扬
阅读(488)
推荐(0) 编辑
VC连接SQL2005(例子ADO_2)
摘要:(1) 在StdAfx.h中添加下面一句话:#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF", "rsEOF")
阅读全文
posted @
2010-09-01 21:11
清清飞扬
阅读(3430)
推荐(0) 编辑
vc连接Access2003
摘要:(1) 在StdAfx.h中添加下面一句话:#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "adoEOF")(2) 连接数据库并读取其中一个字段
阅读全文
posted @
2010-09-01 21:10
清清飞扬
阅读(1352)
推荐(0) 编辑