摘要:
#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); ... 阅读全文
摘要:
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 阅读全文
摘要:
(1) 在StdAfx.h中添加下面一句话:#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF", "rsEOF") 阅读全文
摘要:
(1) 在StdAfx.h中添加下面一句话:#import "c:\program files\common files\system\ado\msado15.dll" no_namespace rename("EOF", "adoEOF")(2) 连接数据库并读取其中一个字段 阅读全文