程序思路:(1)一圈人循环报数,报数报到3的人,将其置为0,表示被淘汰;(2)那么在接下去的循环中,被淘汰的人不参与报数;(3)直到仅有1人没被淘汰,并显示出他之前的编号。程序实现如下:clear alln=input('Please input the number:')A=zeros(1,n)f...
分类:
其他好文 时间:
2014-11-13 12:42:23
阅读次数:
211
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again,解决办法是编辑/etc/yum.repos.d/epel.repo,把基础的恢复,镜像的地址注释掉 #baseurl ...
分类:
Web程序 时间:
2014-11-13 12:26:45
阅读次数:
178
重新打开ECLIPSE运行android项目,或者一段时间为运行ECLIPSE,打开后,发现新建项目都有红叉,以前的项目重新编译也有这问题,上网搜索按下面操作解决了问题工程上有红叉,不知道少了什么,但是工程中却没有任何错误,运行程序报错为: Your project contains error(s...
分类:
移动开发 时间:
2014-11-13 10:31:58
阅读次数:
166
Please refer to :http://www.webopedia.com/TERM/H/HTTP.htmlShort forHyperTextTransferProtocol, HTTP is the underlyingprotocolused by theWorld Wide Web....
分类:
Web程序 时间:
2014-11-13 06:59:15
阅读次数:
200
我觉得做人最重要的是把事情讲清楚,尤其是规则,如果法律条例不清楚,就可以寻租了#include #include #include #include using namespace std;int ensure(int n) { if (n = b) return true; retu...
分类:
其他好文 时间:
2014-11-12 21:07:37
阅读次数:
314
本人blog中中写的datatable版本是1.10及其以上的文章。起之前版本是否使用暂时没有研究过。
直接看错误
DataTables warning: table id=rap-table-list-comm-mem - Cannot reinitialise DataTable. For more information about this error, please see ht...
分类:
其他好文 时间:
2014-11-12 19:46:45
阅读次数:
499
$ gedit price.py
#!/usr/bin/env python
width = input('Please enter width: ')
price_width = 10
item_width = width - price_width
header_format = '%-*s%*s'
format = '%-*s%*.2f'
print '=' * width...
分类:
编程语言 时间:
2014-11-12 16:33:21
阅读次数:
248
发现个USB ID网站,对于做设备管理识别的小伙伴特别有用
http://www.linux-usb.org/usb.ids
附录:
#
# List of USB ID's
#
# Maintained by Stephen J. Gowdy
# If you have any new entries, please submit them via
# http://www.linux-usb.org/usb-ids.html
# or send e...
分类:
其他好文 时间:
2014-11-12 09:22:46
阅读次数:
2109
1.前导程序/对用户输入的整数求和#includeint main(void){ long num; long sum=0L;//把sum初始化为0 int status; printf("please enter an integer to be summed."); ...
分类:
其他好文 时间:
2014-11-11 18:55:25
阅读次数:
155
如果按照下面方式,则无论你输入什么,都会打印12,因为raw_input接受的输入是按照字符串处理的num = raw_input('please enter a num:')if num > 10: print 12else: print -abs(int(num))需要改成下面的写法...
分类:
编程语言 时间:
2014-11-08 18:11:46
阅读次数:
251