Sweety

Practice makes perfect

导航

2014年8月10日

摘要: 《VHDL课程设计》实验报告 多功能数字电子钟 姓 名:XXX 班 级:XX班 学 号:XXXXXXXXX 指导老师:XXX ●设计要求 在Quartus II环境下设计芯片完成二十四小... 阅读全文

posted @ 2014-08-10 22:27 蓝空 阅读(593) 评论(0) 推荐(0) 编辑

2014年8月8日

摘要: 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 蓝空 阅读(152) 评论(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 蓝空 阅读(124) 评论(0) 推荐(0) 编辑

2014年8月7日

摘要: 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 蓝空 阅读(150) 评论(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 蓝空 阅读(121) 评论(0) 推荐(0) 编辑

2014年8月6日

摘要: 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 蓝空 阅读(166) 评论(0) 推荐(0) 编辑

2014年8月5日

摘要: 简单遍历: 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 蓝空 阅读(185) 评论(0) 推荐(0) 编辑

摘要: scanf的用法 1.scanf函数的一般形式scanf(格式控制,地址表列) int scanf(char *format[,argument,...]); “格式控制”的含义同printf函数;“地址表列”是由若干个地址组成的表列,可以是变量的地址,或字符串首地址。 scanf()函数返回成... 阅读全文

posted @ 2014-08-05 11:12 蓝空 阅读(199) 评论(0) 推荐(0) 编辑

2014年8月4日

摘要: 除下面一个外,其他和priority_queue的用法相同 就是得到最后一个,相当于vector中的end() back() // queue::back #include // std::cout #include // std::queue usin... 阅读全文

posted @ 2014-08-04 16:16 蓝空 阅读(139) 评论(0) 推荐(0) 编辑