posted @ 2014-08-10 22:27 蓝空 阅读(606) 评论(0) 推荐(0) 编辑
摘要:
《VHDL课程设计》实验报告 多功能数字电子钟 姓 名:XXX 班 级:XX班 学 号:XXXXXXXXX 指导老师:XXX ●设计要求 在Quartus II环境下设计芯片完成二十四小... 阅读全文
摘要:
Description Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the ... 阅读全文
posted @ 2014-08-08 15:26 蓝空 阅读(153) 评论(0) 推荐(0) 编辑
摘要:
Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to ea... 阅读全文
posted @ 2014-08-08 11:26 蓝空 阅读(126) 评论(0) 推荐(0) 编辑
摘要:
Description Order is an important concept in mathematics and in computer science. For example, Zorn's Lemma states: ``a partially ordered set in w... 阅读全文
posted @ 2014-08-07 18:09 蓝空 阅读(151) 评论(0) 推荐(0) 编辑
摘要:
以下内容摘自《C程序设计教程》(美)H.M.Deitel P.J.Deitel著,薛万鹏等译,机械工业出版社。 void *memccpy (void *dest, const void *src, int c, size_t n); 从sr*所指向的对象复制*个字符到*est所指向的对象... 阅读全文
posted @ 2014-08-07 16:17 蓝空 阅读(418) 评论(0) 推荐(0) 编辑
摘要:
这是一个求一个排序的下一个排列的函数,可以遍历全排列,要包含头文件 下面是以前的笔记 与之完全相反的函数还有prev_permutation (1) int 类型的next_permutation int main() { int a[3]; a[0]=1;a[1]=2;a[... 阅读全文
posted @ 2014-08-07 16:07 蓝空 阅读(125) 评论(0) 推荐(0) 编辑
摘要:
Description The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change... 阅读全文
posted @ 2014-08-06 11:37 蓝空 阅读(167) 评论(0) 推荐(0) 编辑
摘要:
简单遍历: bool isprime(int n){ int s = sqrt( double(n) )+1; //对n开根号 for(int i=2;i<=s;i++) //n除以... 阅读全文
posted @ 2014-08-05 16:58 蓝空 阅读(188) 评论(0) 推荐(0) 编辑