请帮我测试一下这个perl文件 [问题点数:100分,结帖人dyhml]

Bbs1
本版专家分:0
结帖率 100%
Bbs7
本版专家分:12541
Blank
红花 2006年3月 其他开发语言大版内专家分月排行榜第一
2006年2月 其他开发语言大版内专家分月排行榜第一
2005年4月 其他开发语言大版内专家分月排行榜第一
Blank
蓝花 2006年4月 其他开发语言大版内专家分月排行榜第三
2004年12月 其他开发语言大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs7
本版专家分:12541
Blank
红花 2006年3月 其他开发语言大版内专家分月排行榜第一
2006年2月 其他开发语言大版内专家分月排行榜第一
2005年4月 其他开发语言大版内专家分月排行榜第一
Blank
蓝花 2006年4月 其他开发语言大版内专家分月排行榜第三
2004年12月 其他开发语言大版内专家分月排行榜第三
谁能帮我测试一下这个链表
#includernrnusing namespace std;rnrn//enum boolfalse,true;rnrntemplaternclass LinearListrnrnpublic:rn LinearList();rn ~LinearList();rn virtual int Size()const=0;rn virtual int Length()const=0;rn virtual int Search(T& x)const=0;rn virtual int Locate(int i)const=0;rn virtual T* getData(int i)const=0;rn virtual void setData(int i,T& x)=0;rn virtual bool Insert(int i,T& x)=0;rn virtual bool Remove(int i,T& x)=0;rn virtual bool IsEmpty()const=0;rn virtual bool Isfull()const=0;rn virtual void Sort()=0;rn virtual void input()=0;rn virtual void output()=0;rn virtual LinearListoperator=(LinearList& L)=0;rn;rntemplaternstruct LinkNodernrn T data;rn LinkNode * link;rn LinkNode(LinkNode* ptr=NULL) link=ptr;rn LinkNode(const T& item,LinkNode* ptr=NULL) data=item,link=ptr;rn;rnrntemplaternclass List:public LinearListrnrn public:rn List()first=new LinkNode; rn List(const T& x) frist=new LinkNode(x);rn List(List& L); rn ~List() makeEmpty();rn void makeEmpty(); //将链表置为空表rn int Length()const; //计算链表的长度rn LinkNode* getHead()const return first; //返回附加头结点地址rn void setHead(LinkNode* p) first=p; //设置附加头结点地址rn LinkNode* Serch(T x); //搜索含数据x的元素rn LinkNode* Locate(int i); //搜素第i个元素的地址rn T* getData(int i); //取出第i个元素的值rn void setData(int i,T& x); //用x修改第i个元素的值rn bool Intert(int i,T& x); //在第i个元素后插入xrn bool Remove(int i,T& x); //删除第i个元素,x返回该元素的值rn bool IsEmpty()const //判断表空否?空则返回truern rn return first->link==NULL?true:false;rn rn bool Isfull()const return false; //判断表满否?不满则返回falsern void Sort(); //排序rn void input(); //输入rn void output(); //输出rn List& operator=(List& L); //重载函数:赋值rnprotected:rn LinkNode *first; // 链表的头指针rn;rntemplaternList::List(List& Lrnrn T value;rn LinkNode* srcptr=L.getHead();rn LinkNode* destptr=first=new LinkNode;rn while(srcptr->link!=NULL)rn rn value=srcptr->link->data;rn destptr=link= new LinkNode(value);rn destptr=destptr->link;rn srcptr=srcptr->link;rn rndestptr->link=NULL;rn;rnrntemplaternvoid List::makeEmpty() //将链表置为空表rnrn LinkNode* p;rn if(first!=NULL)rn rn p=first->link;rn first->link=p->link;rn delete p;rn rnrnrntemplaternint List::Length()const //计算链表的长度rnrn LinkNode* p=first->link;rn int count;rn while(p!=NULL)rn rn p=p->link;rn count++;rn rn return count;rnrnrntemplaternLinkNode* List::Serch(T x) //搜索含数据x的元素rnrnLinkNode*p=first->link;rnwhile(p!=NULL)rnrn if(p->data==x)rn break;rn else p=p->link;rnrnreturn p;rnrnrntemplaternLinkNode* List::Locate(int i) //搜素第i个元素的地址rnrn if(ilink;int k=0;rn while(p!=NULL&&klink;rn k++rn rn return p;rnrnrntemplate rnT* List::getData(int i) //取出第i个元素的值rnrn if(idata;rnrnrntemplaternvoid List::setData(int i,T& x) //用x修改第i个元素的值rnrn if(idata=x;rnrnrntemplaternbool List::Insert(int i,T& x) //在第i个元素后插入xrnrn if(ilink=s;rn return true;rnrnrntemplaternbool List::Remove(int i,T& x); //删除第i个元素,x返回该元素的值rnrn LinkNode* p=Locate(i-1);rn if(p==NULL||p=first)rn return false;rn LinkNode* s;rn s=p->link;rn p->link=s->link;rn x=s->data;rn delete s;rn return true;rnrnrntemplaternvoid List::Sort(); //排序rnrn LinkNode* p=first;rn if(p==NULL||p=first)rn cerrlink;rn while(p!=NULL)rn rn cin>>p->data;rn coutlink;rn while(p!=NULL)rn rn coutlink!=NULL)rn rn value=p->link->data;rn s->link=new LinkNode(value);rn s=s->link;rn p=p->link;rn rn s->link==NULL;rn return *this;rn rnrnrnvoid main()rnrn rn
可以帮我测试一下这个控件吗
我自己做了一个用户自定义控件,用来封装dsoframer<em>这个</em>控件的,但是在<em>测试</em>的时候就报错rn未处理的“System.ArgumentException”类型的异常出现在 UserControlTestContainer.exe 中rn其他信息: 未能找到程序集“D:\C#%E7%BB%83%E4%B9%A0%5CWinDsoframer%5CWinDsoframer%5Cobj%5CDebug%5CWinDsoframer.dll”。请确保路径正确。rnrn引用程序集那些都没有问题的
谁来帮我测试一下这个程序?
我写了一个将阿拉伯数字转换成大写中文的程序,在我的机器上运行没问题,可上传到ZeroJudge上后就会出错,麻烦哪位<em>帮我</em><em>测试</em><em>一下</em><em>这个</em>数字1023004看看有没有错,我的QQ147511682,以下是源程序:rn[code=C/C++]#include rn#include rnusing namespace std;rnrnstring convert(char number);rnint main()rnrn string x;rn int count = 0;rn string output;rn while(cin >> x)rn rn count = x.length();rn for(int i = 0;i < x.length();i++)rn rn switch(count)rn rn //十亿位rn case 10:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "拾";rn rn break;rn //亿位rn case 9:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "億";rn rn elsern rn output += "億";rn rn break;rn //千万位rn case 8:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "仟";rn rn else if(x[i] == '0' && rn (x[i + 1] != '0' || x[i + 2] != '0' rn || x[i + 3] != '0' || x[i + 4] != '0' || x[i + 5] != '0' rn || x[i + 6] != '0'))rn rn output += "零";rn rn break;rn //百万位rn case 7:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "佰";rn rn else if(x[i] == '0' && rn (x[i + 1] != '0' || x[i + 2] != '0' rn || x[i + 3] != '0' || x[i + 4] != '0' || x[i + 5] != '0'))rn rn output += "零";rn rn break;rn //十万位rn case 6:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "拾";rn rn else if(x[i] == '0' && (x[i + 1] != '0' || x[i + 2] != '0' ||rn x[i + 3] != '0' || x[i + 4] != '0'))rn rn output += "零";rn rn break;rn //万位rn case 5:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "萬";rn rn elsern rn output += "萬";rn rn break;rn //千位rn case 4:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "仟";rn rn else if(x[i] == '0' && (x[i + 1] != '0' || x[i + 2] != '0' rn || x[i + 3] != '0'))rn rn output += "零";rn rn break;rn //百位rn case 3:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "佰";rn rn else if(x[i] == '0' && (x[i + 1] != '0' || x[i + 2] != '0'))rn rn output += "零";rn rn break;rn //十位rn case 2:rn if(x[i] != '0')rn rn output += convert(x[i]);rn output += "拾";rn rn else if(x[i] == '0' && x[i + 1] != '0')rn rn output += "零";rn rn break;rn //个位rn case 1:rn if(x[i] != '0')rn rn output += convert(x[i]);rn rn else if(x.length() == 1)rn rn output += convert(x[i]);rn rn break;rn rn count--;rn rn int j;rn for(int k = 0;k < output.length();k++)rn rn if((j = output.find("零零零")) != -1) output.erase(j,4);rn if((j = output.find("零零")) != -1) output.erase(j,2);rn if((j = output.find("億萬")) != -1) output.erase(j + 2,2);rn if((j = output.find("零拾")) != -1) output.erase(j,2);rn if((j = output.find("零萬")) != -1) output.erase(j,2);rn if((j = output.find("零仟")) != -1) output.erase(j,2);rn if((j = output.find("零佰")) != -1) output.erase(j,2);rn if((j = output.find("零億")) != -1) output.erase(j,2);rn rn cout << output << endl;rn output = "";rn rn return 0;rnrnrnstring convert(char number)rnrn string str;rn switch(number)rn rn case '0':rn str = "零";rn break;rn case '1':rn str = "壹";rn break;rn case '2':rn str = "貳";rn break;rn case '3':rn str = "參";rn break;rn case '4':rn str = "肆";rn break;rn case '5':rn str = "伍";rn break;rn case '6':rn str = "陸";rn break;rn case '7':rn str = "柒";rn break;rn case '8':rn str = "捌";rn break;rn case '9':rn str = "玖";rn break;rn default:rn cout << "ERROR!\n";rn exit(1);rn rn return str;rnrn[/code]
请大家帮我测试一下这个网页(100分呈上)!!
http://10.144.55.33/new_page_1.htmrnrn请写出看到的内容,谢谢!!!
请大家帮我测试一下这个程序有没有问题~~~~
#include rn#include rn#include rnusing namespace std;rn#pragma comment(lib, "Wininet.lib")rnrnvoid Download(char url[]);rnrnint main(int argc, char *argv[])rnrn Download("http://www.baidu.com/");rn getchar();rn return 0;rnrnrnrnvoid Download(char url[])rnrn char buffer[100000];//下载<em>文件</em>的缓冲区rn DWORD bytes_read;//下载的字节数rn rn //打开一个internet连接rn HINTERNET Internet=InternetOpen("HTTP Downloader",INTERNET_OPEN_TYPE_PRECONFIG,NULL, NULL, NULL);rn rn if(!Internet)rn throw "InternetOpen error!";rn rn //打开一个http url地址rn HINTERNET file_handle=InternetOpenUrl(Internet,url,NULL,0,INTERNET_FLAG_RELOAD,0);rn rn if(!file_handle)rn rn cout<
谁能帮我测试一下这个注册用户的文件
rnrnrn --新用户注册 rnrn rn rn rn rn rn 注册条约rn rn rn rn 作为章丘优惠信息网的用户,您有责任:rn ◆在注册时,提供真实的、准确的、最新的和完整的个人资料,并保持并及时更新上述资料,以保证其真实性、准确性、最新性和完整性。章丘优惠信息网不能也不会对因您丢失了密码而引起的任何损失或损害承担责任。rnrn ◆对于您通过章丘优惠信息网张贴、发送或以其他任何形式传输的任何内容,章丘优惠信息网不负担负责。章丘优惠信息网并不控制通过本服务而张贴的内容,因此,并不保证此等内容的准确性、完整性和质量。无论任何情况下,章丘优惠信息网都不对任何内容以任何形式负责,包括但不限于,任何内容中的错误或疏忽,或任何由于使用所张贴、发送、或其他通过本服务的传输的内容而引起的损失或损害。rnrn ◆不得张贴、用电子邮件或其他方法传送违法、有害、威胁的、辱骂性的、骚扰性的、侵权性的侮辱性的、粗俗的、淫秽的、诽谤性的、侵犯他人隐私的、仇恨的、或在种族、民族上或其他方面不能接受的,以及其他您无权传送的内容。 rn不得张贴、发送或以其他形式传输任何未经请求或授权的广告、推广材料,“垃圾邮件”、或任何其他形式的此类推销。 rn◆不得针对本服务、与本服务连接的服务器或网络制造干扰、混乱,或违反连接本服务的网络的任何要求、程序、政策或规则。并遵守适用的中国的法律法规。您对本服务的使用的风险将由您独自承担。本服务按照“现状”和“现有”的基础而提供。章丘优惠信息网明示不提供任何明示或默示的担保,包括但不限于,商业适用性的默示担保、特定目的之适用性及未侵害他人权利。 rn rn rn rn rn rnrn rn rn rnrnrn rn rn 请填写用户信息rn rn rn rn rn rn rn rn 请填写用户信息(请详细填写每一项资料)rn rn rn rn rn rn 用 户 名:rn rn 用户名长度不能小于4rn rn rn 密  码:rn rn 长度必须大于6个字符rn rn rn 确认密码: rn rn rn rn rn 真实姓名: rn rn rn rn rn 性  别: rn rn 请选择性别rn 先生rn 女士rn 保密rn rn rn rn 电话号码: rn rn 请填写正确的号码,以便有急事联系rn rn rn 电子信箱: rn rn 请您务必填写正确的E-mail地址,便于我们与您联系rn rn rn 腾讯 Q Q: rn rn 网上联系rn rn rn 密码提示问题: rn rn rn rn 密码答案: rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rn rnrn0 thenrncall usererr()rnrs.closernset rs = nothingrnelsernrs.closernrnrs.open "select webimg13 from [config]",conn,1,1rnstrgift=Clng(rs("webimg13"))rnrs.closernrnrnset rs=server.CreateObject("adodb.recordset")rnrnrs.open "select * from [admin]",conn,1,3rnrs.addnewrnrs("admin")=usernamernrnrs("UserPassword")=passwdrnrs("rank")=3rnrs("UserQuestion")=questionrnrs("UserAnswer")=answerrnrs("realname")=fullnamernrs("UserEmail")=emailrnrnrs("UserSex")=sexrnrs("Userqq")=qqrnrs("UserMobile")=telrnrnrnrs("UserLastIP")=iprnrs("UserLogins")=1rnrs("LastLogin")=now()rnrnrnrs("adddate")=now()rnrs.updaternid=rs("Id")rnrnrs.closernset rs=nothingrnrnrnrn %>rn >rn >rn rn >用户注册成功 rn恭喜,您已注册成为[]正式用户,请进行下一步操作: rn· rn·rn·返回首页rnrnrn
帮我看看这个文件
这是一个考勤机配置<em>文件</em>*.cfg,是否里面有关于序列号的修改项,请帮忙rnrnFirmwareLength=1836rnFirmwareCheckSum=47271rn[FirmwareData]rnData0=1B550800F80BBF0365E2A6DD691CDBE93607F0581A8621688C5A75D7DBC5032213FC3A968D4B87A2A11A5B855043154BC04A1ADEAEFED8A68853A296EAA2D150727B9266CDB010601D6C3BAD88B19A7BEEB973CE2475260C9296A5B3E7D47F5FB2E03C1FDEF7793F45C4AC4995595B1886E9EA102EA4415F081C0643E2139783051DB97384C1C30C3C0D707D3842DF0091833F1A4F22AB7A04FA10A42CFC520DFD193182188040644E1DA6339F17EEFFA87BAAF0BFB3F597A6364C6D1742FC1AF542AC7B41A9EB50D50E5BC3890050AF57BC1EE8907568A7BBE4A89263D7A9C3AAC10E50AC855AFF2A88F772035C8FBBBA37A89D8179E159D1FBB6FAD17033A90B6834A96558F36C0B8A0FF029161B365DE3E9C98D396E05A4D12B772F1090E6F1AF55922357522D11395E88F39AAC411BDB9511A78EFE1CB200A9A3E651C24AD2CFECBA019AC7B545BA21ED94D833583CD1ECCA63FEE85AD5B0722862998231142F330E95542C6986B731E6ABCD979F1F5EFB37B26CDEAA069C7E9733C8CC7C536069DB71DBF89D24F7CACDA43BB797859A409B719303A7F51496E5DD1E25CD3058178AF426E74DBC8501EA7B058EB4BFB341E618926D8D8F924FF2DED95133DC21C2BD7D605DAD3D1C353E5119BBBB258804E85A2E531967BF79D8C235FC9E908D2ADB73C81E93572BF8F8B62B1F4A6165E61D09BB6DF085854823FCB171C8DC772F6B5194F12E298CB9BEBA75B536BEC4369682E0B60DBEA47931772A8F85610F141BF3D2BD3E4D50A6A4515AF17EEE5C6DC93E657F51D66D02EAC325942C49603B5C206A2B117A98307554395AF1C4127679913C969B34E3EBF3918511E15F2FC36F5F74F0E06061CCB4AC9E8B5913B705711D82A1C91ABF78D8D7EDC7F537E1733DB1D598CA72C01C79DC2187A67DD3D25F414B8E747D8DB8ABA50AD8D9EFECB720316DB1769F3A60FC9650DB66964FC2FE45B3C6A0F839E95FCEF2E158CAF5C859B6891FACE6A2EC35C4D255CBA03E9AE4321E410936D4C78095686066039F676FA36899E000B0CAA90B54EB09F585BD601C417DB9602145C74A36A2B6B931772BE3BE708DDFF4FCEBF5C265A8FC94F4539AECF37C1BE1988D147FA2D9FC66B85D27850E03131C3F730234C7F3E8483A57DA3CB0500D18F3CB336C0C3679C9E41A159852AF8A974A34A41EAF0E6BB8CB9F217434EC05991C3DD4E3F396F9240FCDFE24BA9A9D02596C15A1CE13596E3CDF20A65C6A58058A709640E59B82D3E62A999855AADA214F8EE2EA2638B7965428CDDBA5B9A0D2FC3862E9FA79D82FA183E4C9A34B625837656560A2167BDB2A9F2CE93F4A274B74E3EFC502AD58DDDCE26E71C38EBAA1D6C16CB3868210CC1B818207F95E60AC31DED1D3DA49801F1DC3846AD72BrnData1=3ABCEFCB5C7F8ED197B9D45060ECD06F62020670D1C26597FA9912FF6312B5AD0C8F565C43A699CBA03841E9FD8D674E9EEE86CFD854DDC58738B3627C99625D2DE3DD561FFEB49864E3B00D72CD05E5C2D5960D5A19469920C0F88EA6831504E713DF16510A833ADF8E9F9F4C1F6FA66263F17DE359CA984983D1E2CFE8412953D558A98C0D9B7E185DDC59074FCB6B4BA390B69880F8C815E5E9CF71FD34680542DF1E6478075237F2C920C138ABDFA6B32A8BE7B5D2B4A1053EE4B6F35A6A83B7429079D819A9CB8DBBA466C6699DC5323426A99833A264F01FBD189E49917149C42726290E2E8CACB3AD9725442B4DBA430ADFA7993EC41F6494C98E36DA691B777E448FCD3EF209188592B20452DC3E571FA1F947EFE9443F25FF32ABA7A6C10CE7751E9F3B06D1A858C095A615D2C68191787EF7D0165A63C2721CE1E44E57D3204527D7F97BC02581933440E739A33DA2B96C5FAD59140CA14F8970F1C7146D14508A5C096F0627E816E10BD827A5C4E090B28E4B559825B4EC155DA38646906192DAAC744843C0C513704DEC7E0575039BEBB231A497428150871CD3AAD858D6ADD4EFAC9119EBDF9DBFACA2035C0D1A1308A62A9371DD5C373457583A52ACABCD09226D5A03263792C2E61BA12ADBFEA1F83D725FDCE817CF8EE8B51C7C11DD45C557DAA206C69413C2DC9C8E9EDE6EB4C16AE77A474A32072763B0EE74B02CA09C6B3E07FB2AFF0951C7A57A4E090A2C4869BEE659CDC26A695FABE4313DFFFDC23777CC3FAA78B658E9B45417523382E4BD47FDD365AAE40A618B3832BD115F0C05C10126CABB0831207B15ED7D43786F79F1DD384BB557D1DC7BE92B91F3FD539D29C3B8DF1492D5AC2F61F692870A18A934A45559797FF9D52EF4CCE6BE05F9BCF2956F1CCBCC802EA6859BA0F82985B4F63B49699B4FDCDFA18CCDAF7432FD7DF2FEFDFDD8B9C677BEF04AFCBD9F10974491ACF8C19911FD3C06D5A68E3E141EA435D71918D14B5086CF1108481574453C645C67E825175F8293092620F0CBDDF1EFF8A00FCB45B4F3FC2F3704CAB8BF8517DE3F22748378FBC6270FF448196144300605FFAC0043850662E8D3B7EF8E1B74D7A8E8AAF90D6B04000000F80BBF0365E24B0A002800002C07000000020A31F001900D61AA4B0A00280000rn
请大家帮忙帮我测试一下速度?
http://huipu.91icp.com/index.asprnrn请大家帮忙写<em>一下</em>,rn 1.地点rn 2.宽带 (是网通还是电信)有多大rn 3.页面打开时间rnrnrn在<em>这个</em>页面的最下端,和IE的状态栏各个页面打开时间,请大家<em>帮我</em>写<em>一下</em>.
帮我的服务器速度测试一下速度
大家好,我公司现新添一WEB服务器rn请大家帮忙<em>测试</em><em>一下</em>速度好吗?IP:218.25.53.69rn另外,关于服务器安全与性能分析等方面,也请大家给我点建议~rn谢谢!rn
帮我测试一下。四则运算式计算器
第一次用C++写稍微大点的程序。程序比较完整。其实是个栈的练习。还没看书上讲异常的部分,所以有些地方处理的不好。rnrn请<em>帮我</em><em>测试</em><em>一下</em>,有没有出错的地方,或者格式不正确,或者比较乱,哪里有需要改进的地方,语法不标准。或者谁有更好的办法。只要是可以改良的,任何都可以。谢谢了rnrn[code=C/C++]rn//calculator.cpprnrn#include "stack"rnusing namespace stack;rn#include rnusing namespace std;rn#include rnrnint work (char*);rnint digit (int);rnint priority (char a, char b);rnint compute (int a ,int op ,int b);rnrnint main()rnrn char exp[Max_Size];rn int n = 0;rn cout << "Enter an expression." << endl << "Enter to quit." << endl;rn exp[0] = cin.get();rn while(exp[n] != '\n' && n < Max_Size)rn rn if (exp[n] == 'q' || exp[n] == 'Q') return 0;rn if (exp[n] == 46 || exp[n] == 44 || exp[n] < 40 || exp[n] > 57)rn rn cout << "You've entered a wrong expression." << endl;rn n = 0;rn continue;rn rn exp[++n] = cin.get();rn rn exp[n] = '\0';rn cout << work(exp);rn return 0;rnrnrnint work (char* exp2)rnrn Stack OP;rn Stack NUM;rn int n = 0, m = 0, o = 0, size = 0;rn char* exp;rnrn while (exp2[n]) rn rn if (exp2[n] == ' ')rn rn n++;rn continue;rn rn if (m == 0 && exp2[n] == '-')rn rn int data, data2;rn data = atoi(exp2);rn NUM.push (data);rn data2 = digit(data);rn n += data2;rn o = n;rn continue;rn rn rn if (exp2[m] == '(' && exp2[m+1] == '-')rn rn size++;rn rn size++;rn n++;rn m++;rn rnrn exp = new char[size + 2];rn exp[size + 1] = '\0';rn exp[size] = '#';rn m = n = 0;rnrn while (exp2[o])rn rn if (exp2[o] == ' ')rn o++;rn continue;rn rn if (exp2[o] == '(' && exp2[o+1] == '-')rn rn exp[m] = '(';rn exp[m + 1] = '0';rn exp[m + 2] = '-';rn m += 3;rn o += 2;rn continue;rn rn exp[m] = exp2[o];rn m++;rn o++;rn rn m = 0;rn int data ,data2;rn data = exp[0];rn while (data != '#' || OP.gettop() != '#')rn rn if (data == '+' || data == '-' || data == '*' || data == '/' ||rn data == '(' || data == ')' || data == '#')rn rn dorn rn data2 = priority (OP.gettop() ,data);rn switch (data2)rn rn case 0: OP.push (data); //rn a = NUM.pop ();rn b = NUM.pop ();rn NUM.push (compute (a ,OP.pop() ,b));rn break;rn rn while (data2 == 2);rn rn elsern rn data = atoi (exp + m);rn NUM.push (data);rn m = m + digit(data) - 1;rn rn m++;rn if (data != '#') data = exp[m];rn rn delete[] exp;rn return NUM.pop();rnrnrnrnint digit (int n)rnrn int m;rn if (n < 0)rn rn m = 2;rn n = -n / 10;rn rn elsern rn m = 1;rn n = n /10;rn rn while (n >= 1)rn rn m++;rn n /= 10;rn rn return m;rnrnrnint priority (char a, char b)rnrn if (a == '+' || a == '-')rn rn if (b == '+' || b == '-' || b == ')' || b == '#') rn return 2;rn elsern return 0;rn rn else if (a == '*' || a == '/')rn return b == '('? 0 : 2;rn else if (a == '(')rn return b == ')' || a == '#'? 1 : 0;rn else if (a == ')') rn return 2;rn else if (a == '#')rn return b == '#'? 1 : 0;rn else rn return 0;rnrnint compute (int a ,int op ,int b)rnrn switch (op)rn rn case '+': return (b + a);rn case '-': return (b - a);rn case '*': return (b * a);rn case '/': return (b / a);rn rnrn[/code]rnrn[code=C/C++]rn//stackrnrnnamespace stackrnrn const int Max_Size = 20;rn class Stackrn rn private:rn int* data;rn int top;rn int max;rn public:rn void push (int);rn int pop();rn int gettop();rn Stack (int size = Max_Size);rn ~Stack ();rn ;rnrn[/code]rnrn[code=C/C++]rn//Stack.cpprnrn#include "stack"rnusing namespace stack;rnrnStack::Stack (int size)rnrn data = new int[size];rn data[0] = 0;rn top = 0;rn max = size;rnrnrnStack::~Stack()rnrn delete[] data;rnrnrnvoid Stack::push (int x)rnrn if (top < 1)rn return -1;rn return data[--top];rnrnrnint Stack::gettop ()rnrn return data[top - 1];rnrn[/code]
帮我测试一下
看看速度怎么样?rn谢谢拉rnhttp://51.dhcn.net
大家帮我测试一下
我写了一个关于可以将sql server 2000数据库存储过程的整理成word的工具。请大家指点<em>一下</em>,要的留下E-mail!rn最好大家也写<em>一下</em>用户报告给我,谢谢!!
帮我简化一下这个程序 (perl的初学者)酷爱perl 100分
<em>这个</em>程序用来把一个大<em>文件</em>分成10个小<em>文件</em>,大<em>文件</em>的格式如后,现在我写的<em>这个</em>程序那么多的if,elsif,我想把它给简化<em>一下</em>,请帮忙啊.我是初学者.rnmy $i=0; #count how many seqrnmy $n=2; #set how many seq in one file .rnmy $j=0; #count how many linesrn rn#判段输入命令格式rnif (-e $ARGV[0])rn open(INFILE ,"$ARGV[0]");rnelsern print " $! Useage : \n <em>perl</em> trim.pl filename!";rn exit;rnrnrn#得到当前格式化时间rnsub sub_format_datetimernrn local($sec, $min, $hour, $day, $mon, $year) = @_[0..5]; rn sprintf("%4d-%02d-%02d %02d:%02d:%02d", $year+1900, $mon+1, $day, $hour, $min, $sec);rn;rnrn#当前时间rn$Time_Start = sub_format_datetime(localtime(time())); rnprint "Now = $Time_Start\n";rnprint "\n";rnrn#计算行数和seq 的条数,并按每$n个seq放一个<em>文件</em>rnsub count_line_seqrn rn while($line=)rn rn if($line=~m/^>.*/)rn $i++;rn rn $j++;rn if($iaesfeawfdsafdsrngfdaaatttrnfdsagfdrnfggsgfsgrn>bfdsgfhgfjytrhtrrndfsafdhgfrehgfsrnfdsahgrfesrn>cgdsfgfhfrndfsgfdshgfdrn>retgfggfrngffggfrn>rtytrhthhtrngfhhdrn>hgfdhgfrnhggfjrn>dhgfjtrrnhgfdjgfjtfhrn>hgfdjyrnhgjuyyjrn>ghjkoipoppoopporngfghmjnxreytrn>hjtgrkjuoiuyrnhfuwertbvfvjytrn>hjgtrkuoyoiusrnfdberwgbfdrn>htgrdjytrrnhgfjhgjkrnrn
请高手帮我编译一下这个文件,50分相谢!!
我用jBuilder4居然不能编译<em>这个</em>java<em>文件</em>,求高手指教........rn/*源程序清单5-22*/rnimport java.net.*;rnimport java.awt.*;rnimport java.awt.event.*;rnimport java.applet.*;rnimport javax.swing.*;rnimport com.borland.jbcl.layout.*;rnimport java.io.*;rnimport java.util.*;rnpublic class TalkApplet extends JApplet implements Runnablernrn boolean isStandalone = false;rn Label userInfo = new Label();rn TextField userText = new TextField();rn Label label1 = new Label();rn TextArea messageText = new TextArea();rn Button sendButton = new Button();rn java.awt.List userList = new java.awt.List();rnrn URL chatURL;rn URLConnection connect;rn //用于标识用户是否登录rn boolean loggedin=false;rn String username;rn Thread pollThread=null;rn PaneLayout paneLayout1 = new PaneLayout();rnrnrn /**Get a parameter value*/rn public String getParameter(String key, String def)rn rn return isStandalone ? System.getProperty(key, def) :rn (getParameter(key) != null ? getParameter(key) : def);rn rn /**Construct the applet*/rn public TalkApplet()rn rn rn /**Initialize the applet*/rn public void init()rn rn tryrn rn jbInit();rn rn catch(Exception e)rn rn e.printStackTrace();rn rn rn /**Component initialization*/rn private void jbInit() throws Exception rn if(pollThread!=null)rn return;rn userInfo.setText("请输入用户名(请不要超过10个字符):");rn this.setSize(new Dimension(400,300));rn this.getContentPane().setLayout(paneLayout1);rn label1.setText("聊天内容:");rn messageText.setEditable(false);rn sendButton.setLabel("发送");rn sendButton.addActionListener(new java.awt.event.ActionListener() rn public void actionPerformed(ActionEvent e) rn sendButton_actionPerformed(e);rn rn );rn userText.addActionListener(new java.awt.event.ActionListener() rn public void actionPerformed(ActionEvent e) rn userText_actionPerformed(e);rn rn );rn this.getContentPane().add(userInfo, new PaneConstraints("userInfo", "userInfo", PaneConstraints.ROOT, 1.0f));rn this.getContentPane().add(userText, new PaneConstraints("userText", "userInfo", PaneConstraints.BOTTOM, 0.9166667f));rn this.getContentPane().add(messageText, new PaneConstraints("messageText", "userText", PaneConstraints.BOTTOM, 0.90181816f));rn this.getContentPane().add(userList, new PaneConstraints("userList", "messageText", PaneConstraints.TOP, 0.24193548f));rn this.getContentPane().add(sendButton, new PaneConstraints("sendButton", "userList", PaneConstraints.LEFT, 0.6125f));rn this.getContentPane().add(label1, new PaneConstraints("label1", "sendButton", PaneConstraints.BOTTOM, 0.6f));rn chatURL=getCodeBase();rn int currPriority=Thread.currentThread().getPriority();rn int newPriority=currPriority==Thread.MIN_PRIORITY?Thread.MIN_PRIORITY:currPriority-1;rn pollThread=new Thread(this,"talkPoll");rn pollThread.setDaemon(true);rn pollThread.setPriority(newPriority);rn pollThread.start();rn rnrn /**Get Applet information*/rn public String getAppletInfo()rn rn return "Applet Information";rn rn /**Get parameter info*/rn public String[][] getParameterInfo()rn rn return null;rn rnrn public synchronized void start()rn rn if(!isLoggedin()&&username!=null)rn login();rn if(pollThread!=null&&pollThread.isAlive())rn rn pollThread.resume();rn rn elsern rn pollThread=new Thread(this,"talkPoll");rn pollThread.setDaemon(true);rn pollThread.start();rn rn rn //当Applet在浏览器中不可见时,就挂起线程pollthread,并退出"聊天室"rn public synchronized void stop()rn rn if (pollThread.isAlive())rn rn pollThread.suspend();rn rn logout();rn rnrn public synchronized void destroy()rn rn if (pollThread != null && pollThread.isAlive())rn rn pollThread.stop();rn pollThread = null;rn rn logout();rn rnrn //每隔3秒从服务器中取别的用户输入的信息和加入聊天室的用户rn public void run()rn rn while (!Thread.interrupted())rn rn //若用户已经登陆,则不时的取回别的用户输入的信息rn //和机如的的用户名rn if (isLoggedin())rn rn pollList();rn poll();rn rn //若没有用户登陆,则取回正在聊天室中的用户rn elsern rn pollList();rn rn tryrn rn //睡眠3秒钟rn Thread.sleep(1000*3);rn rn catch (InterruptedException e)rn rn rn rn rnrn //登陆到服务器rn private void login()rn rn if (username ==null) return;rn String queryString = "chatservlet?mode=login&user="+URLEncoder.encode(username);rn //与服务器通信rn tryrn rn connect = (new URL(chatURL,queryString)).openConnection();rn connect.setDefaultUseCaches(false);rn connect.setUseCaches(false);rn connect.setDoInput(true);rn connect.setDoOutput(false);rn connect.connect();rn DataInputStream in = new DataInputStream(connect.getInputStream());rn String response = in.readLine();rn if (response.startsWith("+"))rn rn //标识用户已经登陆rn setLoggedin(true);rn showStatus("登录用户名:" + username);rn //提示用户输入信息rn userInfo.setText("请输入你需要发送的信息:");rn repaint();rn rn elsern rn showStatus("Error logging in " + response);rn System.err.println("Error logging in " + response);rn rn rn catch (MalformedURLException e2)rn rn System.err.println("MalformedURLException logging in!");rn e2.printStackTrace(System.err);rn showStatus("Error logging in!");rn rn catch (IOException e1)rn rn System.err.println("IOException logging in!");rn e1.printStackTrace(System.err);rn showStatus("Error logging in!");rn rn rnrn //退出聊天室rn private void logout()rn rn if (!isLoggedin() || username ==null)rn rn return;rn rn String queryString = "chatservlet?mode=logout&username=" +URLEncoder.encode(username);rn //与服务器通信rn tryrn rn connect = (new URL(chatURL,queryString)).openConnection();rn connect.setUseCaches(false);rn connect.setDoInput(true);rn connect.setDoOutput(false);rn connect.connect();rn DataInputStream in = new DataInputStream(connect.getInputStream());rn String response = in.readLine();rn if (response.startsWith("+"))rn rn //标识用户已经退出聊天室rn setLoggedin(false);rn showStatus(username + "离开聊天室!");rn rn elsern rn showStatus("Error logging out" + response);rn System.err.println("Error logging out" + response);rn rn rn catch (MalformedURLException e2)rn rn System.err.println("MalformedURLException logging out!");rn e2.printStackTrace(System.err);rn showStatus("Error logging out!");rn rn catch (IOException e1)rn rn System.err.println("IOException logging out!");rn e1.printStackTrace(System.err);rn showStatus("Error logging out!");rn rn rnrn //发送用户输入的信息rn private void send()rn rn String message = userText.getText();rn //用户输入空字符串不发送rn if (message.equals(""))rn rn return;rn rn //清除用户在Applet中输入的内容rn userText.setText("");rn showStatus("发送信息!");rn String queryString = "chatservlet?mode=send&user="+URLEncoder.encode(username);rn queryString = queryString + "&message="+URLEncoder.encode(message);rn tryrn rn connect = (new URL(chatURL,queryString)).openConnection();rn connect.setUseCaches(false);rn connect.setDoInput(true);rn connect.setDoOutput(false);rn connect.connect();rn DataInputStream in = new DataInputStream(connect.getInputStream());rn String response = in.readLine();rn if (response.startsWith("+"))rn rn showStatus("信息发送出去了");rn rn elsern rn showStatus("发送信息错误 " + response);rn System.err.println("Error sending message " + response);rn rn rn catch (MalformedURLException e2)rn rn System.err.println("MalformedURLException logging in!");rn e2.printStackTrace(System.err);rn showStatus("Error logging in!");rn rn catch (IOException e1)rn rn System.err.println("IOException logging in!");rn e1.printStackTrace(System.err);rn showStatus("Error logging in!");rn rn rnrn //返回所有用户输入的信息rn private void poll()rn rn String queryString = "chatservlet?mode=poll&user=" +URLEncoder.encode(username);rn tryrn rn DataInputStream in = new DataInputStream(rn new URL(chatURL,queryString).openStream());rn String nextLine = in.readLine();rn if (!nextLine.startsWith("+"))rn rn showStatus("Error getting messages from server!");rn System.err.println("Error getting messages from server!");rn return;rn rn nextLine = in.readLine();rn while (nextLine != null && !nextLine.equals("."))rn rn System.err.println(nextLine);rn messageText.appendText(nextLine + "\r\n");rn repaint();rn nextLine = in.readLine();rn rn rn catch (IOException e)rn rn System.err.println("IOException poll!");rn e.printStackTrace(System.err);rn rn rnrn //返回正在聊天室中的用户rn private void pollList()rn rn String queryString = "chatservlet?mode=list";rn Vector users = new Vector();rn tryrn rn URL listURL = new URL(chatURL,queryString);rn URLConnection listConn = listURL.openConnection();rn listConn.setDefaultUseCaches(false);rn listConn.setUseCaches(false);rn listConn.connect();rn DataInputStream in = new DataInputStream(rn listConn.getInputStream());rn String nextLine = in.readLine();rn if (!nextLine.startsWith("+"))rn rn showStatus("Error getting userlist from server!");rn return;rn rn nextLine = in.readLine();rn while (nextLine != null && !nextLine.equals("."))rn rn users.addElement(nextLine);rn nextLine = in.readLine();rn rn //清除旧的用户表,加入新的rn if (!users.isEmpty())rn rn userList.clear();rn int size = users.size();rn for (int I=0;I10)rn rn showStatus("请不要超过10个字符!");rn rn elsern rn userText.setText("");rn login();rn rn rn rnrn void userText_actionPerformed(ActionEvent e)rn rn sendText();rn rnrn
请高手帮我一下这个formcheck.js文件,感谢!
我新手都不算,完全不懂,就像去掉分类信息发布页面的EMAIL和TAG的检测,使用户不用填写也能发信息,l谢谢了。rnvar ValidFone = false;rnvar CheckQQ = false;rnfunction gid(x) return document.getElementById(x); rnfunction clearMe(x) document.getElementById('info_'+x+'_hint').innerHTML = '';rnfunction IsNumeric(sText) rn var ValidChars = "0123456789-";rn var IsNumber=true;rn var Char;rnrn rn for (i = 0; i < sText.length && IsNumber == true; i++) rn rn Char = sText.charAt(i); rn if (ValidChars.indexOf(Char) == -1) rn rn IsNumber = false;rn rn rn return IsNumber;rnrnfunction isEmail(email) rn invalidChars = " ~\'^\`\"*+=\\|][()$&!#%/:,;"; rnrn // Check for null rn if (email == "") rn return true; rn rnrn // Check for invalid characters as defined above rn for (i=0; i -1) rn return false; rn rn rn lengthOfEmail = email.length; rn if ((email.charAt(lengthOfEmail - 1) == ".") || (email.charAt(lengthOfEmail - 2) == ".")) rn return false; rn rn Pos = email.indexOf("@",1); rn if (email.charAt(Pos + 1) == ".") rn return false; rn rn while ((Pos < lengthOfEmail) && ( Pos != -1)) rn Pos = email.indexOf(".",Pos); rn if (email.charAt(Pos + 1) == ".") rn return false; rn rn if (Pos != -1) rn Pos++; rn rn rnrn // There must be at least one @ symbol rn atPos = email.indexOf("@",1); rn if (atPos == -1) rn return false; rn rnrn // But only ONE @ symbol rn if (email.indexOf("@",atPos+1) != -1) rn return false; rn rnrn // Also check for at least one period after the @ symbol rn periodPos = email.indexOf(".",atPos); rn if (periodPos == -1) rn return false; rn rn if (periodPos+3 > email.length) rn return false; rn rn return true; rn rnfunction itxt(el,s) rn document.getElementById(el+'_hint').innerHTML = s;rn /*rn if (!el)rn return;rn var tmpid = el + '_hint';rn else rn document.getElementById(tmpid).innerHTML = s;rn */rnrnfunction emp(id) rn if (document.getElementById(id).value == '')rn return true;rn /* - removedrn elsern return document.getElementById(id).value;rn */rnrnfunction postcheck2() rn if (emp('info_title'))rn itxt('info_title', '请输入标题');rn if (emp('info_contact'))rn itxt('info_contact', '请输入联系方式!');rnif (ValidFone == true) rn if (IsNumeric(gid('info_contact').value)) rn itxt('info_contact','不是有效的电话号码!');rn rnrnif (CheckQQ == true) rn if (isNumeric(gid('info_qq').value)) rn itxt('info_qq','无效QQ号码');rn rn rnrn if (emp('info_mail'))rn itxt('info_mail','请输入电子邮件地址!');rn if (!emp('info_mail') && !isEmail(gid('info_mail').value))rn itxt('info_mail','无效的email地址!');rn if (emp('info_man'))rn itxt('info_man','发布者不能为空!');rn if (emp('tag1') && emp('tag2') && emp('tag3'))rn itxt('info_tag','请输入至少一个TAG!');rnrnfunction postcheck() rn /*rnif (Debug = true ) rn alert(document.getElementById('info_content').value);rnrn */rn if (emp('info_title')) rn itxt('info_title','请输入标题!');rn return false;rn rn else if (emp('info_contact')) rn itxt('info_contact','请输入联系方式!');rn return false;rn rn else if (emp('info_mail')) rn itxt('info_mail','请输入您的邮箱地址!');rn return false;rn rn else if (!isEmail(gid('info_mail').value)) rn itxt('info_mail','无效的email地址!');rn return false;rn rn else if (emp('info_man')) rn itxt('info_man','发布者不能为空!');rn return false;rn rn else if (emp('tag1') && emp('tag2') && emp('tag3')) rn itxt('info_tag','请输入至少一个TAG!');rn return false;rn rn/* rn else if (emp('info_content')) rn itxt('info_content','请输入信息内容!');rn return false;rn rn*/ rn else rn /*rn ** quick fix 07/04/2006 - kast onern */rn //dc=document.frames['info_content___Frame'].document.frames[0].document.getElementsByTagName('body')[0].innerHTML; rn // document.infopost.info_content.value=dc; rn /* eof quickfix */rn //alert(document.infopost.info_content.value);rn //ajaxFormSubmit(document.infopost,document.getElementById('postArea'));rn return true;rn rn rnrn rn
大家好,请帮我解答一下这个问题。
我在girdview的第一列加入一个按钮,目的是想点击按钮时就把按钮所对应的行内的数据插入到数据库中。
请高手帮我一下这个程序
随意输入几个数据,然后断定某个值最大,然后输出。最好能用函数。
帮我修改一下这个简单的jsp页面!
(1)Beantijiao.jsp:rnrnrnrnrnrn rn rnrnrnrnrnrn(2)BeanDemo.jsp:rnrnrnrnrnrn rn rn rn rnrnrn(3)A.java(javabean):rnpackage bean;rnpublic class Arnrn private double length;rn public A() rn public void setLength(double length)rn this.length = length;rn public double getLength()rn rn return this.length;rn rn public double area()rn rn return Math.PI*length*length;rn rn public double circle()rn rn return Math.PI*2*length;rn rn rnrn请问<em>一下</em>两个问题:rn(1)Beantijiao.jsp<em>这个</em>提交页面中,我想实现当不填写数字时,将执行JavaScript中的语句,也就是输出一段文字,但现在程序不能显示,而是直接提交数据,造成异常。rn(2)我想实现当我在提交对话框中输入了异常字符,如何避免出现异常界面,而是打印出一段文字?rn 以上两个问题不知应该如何修改程序,请各位指教!
请大家帮我理解一下这个程序
这几天在自学数据结构,刚才看到图的时候看不下去了rn下面的一个程序请大家<em>帮我</em>理解<em>一下</em>,rn到底是什么意思了/不懂??rnrnrnint matrix[6][6]; //图的邻接矩阵rnrnvoid creategraph(int *node,int num)rnrn int from; //边的起点rn int to; //边的终点rn int i;rnfor(i=0;i
求救 ,请帮我验证一下这个函数???
rn/*rn 功能:输入m1*n1数组input1[]和m2*n2数组input2[],求乘积,存放在m3*n3数组output[].rn 输入:输入m1*n1数组input1[]和m2*n2数组input2[]rn 输出:存放在m3*n3数组output[]rn*/rnrnrnvoid multiply(int input1[],int m1,int n1,rn int input2[],int m2,int n2,rn int output[],int *line,int*row)rnrn int i ,j,k;rn int kn1,kn2;rn int m3,n3;rn m3=m1*m2;rn n3=n1+n2;rn *line=m3;rn *row=n3;rn for(i=0;i<=n3-1;j++)rn output[i*n3+j]=0;rnrn rn请高手<em>帮我</em>写个主函数,我写的总出错
新手,请帮我解决一下这个难题
请教高手,我怎么样设置一个函数在单价列里自动计算(主材+辅材+人工)之和,在合价列里自动计算(数量*单价),在主材\辅材\人工列项为空白情况下,单价栏也为空白,合价为空白显示?rn谢谢谢
帮我一下这个代码?
可以写成搜索串,也可以写成网页搜索框。rnrn我已破解了<em>这个</em>搜索串的代码。rnrn原始搜索串:http://www.jiayuan.com/paper/match/happy_match.php?uhash=c517028e8eee34ce0350102d10f5dba4&act=19949711&pas=28059568&actsex=mrnrn示意公式:rnhttp://www.jiayuan.com/paper/match/happy_match.php?uhash=[MD5(%s-1000000)]&act=(获取登陆用户ID)&pas=%s&actsex=mrnrn说明:c517028e8eee34ce0350102d10f5dba4就是一个MD5码,破解知道,是28059568减去1000000变为MD5的。19949711就是匹配对象ID,28059568是被匹配对象IDrn希望有代码可以获取登陆ID,再就是可以有个公式可以计算MD5。rn不会写代码。rn请帮帮忙!
帮我一下这个程序
[code=Java]class Ex2 extends Exceptionrnrn Ex2(String msg)rn rn super(msg);rn rnrnclass MyExrnrn private int x;rn void setX(int x)rn rn this.x=x;rn rn void f1() throws Ex2rn rn if(x==13)rn throw new Ex2(“I don’t like 13!”);rn else if(x==4)rn throw new Ex2(“I don’t like 4!”);rn elsern system .out.println(100/x);rnrnpublic static void main(Sstring args[ ])rnrn MyEx a=new MyEx();rn try rn rn a.steX(5);rn //a.setX(13);rn//a.setX(4);rn//a.setX(0);rna.f1();rnrn catch(Ex e)rn rn Sytem .out.println(“get message:”+e.getMessage());rn rnrn[/code]rn<em>文件</em>名:Ex.javarnrn谢谢各位!
请高手帮我分析一下这个sql
我是个初学者,有一个sql如下,大家分析一这条语句是怎么来的,程序中肯定没有。rn<em>这个</em>我想是oracle自身执行的一个sql,但是我跟踪了<em>一下</em>发现嵌套查询的子语句返回的TABLE_NAME只可能是$seg和$cur,rn在主语句中的<em>这个</em>选择条件TABLE_NAME = '"某个应用表"肯定查不到结果。rn我想问oracle为什么产生这样的语句,和<em>这个</em>语句的作用rnSELECT *rn FROM (SELECT NULL TABLE_CATALOG,rn AC.OWNER TABLE_SCHEMA,rn AC.TABLE_NAME TABLE_NAME,rn ACC.COLUMN_NAME COLUMN_NAME,rn NULL COLUMN_GUID,rn NULL COLUMN_PROPID,rn ACC.POSITION ORDINALrn FROM ALL_CONSTRAINTS AC, ALL_CONS_COLUMNS ACCrn WHERE AC.OWNER = ACC.OWNERrn AND AC.TABLE_NAME = ACC.TABLE_NAMErn AND AC.CONSTRAINT_TYPE = 'P'rn AND AC.CONSTRAINT_NAME = ACC.CONSTRAINT_NAME) DBSCHEMA_PRIMARY_KEYSrn WHERE TABLE_NAME = '"某个表"'rn ORDER BY 3, 4rn谢谢各位前辈指点
请专家帮我分析一下这个RTP数据!
我这里有一些IP数据包,承载RTP,根据协议,我分析RTP负载的是H.263的数据(PT=34(0x22)),rn但是根据rfc2190,格式却又对不上,还请各位专家帮帮忙,<em>帮我</em>分析<em>一下</em>!rn万分感谢!rn下列表格中的数据均为十六进制。rnrn+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++rn| IP头部 | UDP头部 |RTP头部(12字节) |PT=34(0x22) 判断为H.263 |rn|(20 字节) | (8字节)|80 22 00 2A 00 … |00 02 55 cc 5B 92 5D cc AA 3B 6B …|rn+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++rnrn下一帧rn+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++rn| IP头部 | UDP头部 |RTP头部(12字节) |PT=34(0x22) 判断为H.263 |rn|(20 字节) | (8字节) |80 22 00 2B 00 …|00 02 19 34 4c 95 97 D5 AA 6B 23 …|rn+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
帮我修复一下这个数据库ACCESS的。
http://access911.net/csdn/FileDescription.asp?mdb=2011-10-19&id=37&mode=3rnrn现在用ACCESS无法打开。
帮我解决一下这个问题吧
[url=http://topic.csdn.net/u/20090605/09/0a89304e-7c2f-44db-92e5-85a1ab3544a6.html?29425]今天早上发的贴,没有一人回答正确![/url]rnrn太郁闷了!!rnrn对待技术 太麻木了!
请大家帮我分析一下这个排序
我对Quick Sort做了一些改进,主要方法是在把序列划分成两个子序列后,如果长子序列的长度超过短子序列的长度的二倍,则把长子序列平分成两个子序列分别排序然后合并。rn此外就是取枢值和短序列使用插入排序。rn我大致<em>测试</em>了<em>一下</em>,在“峰形”和“谷形”这两种对Quick Sort不利的分布时比Intro Sort要快。不过我想知道它的最差分布是什么,效率如何,请大家帮忙分析。rnrn代码如下(Object Pascal):rnprocedure QuickSort(Data: PPointerList; Size: Integer; LessThen: TLessThenProc);//改进的QuickSortrnvarrn M: Integer;rn OtherData: PPointerList;rn OtherSize: Integer;rnbeginrn Assert(Data <> nil);rn while Size > SORT_MAX dorn beginrn M := BinaryPart(Data, Size, LessThen);//用Quick Sort的逻辑划分子序列。rn if (M < Size div 2) thenrn beginrn OtherData := @Data[M];rn OtherSize := Size - M;rn Size := M;rn endrn elsern beginrn OtherData := Data;rn OtherSize := M;rn Data := @OtherData[M];rn Size := Size - M;rn end;rn  //是短子序列,是较长子序列rn M := OtherSize div 2;rn if (M > Size) thenrn beginrn QuickSort(OtherData, M, LessThen);rn QuickSort(@OtherData[M], OtherSize - M, LessThen);rn MergePart(OtherData, M, OtherSize, LessThen);rn endrn elsern beginrn QuickSort(OtherData, OtherSize, LessThen);rn end;rn end;rn InsertionSort(Data, Size, LessThen);rnend;rnrn下面是用到的类型、常量定义和其它函数rntypern TPointerList = array[0..32767] of Pointer;rn PPointerList = ^TPointerList;rn PPointer = ^ Pointer;rn TLessThenProc = function(Left, Right: Pointer): Boolean;rn TSortProc = procedure(Data: PPointerList; Size: Integer; LessThen: TLessThenProc);rn TClockProc = function(): Double;rnrnconstrn SORT_MAX:Integer = 16;rnrnprocedure Swap(var Left, Right: Pointer); overload;//交换两个指针rnvarrn Temp:Pointer;rnbeginrn Temp := Left;rn Left := Right;rn Right := Temp;rnend;rnrnprocedure Swap(var Left, Right: Integer); overload;//交换两个整数rnvarrn Temp: Integer;rnbeginrn Temp := Left;rn Left := Right;rn Right := Temp;rnend;rnrnprocedure SortInsert(Data: PPointerList; Size: Integer; Value: Pointer;rn LessThen: TLessThenProc);//在已序序列中插入元素;用于插入排序和空间不足时的有序合并rnvarrn J: Integer;rnbeginrn if LessThen(Value, Data[0]) thenrn J := 0rn elsern beginrn J := Size;rn while (J > 0) and LessThen(Value, Data[J - 1]) dorn beginrn Dec(J);rn end;rn end;rn Move(Data[J], Data[J +1], Sizeof(Pointer) * (Size - J));rn Data[J] := Value;rnend;rnrnprocedure SortMerge(SrcFirst, SrcSecond, Dest: PPointerList;rn SizeFirst, SizeSecond: Integer; LessThen: TLessThenProc);//合并两个有序序列,目标和源无叠。rnvarrn I: Integer;rnbeginrn if (SizeFirst = 0) or (LessThen(SrcSecond[0], SrcFirst[0])) thenrn beginrn Swap(Pointer(SrcFirst), Pointer(SrcSecond));rn Swap(SizeFirst, SizeSecond);rn end;rn while SizeFirst > 0 dorn beginrn if SizeSecond = 0 thenrn I := SizeFirstrn elsern beginrn I := 0;rn while (I < SizeFirst) and not LessThen(SrcSecond[0], SrcFirst[I]) dorn Inc(I);rn end;rn Move(SrcFirst^, Dest^, Sizeof(Pointer) * I);rn Dec(SizeFirst, I);rn SrcFirst := @SrcFirst[I];rn Dest := @Dest[I];rn Swap(Pointer(SrcFirst), Pointer(SrcSecond));rn Swap(SizeFirst, SizeSecond);rn end;rnend;rnrnprocedure MergePart(Data: PPointerList; PartSize: Integer; Size: Integer;rn LessThen: TLessThenProc);//把Data中的两个有序子序列合并成一个,空间不足时使用插入实现rnvarrn Buffer: array of Pointer;rn I: Integer;rnbeginrn tryrn SetLength(Buffer, Size);rn Move(Data^, Buffer[0], Size * Sizeof(Pointer));rn SortMerge(@Buffer[0], @Buffer[PartSize], Data, PartSize, Size-PartSize, LessThen);rn SetLength(Buffer, 0);rn exceptrn Dec(Size);rn for I := PartSize to Size dorn SortInsert(Data, I, Data[I], LessThen);rn end;rnend;rnrnprocedure InsertionSort(Data: PPointerList; Size: Integer;rn LessThen: TLessThenProc);//简单插入排序rnvarrn I, J: Integer;rn Value: Pointer;rnbeginrn Dec(Size);rn for I := 1 to Size dorn beginrn SortInsert(Data, I, Data[I], LessThen);rn end;rnend;rnrnfunction BinaryPart(Data: PPointerList; Size: Integer;rn LessThen: TLessThenProc): Integer;//Quick Sort的一次迭代,划分子序列。rnvarrn M: Integer;rn Value: Pointer;rn UnComplete: Boolean;rnbeginrn M := Size shr 1;rn Dec(Size);rn if LessThen(Data[M], Data[0]) thenrn Swap(Data[0], Data[M]);rn if LessThen(Data[Size], Data[M]) thenrn Swap(Data[Size], Data[M]);rn if LessThen(Data[M], Data[0]) thenrn Swap(Data[0], Data[M]);rn Value := Data[M];rn Result := 0;rn UnComplete := Size > Result;rn while UnComplete dorn beginrn while LessThen(Data[Result], Value) dorn Inc(Result);rn while LessThen(Value, Data[Size]) dorn Dec(Size);rn UnComplete := Size > Result;rn if UnComplete thenrn beginrn Swap(Data[Result], Data[Size]);rn Inc(Result);rn Dec(Size);rn end;rn end;rnend;rnrn
请大侠帮我一下这个代码
本人是新手写了好久还是写不出!用C++写rn输出100以内能同时被3和5整除的奇数,并输出所有满足条件的数的和。
帮我解决一下这个拖放的问题...
窗体上有5个图片框控件,一个是picA,其余是图片框数组picB(0)、picB(1)、picB(2)、picB(3),现在我想从picA到picB(0,1...3)拖放实现背景色的复制(不是图片),同样,picB(0,1...3)的背景色也能拖放复制到picA.rn请问,如何实现?用OLEDrag吧,但我不很熟,希望那位高手能写一段代码给我,不胜感激!my e-mail: dood@sohu.com
请高手帮我一下这个题?
编写一个程序,新建一个父类Addition,父类中有一个抽象方法add(),add()方法在NumberAddtion类中将两个数字相加,而在TextConcatenation类中则连接两个String(字符串)。声明属性并在父类Addition的构造方法中初始化属性。
请大家帮我更正一下这个程序!
// merge_sort.cpp : Defines the entry point for the console application.rn//rnrn#include "stdafx.h"rn#include "iostream.h"rnrnvoid MergeSort(int a[]);rnvoid Msort(int SR[],int TR1[],int s,int t);rnvoid Merge(int SR[],int TR[],int i,int m,int n);rnrnvoid main()rnrn int number[10],x;rn printf("\nPlease input ten numbers:\n");rn for(x=0;xmid) TR1[s-mid-1]=SR[s];rn else TR1[s]=SR[s];rn elsern int m=(s+t)/2;rn Msort(SR,TR2,s,m);rn Msort(SR,TR2,m+1,t);rn Merge(TR2,TR1,s,m,t);rn rnrnrnvoid Merge(int SR[],int TR[],int i,int m,int n)rnrn for(int j=m+1,int k=i;i<=n)TR[k++]=SR[j++];rn
帮我一下这个简单的程序
import java.io.*;rnclass changernpublic static void main(String args[]) throws IOExceptionrn int a,b,c;int m=1;rn while(m!=0)rn System.out.println("please enter the character:");rn a=System.in.read();rn b=System.in.read();rn if(a>='A'&&a) m=0;rn rnrnrn rn rnrn从键盘输入有个字符,如果是大写字母就转换成小写,<em>这个</em>时候提示是否继续,如果Yes,继续输入,<em>这个</em>程序请各位大虾帮忙改一改
请大家帮我解决一下这个问题
public class WaterSource rn private String s;rn WaterSource()rn System.out.println("WaterSource()");rn s="Constructed";rn rn public String toString()rn return s;rn rnrnpublic class SprinklerSystem rnrn private String valve1, valve2, valve3, valve4;rn private WaterSource source = new WaterSource();rn private int i;rn private float f;rnrn public String toString() rn return "valve1 = " + valve1 + " " +rn "valve2 = " + valve2 + " " +rn "valve3 = " + valve3 + " " +rn "valve4 = " + valve4 + " " + "\n" +rn "i = " + i + " " + "f = " + f + " " +rn "source = " + source;rn rnrn public static void main(String[] args) rn SprinklerSystem sprinklers = new SprinklerSystem();rn System.out.println(sprinklers);rn rnrnrnrninit:rndeps-jar:rncompile-single:rnrun-single:rnWaterSource()rnvalve1 = null valve2 = null valve3 = null valve4 = null rni = 0 f = 0.0 source = ConstructedrnBUILD SUCCESSFUL (total time: 0 seconds)rnrn本人是初学者,愿各位大虾<em>帮我</em>解释<em>一下</em>为什么会执行出那样的结果,尤其是为什么SprinklerSystem类中的toString方法会得到执行, "source = " + source这句也不太理解,谢谢大家.
帮我解决一下这个问题
源代码:rn/********源代码**********/rn// DllTest.cpp : 定义控制台应用程序的入口点。rn//rnrn#include "stdafx.h"rn#include rn#include rnusing namespace std;rnrnint _tmain(int argc, _TCHAR* argv[])rnrn unsigned char in[6];rn for(int i=0;i<
帮我解决一下这个程序出错的问题
Option ExplicitrnDim fso As New FileSystemObjectrnDim fileSelect As FilernDim txtfolder As FolderrnDim Filenumber As IntegerrnrnPrivate Sub cmdAutoBackup_Click()rnrnTimer1.Enabled = TruernTimer1.Interval = 10000rnEnd SubrnrnPrivate Sub cmdCreate_Click()rnDim folderName As StringrnrnfolderName = folder_name.Textrn'fso.GetFolder (Dir1 & "\" & folderName)rn'If fso.FolderExists = True Then '出现参数不可选的错误rn ' Exit Subrn'End IfrnSet txtfolder = fso.CreateFolder(Dir1 & "\" & folderName)rnDir1.RefreshrnEnd SubrnrnPrivate Sub Dir1_Change()rnFile1.Path = Dir1.PathrnEnd SubrnrnPrivate Sub Dir1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)rnIf Button = 2 Thenrn PopupMenu mnuDelFolderrnEnd IfrnEnd SubrnrnPrivate Sub Drive1_Change()rnDir1.Path = Drive1.DrivernrnEnd SubrnrnrnPrivate Sub File1_Click()rnFilenumber = 1rn'Set fileSelect = fso.GetFile(Dir1 & File1.FileName)rnOpen Dir1 & File1.FileName For Output Shared As FilenumberrnrnEnd SubrnrnPrivate Sub Form_Activate()rnSet fso = CreateObject("scripting.filesystemobject")rnrnEnd SubrnrnPrivate Sub mnuDeleFolder_Click()rnfso.DeleteFolder Dir1.Path & Dir1.Name, TruernEnd SubrnrnPrivate Sub Timer1_Timer()rnWith fsorn.CopyFile Filenumber, txtfolder, TruernEnd WithrnEnd Subrn运行后提示找不到<em>文件</em>,如果用了rnfso.GetFolder (Dir1 & "\" & folderName)rnIf fso.FolderExists = True Then '出现参数不可选的错误rn Exit SubrnEnd Ifrn'出现参数不可选的错误rn
帮我解决一下这个问题???
数据库:rnBClassId,BClassName,AClassNamern需要在页面显示这样的效果:rnAClassName BClassName BClassName BClassName BClassName BClassName ..........rnAClassName BClassName BClassName BClassName BClassName BClassName ..........rnAClassName BClassName BClassName BClassName BClassName BClassName ..........rnAClassName BClassName BClassName BClassName BClassName BClassName ..........rn其中BClassName超链接,两种都是商品类别,从数据库提取
帮我分析一下这个错误!
定义了<em>这个</em>函数:(CMsg是一个类!)rnCMsg* CChatServerDlg::AssembleMsg(CClientSocket* pSocket)rnrn static CMsg msg;rn .........rn return &msg;rnrn当我在其他地方引用时,例如:CMsg* pMsg=AssembleMsg(pSocket);就会出错:rnerror C2664: 'AssembleMsg' : cannot convert parameter 1 from 'class CClientSocket *' to 'class CClientSocket'rn请问错处在那里!?rnrn
帮我解答一下这个简单的问题
现在有2个数组,先在第一个数组中输入一串字符,然后将数组1中的字符复制到数组2中,rn并且倒序输出,请帮忙解答<em>一下</em>该怎么修改,我下面的程序是正序输出的。rnrn#include rnmain()rnchar a[]="I am a boy.",b[20],*p1,*p2;rnint i;rnp1=a;p2=b;rnfor(;*p1!='\0';p1++,p2++)rn*p2=*p1;rn*p2='\0';rnprintf("string a is:%s\n",a);rnprintf("string b is:");rnfor(i=0;b[i]!='\0';i++)rnprintf("%c",b[i]);rnprintf("\n");rn
帮我解决一下这个问题??????
一个查询窗体:有一个mshflexgrid,一个command三个checibutton,三个text是这样的,比如说一个表A,有字段B,C,D,E,F,我要查询的条件是当check1.value=true时text1里的条件符合要求,check2就text2, check3就text3, 当我选中一个是就查这一个条件,选两个时就查两个,选项三个就三个,把查的结果放在mshlexgrid显示出来,分别查字段C,D,E看是否符合
这个程序 请帮我一下
我想问<em>一下</em> 数组输入的时候怎么能自己决定输入的长度 比如定义了输入50个数的数组 但是我输入了3个就够了想停了 怎么办?rn还有我<em>这个</em>程序 输入的index数组 比如输入1和3了 然后后边计算出的是一个出现的次数7rn我想让它以这种形式输出 1然后 后边是出现的次数4rn1 4rn3 3rn....rn....rn#include rn#include rnrnusing namespace std; rnrnvoid main()rnrn int a[16] = -12,3,-12,4,1,1,-12,1,-1,1,2,3,4,2,3,-12;rn int i,k,index[5];rn int j=0;rn rn for(i=0;i<<>index[k];rn for(i=0;i<<
请大家帮我分析一下这个错误
[code=Delphi(Pascal)]rn[DCC Error] rxVCLUtils.pas(283): E2003 Undeclared identifier: 'SResNotFound'rn[DCC Error] rxVCLUtils.pas(1154): E2003 Undeclared identifier: 'VarArrayOf'rn[DCC Error] rxVCLUtils.pas(1157): E2003 Undeclared identifier: 'Null'rn[DCC Error] rxAnimate.pas(181): F2063 Could not compile used unit 'rxVCLUtils.pas'rn[/code]rnrn我用的是delphi2007,安装了rxlib,不知道上面的错误是什么问题。求解
请高手帮我分析一下这个问题
目前情况:rn 通过VB可以向某商业软件输入命令,此时,商业软件会打开一个窗口,进行相关属性的设置,最后点确认完成设置.rnrn 1.VB向此软件输入命令后,只有当点确认=>关闭窗口后,VB才会继续运行后面的代码rn 2.我想通过VB进行弹出窗口中,相关文本框和按钮的控制(已经能够实现,但只有在事先打开窗口的情况下...)rnrn问题:rn 我有什么办法可以实现用Vb向软件输入命令后(此时VB停止),还能让VB继续运行其它API相关代码啊?
请高手帮我理解一下这个错误!
程序如下:rnimport java.net.*;rnimport java.net.UnknownHostException;rnpublic class IPrnrn public static void main(String args[])rn rn System.out.println(InetAddress.toString());rn rnrnrn错误如下:rnnon-static method toString() cannot be referenced from a static contextrn还请问如何改正!?
帮我分析一下这个程序的作用
[code=C/C++][/code]rnint CQR_Encode::SetBitStream(int nIndex, WORD wData, int ncData)rnrn int i;rnrn if (nIndex == -1 || nIndex + ncData > MAX_DATACODEWORD * 8)rn return -1;rnrn for (i = 0; i < ncData; ++i)rn rn if (wData & (1 << (ncData - i - 1)))rn rn m_byDataCodeWord[(nIndex + i) / 8] |= 1 << (7 - ((nIndex + i) % 8));rn rn rnrn return nIndex + ncData;rnrnrn请大家<em>帮我</em>看<em>一下</em><em>这个</em>程序,谢谢大家了
帮我一下这个程序,非常感谢!!
#includern#include rn#include rnunion REGS inregs,outregs;rnmain(int argc,char *argv[])rnrn int inhandle;rn int outhandle;rn char buf[512];rn if (argc!=2)rn rn cout<<<;rn exit(0);rn rn elsern rn inhandle=outregs.x.ax;rn inregs.x.dx=(int)argv[2];rn inregs.x.cx=0;rn inregs.h.ah=0x3c;rn intdos(&inregs,&outregs);rn outhandle=outregs.x.ax;rn for(;;)rn rn inregs.x.bx=inhandle;rn inregs.x.cx=512;rn inregs.x.dx=(int)&buf[0];rn inregs.h.ah=0x3f;rn intdos(&inregs,&outregs);rn if(outregs.x.ax==0)break;rn elsern rn inregs.x.cx=outregs.x.ax;rn inregs.x.bx=outhandle;rn inregs.x.dx=(int)&buf[0];rn inregs.h.ah=0x40;rn intdos(&inregs,&outregs);rn rn rn inregs.x.bx=inhandle;rn inregs.h.ah=0x3e;rn intdos(&inregs,&outregs);rn inregs.x.bx=outhandle;rn intdos(&inregs,&outregs);rn rnreturn 0;rn
帮我一下这个汇编程序!!!
题目是:要求从键盘取得一个十进制数,然后把该数以十六进制数形式在屏幕上显示出来。rn小弟我试了<em>一下</em>,有些地方总是不能实现。rndata segment rndb1 db 'error $'rndb2 db 'continue ? (Y/N) $'rndb3 db 'Goodbye !$'rndata endsrncode segmentrn assume cs:code,ds:datarnmain proc farrn;----------------------------------rn push dsrn mov ax,0rn push axrn mov ax,datarn mov ds,axrn;-------------------------------------------rnrepeat: call decibinrnexit2: call crlfrn mov dx,offset db2rn mov ah,9rn int 21hrn mov ah,1rn int 21h ;是否继续???rn cmp al,'n' rn jz exitrn call crlfrn jmp repeatrnmain endprn;----------------------------------rndecibin proc nearrn mov dx,5 ;此处加计数器,要将数控制在5位。 rn mov bx,0rnnewchar: mov ah,1rn int 21hrn cmp al,0dhrn jz nextrn sub al,30h rn jl exit1 rn cmp al,9d rn jg exit1 rn cbwrn xchg ax,bxrn mov cx,10drn mul cxrn xchg ax,bxrn add bx,axrn dec dxrn jnz newchar rn jmp nextrnexit1: call crlf rn mov dx,offset db1rn mov ah,9hrn int 21h ;如不是数字,则显示error.rn jmp exit2 rnnext: mov dl,0dhrn mov ah,2rn int 21hrn mov dl,0ahrn mov ah,2rn int 21h rn mov ch,4rnrotate: mov cl,4rn rol bx,clrn mov al,blrn and al,0fhrn add al,30hrn cmp al,3ahrn jl printitrn add al,7hrnprintit: mov dl,alrn mov ah,2rn int 21hrn dec chrn jnz rotatern rn retrndecibin endprn;-------------------------------rncrlf proc nearrn mov dl,0dhrn mov ah,2rn int 21hrn mov dl,0ahrn mov ah,2rn int 21hrn retrncrlf endprn;----------------------------------rnexit: mov dx,offset db3rn mov ah,9rn int 21hrncode endsrn end mainrnrnrn抱歉!刚学汇编,格式不是很好看,请见谅。rn如果可以的话,请大侠附上正确的源代码!!!!
这个程序请帮我一下
import java.io.*;rnpublic class PipeStreamTest rn public static void main(String args[])rn rn tryrn Thread t1=new Sender();rn Thread t2=new Receiver();rn PipedOutputStream out= t1.getOutputStream();rn PipedInputStream in=t2.getInputStream();rn out.connect(in);rn t1.start();rn t2.start();rn rn catch(IOException e)rn System.out.println(e.getMessage());rn rn rn rn class Sender extends Threadrn private PipedOutputStream out=new PipedOutputStream();rn public PipedOutputStream getOutputStream()rn return out;rn rn public void run()rn String s=new String("Hello,receiver,how are you");rn tryrn out.write(s.getBytes());rn out.close();rn rn catch(IOException e)rn System.out.println(e.getMessage());rn rn rn rn class Receiver extends Threadrn private PipedInputStream in=new PipedInputStream();rn public PipedInputStream getInputStream()rn return in;rn rn public void run()rn String s=null;rn byte [] buf=new byte[1024];rn tryrn int len=in.read(buf);rn s=new String(buf,0,len);rn System.out.println("the following message comes from sender:\n"+s);rn in.close();rn rn catch(IOException e)rn System.out.println(e.getMessage());rn rn rn rn
帮我修改一下这个存储过程
create or replace procedure sm_insert(c1 in varchar2,c2 in varchar2,c3 in varchar2,c4 out varchar2)rnbegin rn insert into sms(tele,cnt) valuse(c1,c3);rnend sm_insertrnrn提示出错,晕哦
帮我分析一下这个错误信息
Error: 500 Location: /\CSTreeBean-0.3\example\TreeFrames.jspInternal Servlet Error:org.apache.jasper.JasperException: Unable to compile class for JSPD:\QB_webroot\work\localhost_8080\_0002f_0002fCSTreeBean_0002d_00030_0002e_00033_0002fexample_0002fTreeFrames_0002ejspTreeFrames_jsp_0.java:1: Identifier expected.rnpackage .CSTreeBean_0002d_00030_0005f_00033.example;rn ^rnD:\QB_webroot\work\localhost_8080\_0002f_0002fCSTreeBean_0002d_00030_0002e_00033_0002fexample_0002fTreeFrames_0002ejspTreeFrames_jsp_0.java:17: Superclass HttpJspBase of class _0002f_0002fCSTreeBean_0002d_00030_0002e_00033_0002fexample_0002fTreeFrames_0002ejspTreeFrames_jsp_0 not found.rnpublic class _0002f_0002fCSTreeBean_0002d_00030_0002e_00033_0002fexample_0002fTreeFrames_0002ejspTreeFrames_jsp_0 extends HttpJspBase rn ^rn2 errorsrnrn at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254)rn at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)rn at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)rn at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:152)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:164)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)rn at org.apache.tomcat.core.Handler.service(Handler.java:286)rn at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)rn at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)rn at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)rn at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)rn at java.lang.Thread.run(Thread.java:484)rnrnrn这是什么错误????rn盼高手解答。rn
帮我一下这个触发器
请各位<em>帮我</em>看<em>一下</em><em>这个</em>触发器哪里写错了,该怎么改rnrn现在有三张表,结构如下rnrn---------------------采购进货/采购退货表-----------------------rnCREATE TABLE WSSSELLERINOUT(rn SIOID CHAR(14),rn SIODATE DATE,rn PRVID CHAR(4),rn SIONEEDPAY NUMBER(10),rn SIOPAID NUMBER(10),rn SIOOWE NUMBER(10),rn OPRTID CHAR(3),rn STAID CHAR(3),rn SISTATUS CHAR(1),rn SIOTYPE CHAR(1),--<em>这个</em>字段代表是进货还是退货rn CONSTRAINTS SELLERINOUT_SIOID_PK PRIMARY KEY(SIOID)rn);rnrnrn---------------------采购进货/采购退货表详细-----------------------rnCREATE TABLE WSSSELLERINOUTDETAIL(rn SIOID CHAR(14),--通过外键关联到采购进货/采购退货总表rn MID CHAR(5), rn STOID CHAR(2),rn MAMOUNT NUMBER(3),rn PRICE NUMBER(6),rn SUMPRICE NUMBER(10),rn CONSTRAINTS SELLERINOUTDETAIL_SIOMSTO_PK PRIMARY KEY(SIOID, MID, STOID)rn);rnrnrn-----------------------库存信息--------------------------rnCREATE TABLE WSSSTORAGE(rn MID CHAR(5),rn STOAMOUNT NUMBER(3),rn SELLSUM NUMBER(3),rn PREINPRICE NUMBER(6),rn AVGINPRICE NUMBER(6),rn SELLSUMPRICE NUMBER(10),rn STOSUMPRICE NUMBER(10),rn STOID CHAR(2),rn CONSTRAINTS STORAGE_MSTO_PK PRIMARY KEY(MID, STOID) rn);rnrn各个外键关联的语句没有放上来...rnrn我想通过触发器实现在进货退货详细表中添加产品时在库存信息中也进行相应的修改,写了这么一个触发器,可是总是显示触发器无效未通过确认,不明白应该怎么改rnrnrn--定义进货退货时在详单上插入数据后同步更新库存的触发器rnCREATE OR REPLACE TRIGGER WSSSIOD_WSSSTOrnAFTER INSERT ON WSSSELLERINOUTDETAILrnFOR EACH ROWrnDECLARErn V_INOUT WSSSELLERINOUT.SIOTYPE%TYPE;rnBEGINrn --首先判断是进货还是退货rn SELECT IO.SIOTYPErn INTO V_INOUTrn FROM WSSSELLERINOUT IOrn WHERE IO.SIOID = :NEW.SIOID;rn rn IF V_INOUT = '1' THEN rn --进货时,若库存中有这件商品则库存量增加rn UPDATE WSSSTORAGE STOrn SET STO.STOAMOUNT = STO.STOAMOUNT + :NEW.MAMOUNTrn WHERE STO.MID = :NEW.MID;rn --如果库存里还没有这件商品就新加一条记录rn IF SQL%NOTFOUND THENrn INSERT INTO WSSSTORAGE rn VALUES(:NEW.MID,:NEW.MAMOUNT,0,:NEW.PRICE,0,0,0,:NEW.STOID); rn END IF;rn ELSIF V_INOUT = '0' THENrn --退货时不可能存在找不到退货商品,退货时库存减少rn UPDATE WSSSTORAGE STOrn SET STO.STOAMOUNT = STO.STOAMOUNT - :NEW.MAMOUNT;rn END IF;rnEND; rn
帮我实现一下这个功能............
[img=http://hi.csdn.net/attachment/201106/22/9480891_1308747882E3AX.jpg][/img]rnrn有三个CheckBox,两个label,还有一个button1(忘了弄上去)rn假如我勾选第1、3个CheckBox,点击button1,就形成一个方案1,这时,label1的Text变成“方案一”,又假如我勾选第2、3个CheckBox,再点击button1,形成方案二,这时,label2的Text变成“方案二”,rnrn我需要实现的功能是:rn如果我点击"方案一"<em>这个</em>label的时候,那三个CheckBox就是第1、3个呈选中状态;如果我点击"方案二"<em>这个</em>label的时候,那三个CheckBox就是第2、3个呈选中状态rn也就是说,点击哪个label,那三个CheckBox就呈现当时选择的状态rnrn谢谢!!!
帮我解决一下这个SQL问题?
select left(帐日期,7)as 日期,sum(出帐数)as 每月进货小计 from dbZhangMu where 帐日期 BETWEEN :A and :B Group by left(帐日期,7 ))');rn这条语句没问题,但是怎样控制新生成字段"日期"的大小,请看下面的写法:rnselect left(帐日期,7)as 日期 char(15),sum(出帐数)as 每月进货小计 from dbZhangMu where 帐日期 BETWEEN :A and :B Group by left(帐日期,7 ))');rn我这样写就是出错,请问该怎样写呢?rn
谁能帮我解决一下这个文件.
如果想<em>帮我</em>的话,我把<em>文件</em>发给,<em>帮我</em>看看.
谁能帮我修复一下这个word文件
里面是我多年的QQ朋友rnrnhttp://www.chesshome.net/qq.doc
请帮忙测试一下
其实firefox很糟糕!我想不明白为什么有那么多人要用他。rnrn rn rn DHTML Demo rn rn rn rnrn rn rn rn 浏览器 appNamern 事件 typern 节点 nodeNamern 节点ID IDrn 节点name namern IE Firefox Netscapern offsetX offsetX layerX layerX rn offsetY offsetY layerY layerY rn x x pagrX pageX rn y y pageY pageY rn screenX screenX screenX screenX rn screenY screenY screenY screenY rn clientX clientX clientX clientX rn clientY clientY clientY clientY rn 按键rn keyCode keyCode button button which whichrn shiftKey shiftKey ctrlKey ctrlKey altKey altKeyrn shiftLeft shiftLeft ctrlLeft ctrlLeft metaKey metaKeyrn 工作变量rn dragObj.xpos xposrn dragObj.ypos yposrn dragObj.w wrn dragObj.h hrn dragClickX ClickXrn dragClickY ClickYrn dragActive Activern rnrnrn rn 这是一个跨浏览器的实现用鼠标移动层的<em>测试</em>脚本。欢迎<em>测试</em>并提出宝贵意见。rnrn <em>测试</em>用浏览器版本:rn Microsoft Internet Explorer 6.00.2462.0000rn Mozilla/5.0 FierFox 1.0.7rn Netscape 无rnrn 代码中的Netscape部分曾在Netscape 4.0中通过<em>测试</em>。现因手边无任何版本的Netscape浏览器,希望rn使用Netscape浏览器的朋友帮忙<em>测试</em>并补齐信息列表部分。rn FierFox部分在移动对象时使用setAttribute修改style属性,是否很蠢?应该还有别的方法吧?rnrn rn rn
测试的进来帮我一下???????????
你怎样<em>测试</em>一个远程copy的程序??????(,比如说网络中断的情况)
帮我测试一下,谢谢各位
http://kehu.kstv.com.cn/tszx/index.htmrn用户:poporn密码:poporn或者rn用户:adminrn密码:0000rn主要是看看朋友<em>帮我</em>写的菜单的兼容性,是不是能看到!!!
帮我测试一下软件(进销存)
下载地址:Http://www.myjinsui.com/dowmn/list.asp?id=416
大伙帮我测试一下下载速度!
大伙<em>帮我</em><em>测试</em><em>一下</em>下载速度rnFTP://netbartest:test@210.22.12.157/www.yeah8.com_环球旅行80天.rmvb rn rn用影音传送带软件设置10个线成rn
大家来帮我测试一下
Team Source 1.0.9 终于完成!rn开发版马上就要结束了!rn目前还没有完成的功能:rn1.任务处理(85%)rn2.任务进度(20%)rn3.个人计划rn4.<em>文件</em>管理(80%)rn5.喜好设置rn6.记事本(35%)rn7.计算器(87%)rn8.EMAIL(90%)rn演示地址:http://www.longmeng.orgrn<em>测试</em>帐号密码都是testrn希望在完成之前请大家再给我点意见!
帮我测试一下实验软件
实验软件在:ftp://jtsoftcn.vicp.net下有个叫工程1.exe的<em>文件</em>:rn<em>测试</em>时间从现在开始止于今晚11:00rn请大家把<em>测试</em>结果告诉我,并写上<em>测试</em>的地址,宽带的类型是电信还是网通还是什么的?谢谢大家对我的支持!rn
跪求perl高手帮我注释一下这段perl代码
#! /usr/bin/<em>perl</em>rnrnuse CGI qw/:standard/;rnuse DBI;rnrnmy $svr_addr = param( 'server' );rnmy $clt_addr = param( 'client' );rnmy $s_time = param( 'start_time' );rnmy $e_time = param( 'end_time' );rnrnrn#&check_param;rn#end &check_paramrnrnmy $dbh = DBI->connect("DBI:mysql:database=tian;host=localhost",rn "CLAYtian",rn "123456",rn 'RaiseError' => 1);rnrnrn$dbh->LongReadLen = 512 * 1024;rn$dbh->LongTruncOk = 1;rnrn$querry_cmd = "SELECT sid,pid,s_ip,c_ip,type,host,path,time,data FROM tcp_http where 1 ";rnif( $s_time )rnrn $querry_cmd .= " and time>=\'$s_time\'";rnrnif( $e_time )rnrn $querry_cmd .= " and time );rnrnwhile( )rnrn print $_;rnrnrnclose FH;rnrn1;rnrn
达人们请帮我帮我一下这个程序
要求一:将一篇英语文章中的所有单词按照出现次数由高到低排列出来。 rn要求二:输入一个单词,能输出<em>这个</em>单词在这篇文章中出现的频率。rn最好用C语言来编写
帮我一下帮我一下帮我一下帮我一下帮我一下
我的机器一开机,在没有进入98的时候就会关机,提示出要我修改autoexec.bat和config.sys<em>文件</em>,可是两个<em>文件</em>里什么都没有,请大家<em>帮我</em><em>一下</em>
帮我一下.
我的目的是在 ConvChr() 中利用 string 型做一些处理后返回 char *,利用 memcpy 为另一个 char * 赋值, 这里是简化代码,原代码一定要使用 memcpy 的.rn请<em>帮我</em>调<em>一下</em>.rn#include rn#include rnusing namespace std;rnrnconst char * ConvChr()rnrn string strVal;rn strVal = "abc";rn return strVal.c_str();rnrnrnrnint main()rnrn char chrVal[20]="def";rn memcpy(chrVal, ConvChr(), sizeof(ConvChr()));rnrn cout << chrVal << endl;rnrn return 0;rnrn
帮我参考一下
我现在8086汇编学完了.想继续深入学习,而且想学习和c.c++嵌入式汇编,但不知道看哪本书.请大家给我指条路啊.
请大家帮我一下!!
我的机子安装的系统是2000专业版本。最近它经常无缘无故自己重新rn启动请问这是什么原因?尤其是在刚开机的时候进入2000界面,然后就又重新启动了。rn我什么都没有做。请大家指点<em>一下</em>。rn
帮我引导一下
我本人现在说得上最拿手的是C++和ASP但是我想朝开发OA软件这方面发展,我应该怎吗学习下去,还需要去怎吗学,学些什么,能不能请熟悉的人指导<em>一下</em>,我是很诚心的。谢谢
帮我一下
我用C#写了一个aspx的页面。rn我运行后服务端控件没有显示。rn我看了一个源<em>文件</em>。还是XML格式的。rn怎么解决啊
帮我解决一下
我家里是2台电脑,服务器是WIN2K,客户是WINME,现在是共享上网,联众和QQ都可以上,但是网络游戏就玩不了rn服务器网卡1:接宽带,IP和DNS和网关是固定的rn服务器网卡2:接客户机,IP:192.168.0.1,没有设置DNS和网关,以启动WIN2K的INTERNET的共享。rn客户机1网卡:IP:192.168.0.2,网关:192.168.0.1,DNS:192.168.0.1和宽带给的DNS。rn没有用任何辅助程序,WINGATE装不上,提示让我卸载防火墙,我怕不安全,请高手帮<em>帮我</em>解决<em>一下</em>!!!!
帮我注释一下!!!!!
请<em>帮我</em>注释<em>一下</em>,thank you!rnrnrn rnrnrn rnrnrn
帮我调试一下!
//RGB.javarnimport java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnpublic class RGB extends JFrame rnrn public JLabel show = new JLabel("下面是三个线程的执行情况:");rn public JTextField T1 = new JTextField(6);rn public JTextField T2 = new JTextField(6);rn public JTextField T3 = new JTextField(6);rn public RGB()rn rn super("★woodfire★");rn setSize(200,100);rn Container c = getContentPane();rn c.setLayout(new FlowLayout());rn c.add(show);rn c.add(T1);rn c.add(T2);rn c.add(T3);rn show();rn rn public static void main(String[] args) rn rn RGB pp =new RGB();rn Runnable RR = new MyRunnable(1,100);rn Runnable GG = new MyRunnable(2,100);rn Runnable BB = new MyRunnable(3,100);rn new Thread(RR).start();rn new Thread(GG).start();rn new Thread(BB).start();rn pp.repaint();rn pp.addWindowListener(new WindowAdapter()rn rn public void windowClosing(WindowEvent e)rn rn System.exit(0);rn rn ); rn rnrnclass MyRunnable implements Runnablern rn int m,n,count=0;rn MyRunnable(int mm,int nn)rn rn m=mm;n=nn;rn rn public void run()rn rn tryrn rn while(true)rn rn if(m==1)rn T1.setText("R:"+Math.random()*100);rn else if(m==2)rn T2.setText("G:"+Math.random()*100);rn else if(m==3)rn T3.setText("B:"+Math.random()*100); rn Thread.sleep(n);rn if(++count>=20);rn break;rn rn rn catch(InterruptedException e)rn rn return;rn rn rn rn编译错误:rnRGB.java:55: cannot resolve symbolrnsymbol : variable T1rnlocation: class MyRunnablern T1.setText("R:"+Math.random()*100);rn ^rnRGB.java:57: cannot resolve symbolrnsymbol : variable T2rnlocation: class MyRunnablern T2.setText("G:"+Math.random()*100);rn ^rnRGB.java:59: cannot resolve symbolrnsymbol : variable T3rnlocation: class MyRunnablern T3.setText("B:"+Math.random()*100);rnrn ^rn3 errorsrn
帮我一下
rnPrivate Sub Form_Load()rnOn Error Resume NextrnDim conn As New adodb.ConnectionrnDim rs As New adodb.RecordsetrnDim sql As Stringrnconnstr = "Provider=Microsoft.Jet.OLEDB.3.51; Data Source=" & App.Path & "\text_old.mdb;"rnconn.Open connstrrnIf Err.Number <> 0 ThenrnMsgBox ("数据库未能成功连接!" & Err.Description)rnEnd Ifrnsql = "select * from admin"rnrs.Open sql, conn, adOpenStatic, adLockReadOnlyrnDatalist.DataSource = rs /出错rnrs.ClosernSet rs = Nothingrnconn.ClosernSet conn = NothinrnEnd Subrnrn我想用DATAGRID控件显示查询结果rn如果有时间可以说说怎么在显示出来后加入编辑功能?rnrn我是一只菜鸟 菜菜菜菜菜菜 菜菜菜菜菜菜rn
请大家帮我一下~~~
formsize=request.totalbytesrnformdata=request.binaryread(formsize)rnbncrlf=chrB(13)&chrB(10)rndivider=leftB(formdata,clng(instrb(formdata,bncrlf))-1)rndatastart=instrb(formdata,bncrlf&bncrlf)+4rndataend=instrb(datastart+1,formdata,divider)-datastartrnmydata=midb(formdata,datastart,dataend)rnrn看了一段asp无组件上传的代码,有的函数不是很明白,rn就是这段rnbncrlf=chrB(13)&chrB(10)<em>这个</em>有什么用?rndivider=leftB(formdata,clng(instrb(formdata,bncrlf))-1)rndatastart=instrb(formdata,bncrlf&bncrlf)+4rndataend=instrb(datastart+1,formdata,divider)-datastartrnmydata=midb(formdata,datastart,dataend)rnleftb,,instrb,midb系什么来的,有什么作用,本人菜鸟一只,请大家<em>帮我</em><em>一下</em>。
请大家帮我一下
OFFICE2000rn删除不掉,也装不了,动不动就出现内存调试,请问各位我怎么办?rn
帮我翻译一下!!!
下面是Programing Windows Fifth Edition---Chapter 5 ---Drawing Filled Areas中的一段话,rn我实在理解不了。请<em>帮我</em>翻译<em>一下</em>。rnrnAt first, the difference between alternate and winding modes seems rather simple. For alternate mode, you can imagine a line drawn from a point in an enclosed area to infinity. The enclosed area is filled only if that imaginary line crosses an odd number of boundary lines. This is why the points of the star are filled but the center is not. rnrnThe example of the five-pointed star makes winding mode seem simpler than it actually is. When you're drawing a single polygon, in most cases winding mode will cause all enclosed areas to be filled. But there are exceptions. rnrnTo determine whether an enclosed area is filled in winding mode, you again imagine a line drawn from a point in that area to infinity. If the imaginary line crosses an odd number of boundary lines, the area is filled, just as in alternate mode. If the imaginary line crosses an even number of boundary lines, the area can either be filled or not filled. The area is filled if the number of boundary lines going in one direction (relative to the imaginary line) is not equal to the number of boundary lines going in the other direction. rnrnrnrn
帮我一下
我昨天安装蓝点LINUX2。0时出现:rn我先安装了WIN2000SERVER!rn然后我安装蓝点!但总到最后所有安装包安完后就没有了反应,重起,我的天,什么也没有( WIN2000和蓝点都没有,就是没有系统引导)。rn我在安装到分区时有两个BOOTTABLE(一个是WIN2000一个是蓝点的“/”)不知道是不是它的原因!rn我把WIN2000删掉只安装蓝点,可以!rn请<em>帮我</em><em>一下</em>,先谢谢了!rn
帮我翻译一下
public double numinput=0;rnpublic bool dot = false;rnif(textBox1.Text.Equals("0.")&& !dot) textBox1.Text="1";rn else textBox1.Text = textBox1.Text+"1";rn numinput = double.Parse(textBox1.Text);rnrnrnrn主要是dot在这里的用途不太理解。
请各位帮我一下
我今天遇到一个很奇怪的问题:我在数据库(SQL Server)里存在三张表,第一张用于记录人员的基本信息(也是主表),字段有:PersonID、Name、Sex、Identity,第二张表记录的是人员的学历情况,字段有:PersonID、学历、毕业时间、毕业学校,第三张表用于记录人员的档案情况,字段有:PersonID,档案编号,档案去向。这三张表都存在字段PersonID,如果这三张表都存在同一个PersonID,那按照第一张表的Name查询人员姓名、性别、身份证、学历、毕业时间、毕业学校、档案编号、档案去向的信息就没有问题,如果第三张表是空表,查不出在第一、二张表存在同一个PersonID的信息。rn我想问就是,我如何写存储过程来,以姓名查询某人的Name、Sex、Identity、学历、毕业时间、毕业学校、档案编号,档案去向,但是因为第三张表是空表,所以查出来的结果,要求档案编号,档案去向的内容为空值。还有,第三张表可能有数据,可能没有数据,请问在没有数据的情况怎么查所有信息?rnrn说简单一些就是:第一张表A01,存在一条记录:PersonID为001,Name为小李,Sex为男,Identity为510000000000000000,第二张表A02,存在一条记录:PersonID为001,学历为本科,毕业时间为2000-06-01,毕业学校为四川大学,第三张表本来应该存在记录的,但是记录被清除了,所以,我如果以小李查询的话,我想得到Name为小李,Sex为男,Identity为510000000000000000,学历为本科,毕业时间为2000-06-01,毕业学校为四川大学,档案编号为空值(null),档案去向为空值(null)的纪录。rn谢谢回答,也谢谢您帮助我!请回答者留下QQ,以便我<em>这个</em>超级新人向您学习!rn另,小弟只有10分了,不好意思!
北大青鸟S1计算机基础下载
教学指导,补充案例,理论课作业答案,上机课作业答案。理论部分,教学幻灯片。上机部分,教学幻灯片,上机课答案。 相关下载链接:[url=//download.csdn.net/download/yunze0705/2957730?utm_source=bbsseo]//download.csdn.net/download/yunze0705/2957730?utm_source=bbsseo[/url]
Apach 2.2.21-win32-x86 php服务器下载
Apach 2.2.21-win32-x86 php服务器 Apach 2.2.21-win32-x86-openssl-0.9.8r.rar 相关下载链接:[url=//download.csdn.net/download/w_t_x/3875750?utm_source=bbsseo]//download.csdn.net/download/w_t_x/3875750?utm_source=bbsseo[/url]
类似QQ空间的容器下载
类似QQ空间的Portal容器 安装部署后便可以使用 相关下载链接:[url=//download.csdn.net/download/jinchen5430/4441227?utm_source=bbsseo]//download.csdn.net/download/jinchen5430/4441227?utm_source=bbsseo[/url]
我们是很有底线的