#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=1600) cout<<0.00<<endl; else i....
分类:
其他好文 时间:
2014-07-02 18:23:21
阅读次数:
177
#include#includeusing namespace std;int main(){ float x; cin>>x; cout<<setiosflags(ios::fixed)<<setprecision(2); if(x<=15) cout<<4*x/3<<endl; else c.....
分类:
其他好文 时间:
2014-07-02 18:10:27
阅读次数:
200
#include#includeusing namespace std;int main(){ int y,t; float s; cin>>y>>t; cout<<setiosflags(ios::fixed)<<setprecision(2); if(y<=4) if(t<=40) s=3...
分类:
其他好文 时间:
2014-07-02 17:48:01
阅读次数:
235
#!/usr/bin/pythonimportMySQLdbdefnew_mail_mysql(ak):printakconn=MySQLdb.connect(host=‘m3306.sae.sina.com.cn‘,user=‘sae_ol‘,passwd=‘7b149edb22ae7526‘,db=‘sae‘,port=3306)cur=conn.cursor()sql="selectnamefromappwhereaccesskey=‘%s‘"%akcur.execute(sql)app_name=cu..
分类:
数据库 时间:
2014-07-02 16:14:12
阅读次数:
285
用户分类:管理员:root用户,UID为0系统用户:UID范围1-499一般用户:UID范围:500-60000组分类:基本组或私有组:创建用户时,如果没有为其指定所属的组,则系统默认会创建一个与用户名同名的组。附属组:默认组以外的其他组。当一个用户执行程序的时候,系统会判断当前用户..
分类:
其他好文 时间:
2014-07-02 11:52:41
阅读次数:
239
sudo apt-get install erlang-manpages然后就可以用如下命令查看模块的帮助文件了:erl -man lists
分类:
其他好文 时间:
2014-07-02 10:04:25
阅读次数:
310
man是自定义的对象,使用var tim = JSON.stringify(man); var newman=JSON.parse(tim)后newman的类型是“object”并不是一个Man,怎么才能变回一个Man呢?
function Man() {
this._type = "man";
this.name="";
this.run = function () {...
分类:
编程语言 时间:
2014-07-02 09:51:34
阅读次数:
187
题目
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" i...
分类:
其他好文 时间:
2014-07-02 09:49:04
阅读次数:
271
prototype的经典使用场景就是为对象增加属性和方法,如给自定义的Man对象增加个姓名属性和语言方法:
function man() {
this.age = "22";
}
var tom = new man();
man.prototype.name = "tom";
man.prototype.say = function () {
...
分类:
编程语言 时间:
2014-07-02 08:50:51
阅读次数:
261