上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 本文将介绍两个 C++ 类—— CPictureEx 和 CPictureExWnd,使用它们可以在 MFC 和 ATL 工程中使用动画GIF效果。CPictureEx 是一个为 MFC 程序使用的 C++ 类,对于一些需要使用JPEG 和 GIF 图像格式作为 banner 的应用程序可以借助这个类来实现。对于静态 banner 的显示使用 OleLoadPicture ... 阅读全文
posted @ 2010-04-10 13:17 蓝牙 阅读(1307) 评论(0) 推荐(0) 编辑
摘要: 题目:编写一个函数,判断其int型参数值是否是回文数,回文数是指从正向和反向两个方向读数字都一样,例如:9783879是一个回文数。解答:#include <iostream>#define N 100using namespace std;int a[N];bool hw(__int64 num){ int i=0; while(num) { a[i++]=num%10; num=n... 阅读全文
posted @ 2010-04-10 10:35 蓝牙 阅读(165) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;template<class T>inline void PRINT_ELEMENTS(const T& coll,const char* optcstr=" "){typename T::const_iterator pos;cout<<optcstr;for(pos=col... 阅读全文
posted @ 2010-04-10 09:56 蓝牙 阅读(196) 评论(0) 推荐(0) 编辑
摘要: SumsetsTime Limit: 1000ms Memory limit: 65536kB 题目描述 Given S, a set of integers, find the largest d such that a + b + c = d where a, b, c, and d are distinct elements of S. 输入 Several S, each consisti... 阅读全文
posted @ 2010-04-09 22:05 蓝牙 阅读(864) 评论(0) 推荐(0) 编辑
摘要: 4 Values whose Sum is 0Time Limit: 15000ms Memory limit: 228000kB 题目描述 The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c... 阅读全文
posted @ 2010-04-09 20:49 蓝牙 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 如何在 KEIL C51(v6.21) 中调用汇编函数的一个示例 [ycong_kuang]有关c51调用汇编的方法已经有很多帖子讲到,但是一般只讲要点,很少有对整个过程作详细描述,对于初学者是不够的,这里笔者通过一个简单例子对这个过程进行描述,希望能对初学者有所帮助。几年来,在这个论坛里笔者得到很多热心人指导,因此也希望藉此尽一点绵薄之力。在这个例子里,阐述了编写c51程序调用汇编函数的一种方法... 阅读全文
posted @ 2010-04-07 18:04 蓝牙 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Many people like to solve hard puzzles some of which may lead them to madness. One such puzzle could be finding a hidden prime number in a given text. Such number could be the number of different... 阅读全文
posted @ 2010-04-06 23:22 蓝牙 阅读(597) 评论(0) 推荐(0) 编辑
摘要: BabelfishTime Limit: 3000ms Memory limit: 65536kB 题目描述 You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a... 阅读全文
posted @ 2010-04-05 09:47 蓝牙 阅读(708) 评论(0) 推荐(2) 编辑
摘要: Counterfeit DollarTime Limit: 1000ms Memory limit: 10000kB 题目描述 Sally Jones has a dozen Voyageur silver dollars. However, only eleven of the coins are true silver dollars; one coin is counterfeit even... 阅读全文
posted @ 2010-04-05 09:02 蓝牙 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 上拉电阻: 1、当TTL电路驱动COMS电路时,如果TTL电路输出的高电平低于COMS电路的最低高电平(一般为3.5V),这时就需要在TTL的输出端接上拉电阻,以提高输出高电平的值。 2、OC门电路必须加上拉电阻,才能使用。 3、为加大输出引脚的驱动能力,有的单片机管脚上也常使用上拉电阻。 4、在COMS芯片上,为了防止静电造成损坏,不用的管脚不能悬空,一般接上拉电阻产生降低输入阻抗,提供泄荷通路... 阅读全文
posted @ 2010-04-02 09:31 蓝牙 阅读(241) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页