上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 73 下一页
摘要: #include <iostream>using namespace std;class USA_bolt{public: USA_bolt(){} ~USA_bolt(){} void insert(){cout<<"insert"<<endl;}};class target{public: target(){} virtual ~target(){} virtual void charu()=0;};class China_outlet_adapter : public target{public: China_outlet_adap 阅读全文
posted @ 2012-06-25 12:18 Dsp Tian 阅读(425) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;class prototype{public: prototype(){cout<<"build prototype"<<endl;} virtual ~prototype(){cout<<"unbuild prototype"<<endl;} virtual prototype *clone()=0;};class subtype : public prototype{public: subtype(){cout&l 阅读全文
posted @ 2012-06-24 21:03 Dsp Tian 阅读(438) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>using namespace std;class buildcomputer{public: buildcomputer(){} virtual ~buildcomputer(){} virtual void buildmouse()=0; virtual void buildmointor()=0; virtual void buildkeyboard()=0; virtual void buildhost()=0;};class winbuildcomputer : public buildcomputer{pub... 阅读全文
posted @ 2012-06-24 20:16 Dsp Tian 阅读(658) 评论(0) 推荐(0) 编辑
摘要: #define win 0#define mac 1#include <iostream>using namespace std;class button{public: button(){} virtual ~button(){} virtual void showbutton()=0;};class winbutton : public button{public: winbutton(){} virtual ~winbutton(){} void showbutton(){cout<<"win button"<<endl;}};cl 阅读全文
posted @ 2012-06-24 16:27 Dsp Tian 阅读(984) 评论(0) 推荐(0) 编辑
摘要: #define win 0#define mac 1#include <iostream>using namespace std;class button{public: button(){} virtual ~button(){} virtual void showbutton()=0;};class winbutton : public button{public: winbutton(){} virtual ~winbutton(){} void showbutton(){cout<<"win button"<<endl;}};cl 阅读全文
posted @ 2012-06-24 16:14 Dsp Tian 阅读(580) 评论(0) 推荐(0) 编辑
摘要: #define win 0#define mac 1#include <iostream>using namespace std;class button{public: button(){} virtual void createbutton()=0;};class macbutton : public button{public: macbutton(){} virtual void createbutton(){cout<<"macbutton"<<endl;}};class winbutton : public button{pu 阅读全文
posted @ 2012-06-24 15:46 Dsp Tian 阅读(609) 评论(0) 推荐(0) 编辑
摘要: from HTMLParser import HTMLParserimport sysclass TitleParser(HTMLParser): def __init__(self): self.title = '' self.readingtitle=0 HTMLParser.__init__(self) def handle_starttag(self, tag, attrs): if tag == 'title': self.readingtitle=1 def handle_data(se... 阅读全文
posted @ 2012-06-14 12:45 Dsp Tian 阅读(2080) 评论(0) 推荐(0) 编辑
摘要: import os,sys, urllib2req=urllib2.Request(sys.argv[1])fd=urllib2.urlopen(req)file=open('123.html','w')while 1: data=fd.read(1024) if not len(data): break #sys.stdout.write(data) file.write(data)file.close() 阅读全文
posted @ 2012-06-13 15:35 Dsp Tian 阅读(626) 评论(0) 推荐(0) 编辑
摘要: import osfile=open("123.txt","r")for line in file.readlines(): print line,file.close()file=open("123.txt","w")file.write("sdfsdfsdf")file.close()file=open("123.txt","a")file.write("erertyerty")file.close()file=open(" 阅读全文
posted @ 2012-06-12 20:44 Dsp Tian 阅读(743) 评论(0) 推荐(0) 编辑
摘要: import mathprint 12*34+78-132/6print (12*(34+78)-132)/6print (86/40)**5print math.fmod(145,23)print math.sin(0.5)print math.cos(0.5)a=1+2c=4print "1+2=%d" %aprint "1+2=%d,%d" %(a,c) 阅读全文
posted @ 2012-06-11 22:00 Dsp Tian 阅读(597) 评论(0) 推荐(0) 编辑
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 73 下一页