python这个成语感觉没问题为什么会错 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:20
Bbs1
本版专家分:0
Bbs1
本版专家分:100
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:100
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:20
Bbs5
本版专家分:2245
Blank
红花 2019年5月 其他开发语言大版内专家分月排行榜第一
Blank
黄花 2019年7月 其他开发语言大版内专家分月排行榜第二
2019年6月 其他开发语言大版内专家分月排行榜第二
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:100
Blank
GitHub 绑定GitHub第三方账户获取
这个代码为什么会错呢????
2487: Central Avenue RoadrnrnResult TIME Limit MEMORY Limit Run Times AC Times JUDGErn 3s 65536K 737 169 StandardrnThere are a lot of trees in the park of Jilin University. We want to open up a road in this forest in a straight line from one tree to another. In order to view more scenery, the difference of both sides of the road is minimum (zero or one). If other tree is just on the road, it is not counted on both sides. Of course, we have a lot of ways to build this road. The best way is that the distance of two reference trees is shortest.rnrnInputrnrnThe first line of each case is the number of trees N (2 ,&a[i][1],&a[i][2]);rn rn for(int i=1;ia[i][1])right++;rn else if(a[t][1]k*a[t][1]+b)right++;rn else if(a[t][2]
这个sql语句为什么会错?
rnrtrn ADOQUERY1.Close;rn ADOQUERY1.SQL.Clear;rn ADOQUERY1.SQL.Add('select * from admin where id='luoqun'');rn ADOQUERY1.open;rn编译可通过,执行就出错, 说'luoqun'无效。rn在查询分析器下执行无误。rn我换成了ADOQUERY1.SQL.Add('select * from admin where id="'luoqun'"');rnrn或者把单引号改为 +char(39) 连编译都无法通过了。。 rnrn。。望指点~~ 多谢~!! rnrn在线等rnrn
调用这个存储过程为什么会错?
存储过程:rnCREATE PROCEDURE prece_sum @@SUM int OUTPUTrn ASrnselect @@SUM=sum(digi) from prece where up=1rnGOrnrn.cs文件:rnSystem.Data.SqlClient.SqlParameter SUMParam = null;rn rn //tryrn //rn rn System.Data.SqlClient.SqlConnection connection = new System.Data.SqlClient.SqlConnection("data source=QIWEIYONG;initial catalog=DaabTest;password=123;persist security info=True;user id=sa;workstation id=QIWEIYONG;packet size=4096");rn connection.Open();rn // create a command...rn System.Data.SqlClient.SqlCommand command = new System.Data.SqlClient.SqlCommand("prece_sum", connection);rn command.CommandType = System.Data.CommandType.StoredProcedure;rn SUMParam = command.Parameters.Add("@@SUMParam", System.Data.SqlDbType.Int);rn SUMParam.Direction = System.Data.ParameterDirection.Output;rn command.ExecuteNonQuery();rnrnrnrn报错:rn@SUMParam 不是过程 prece_sum 的参数。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.SqlClient.SqlException: @SUMParam 不是过程 prece_sum 的参数。rnrn源错误: rnrnrn行 37: SUMParam = command.Parameters.Add("@SUMParam", System.Data.SqlDbType.Int);rn行 38: SUMParam.Direction = System.Data.ParameterDirection.Output;rn行 39: command.ExecuteNonQuery();rn行 40: rn行 41: // rn rn
执行这个存储过程为什么会错?类型转换
--存储过程rncreate proc ps_test @s2 varchar(100)out as rnset @s2='kkk'rnreturn @s2rnrn--执行rnps_test 'kk'rnrn--错误rn将 varchar 值 'kkk' 转换为数据类型为 int 的列时发生语法错误。rn
为什么会出现这个错啊??
[img=https://img-bbs.csdn.net/upload/201611/27/1480225202_942795.png][/img]
这个Encoder.GetBytes(string)为什么会错
Encoding.GetBytes(String)方法:[url=http://msdn.microsoft.com/zh-cn/library/ds4kkd55.aspx]MSDN[/url]rnrn将指定字符串中的所有字符编码为一个字节序列。rnrn可是,下面的代码<em>为什么</em>报错rn static void Main(string[] args)rn rn FileStream aFile = new FileStream("e:\\Temp.txt", FileMode.Create);rn Encoder e = Encoding.UTF8.GetEncoder();rn byte[] byData = e.GetBytes("成功"); [color=#FF00FF]//报错[/color]rn aFile.Write(byData, 0, byData.Length);rn aFile.Close();rn rnrnrn上面的代码报错,----““GetBytes”方法没有任何重载采用“1”个参数rnrn可是,MSDN上,Encoding.GetBytes(String)方法明明只有一个参数啊
这个感觉没问题为什么不能循环输出呢
![图片说明](https://img-ask.csdn.net/upload/201603/31/1459388507_774512.png)
为什么会错
请看:rnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnusing System.Threading.Tasks;rnrnnamespace deleternrn rn class Programrn rn static void Main(string[] args)rn rn List list = new List();rn Dictionary dict = new Dictionary();rn list.Add(1);rn dict.Add("key", "value");rn foreach (var obj in list)rn rn Console.WriteLine(obj);rn rn foreach (Dictionary obj in dict)rn rn Console.WriteLine(obj);rn rnrnrn rn rnrn这段<em>为什么</em>会错?Dictionary<em>这个</em>不一样也是对象的类型吗?<em>为什么</em>非要用KeyValuePair<em>这个</em>类型才正确?请高人回答一下!谢谢
为什么会错?
.csrn using System;rnusing System.Collections;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Web;rnusing System.Web.SessionState;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.HtmlControls;rnusing qwyUp;rnusing System.IO;rnusing System.Data.SqlClient;rnrnnamespace qwy.leaveWordrnrn /// rn /// list 的摘要说明。rn /// rn public class list : System.Web.UI.Pagern rn protected System.Web.UI.WebControls.Label Label7;rn protected System.Web.UI.WebControls.DataGrid dgfiList;rn rn private void Page_Load(object sender, System.EventArgs e)rn rn if (!IsPostBack)rn rn BindGrid();rn rn rnrn public void BindGrid()rn rn string sql; rn sql = "select a.lWId,a.subject,a.upId,a.editTime,a.userId,a.replyNum,a.clickNum,b.userName,a.replyUserName from LeaveWord a,adminUser b where a.userId = b.userId and upId=0 order by editTime";rn rn DataSet ds = Query.GetDataSet(sql); rn rn dgfiList.DataSource=ds;rn dgfiList.DataBind();rn rn rnrn public void ImageButton_Command(object sender, CommandEventArgs e) rn rn //Label Id=(Label)dgfiList.Items[Int32.Parse(e.CommandName)].FindControl("Id");rn Label Id=(Label)dgfiList.Items[Int32.Parse(e.CommandName)].FindControl("Id");rnrn //string Id = e.CommandName.Length.ToString();rn Label7.Text = Id.ToString();rn /*DataList dlcdList=(DataList)listGrd.Items[1].FindControl("dlcdList");rn ImageButton ImgOpen=(ImageButton)listGrd.Items[1].FindControl("ImgOpen");rn if(ImgOpen.ImageUrl=="../images/Open.gif")rn rn ImgOpen.ImageUrl="../images/Close.gif";rn dlcdList.Visible=true; rn string Sql="select a.subject,a.lWId,b.userName from LeaveWord a,adminUser b where a.userId=b.userId and upId="+Int32.Parse(Id.Text)+" order by lWId";rn //string Sql="select a.subject,a.lWId,b.userName from LeaveWord a,adminUser b where a.userId=b.userId and upId=0 order by lWId";rn dlcdList.DataSource=Query.GetDataSet(Sql);rn dlcdList.DataBind();rn for(int i=0;i"+(cTitle.Text)+"---"+cUsers.Text+"";rn rn rn elsern rn ImgOpen.ImageUrl="../images/Open.gif";rn dlcdList.Visible=false;rn */rn rn #region Web Form Designer generated codern override protected void OnInit(EventArgs e)rn rn //rn // CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。rn //rn InitializeComponent();rn base.OnInit(e);rn rn rn /// rn /// 设计器支持所需的方法 - 不要使用代码编辑器修改rn /// 此方法的内容。rn /// rn private void InitializeComponent()rn rn this.Load += new System.EventHandler(this.Page_Load);rnrn rn #endregionrn rnrnrnrn
为什么会错呢????????????????????????????????????????????????????
在Interface单元中使用DsgnIntf,可编译时总说dsgnIntf.dcu找不到,可delphi6的帮助中可以找到.<em>为什么</em>,帮帮我.
CMap 为什么会错?
我定义的 CMaprn<em>为什么</em>会有错呢?rn哪位大侠知道原因?
奇怪,为什么会错的???
下面的代码在winme+pws测试通过rn换到了win2k+iis5就不能成功运行了rn想不通rn请大侠告知rn谢谢rnrnrn错误页面信息:rn本页无法显示 rn试图访问的网页出现问题,无法显示。 rnrn--------------------------------------------------------------------------------rnrn请尝试以下方法:rnrn单击 刷新按钮或者梢候再试。rnrn打开 localhost 主页,然后查找与所需信息相关的链接。 rnHTTP 500.100 - 内部服务器错误 - ASP 错误rnInternet 信息服务rnrn--------------------------------------------------------------------------------rnrn技术信息(适用于支持人员)rnrn错误类型:rnADODB.Connection (0x800A0E7A)rn/ASP/Histroy.asp, 第 7 行rnrnrn浏览器类型:rnMozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MyIE2) rnrn页:rnGET /ASP/Histroy.asp rnrn时间:rn2003年7月18日, 14:46:39 rnrnrn详细信息:rnMicrosoft 支持 rn rn
为什么会错呢
import java.awt.event.*;rnimport javax.swing.JFrame;rnrnpublic class TestKey rn public static void main(String[]args)rn new TestKey().launchFrame();rn rn rn void launchFrame()rn addKeyListener(new Monitor());rn setBounds(300,300,300,500);rn setVisible(true);rn rn setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn rnrn class Monitor extends KeyAdapterrn public void keyPressed(KeyEvent e)rn int keycode=e.getKeyCode();rn if(keycode==KeyEvent.VK_0 )rn System.out.println("nihao");rn rn rn rn
===这里为什么会错???
我在datagrid中有一按钮,显示数据信息:rnstring sbID="";rnsbID=this.DataGrid1.Items[e.Item.ItemIndex].Cells[1].Text;rnstring contex="Server=tomgus-master;UID=sa;PWD=1111;Initial Catalog=yqsb";rnstring search="SELECT * FROM s_zj"+"WHERE "+"仪器编号="+sbID;rnrnSqlConnection conn=new SqlConnection(contex);rnSqlCommand cmd=new SqlCommand(search,conn);rnconn.Open();rnSqlDataReader dr=cmd.ExecuteReader();rndr.Read();rnthis.Label1.Text= BuildMoreInfoText(dr);rnrn但是SqlDataReader dr=cmd.ExecuteReader();这句老报错!rn怎样改???
为什么会学习感觉痛苦
学习的过程本身就是一个从无到有的过程,想不明白问题自然痛苦,而想完问题之后没有经过实践或只是第一次上手,自然会有种种想不明白,<em>这个</em>过程自然是痛苦的,所以为了以后可以减少一点痛苦,我决定采取新的学习方法,首先什么科目都不学,先花费一整天的时间一直搞数学,然后争取搞定数学,大概9月15日左右把数学搞定,然后以后每天大概花2小时左右复习笔记和做错题经典题,2小时左右学习英语,1-2小时左右学习政治,剩余
这个错是为什么
我的程序放在windows上,放在共享文件夹里,然后mount到linux工作站下编译,会出现如下错误:rnsh: 0: getcwd() failed: No such file or directoryrnrn如果直接拷贝到linux上编译就不会有问题。rnrn我mount的命令是rnsudo mount -t cifs -o username=wx,passwd=wx,noserverino,file_mode=0777,dir_mode=0777,uid=user,gid=users,noperm,rw,uid=1002,gid=1002 //192.165.54.18/prj /home/wx/work_dir/prjrnrn我的ubuntu版本是 12.04,64位机
看看这个“==”为什么
[code=Java]class UseEnums2 rn enum Colors rn RED, GREEN, BLUE, YELLOWrn ;rnrn public static void main(String[] args) rn for (Colors c : Colors.values()) rn if (c == Colors.GREEN)rn System.out.print("green ");rn if (Colors.RED.equals(c))rn System.out.print("red ");rn if (c == "YELLOW")rn System.out.print("yellow ");rn if (c.equals("BLUE"))rn System.out.print("blue ");rn rn rnrn[/code]
为什么会报这个错?
public class welcomern rn rn rn public static void main(String args[])rn rn rn System.out.print("welcome to java world!"); rn rn rn rn rnrn很简单得一个小程序,可是他报错:rnException in thread "main" java.lang.NoClassDefFoundError: welcomern这是<em>为什么</em>呢?rn谢谢~~~
搞不懂这个为什么错?
#includernusing namespace std;rnint Add1(int iNum)rnrn return 100+iNum;rnrnint Add2(int iNum)rnrn return 100-iNum;rnrnint Display(int (*fPtr)(),int iNum)rnrn return (*fPtr)(iNum);rnrnint main()rnrn int iNumber;rn int (*funPtr)();rn cout<>iNumber;rn if(iNumber>=0)rn rn funPtr=Add1;rn rn elsern rn funPtr=Add2;rn rn cout<
这个存储过程为什么
create or replace procedure addbook asrn(rn@book_id book.book_id%type,rn@book_name book.book_name%type,rn@price book.price%typern)rnrnbeginrninsert into book(rnbook_id,rnbook_name)rnvaluesrn(rn@book_id,rn@book_name,rn@price);rnend;rnrn警告: 创建的过程带有编译错误。rnrnSP2-0310: 无法打开文件 "book_id.sql"rnSP2-0310: 无法打开文件 "book_name.sql"rnSP2-0310: 无法打开文件 "price.sql"rnrn刚学ORACLE比较菜,所用为ORACLE 10G
这个xml为什么错???
<em>这个</em>xml<em>为什么</em>错???rnrnrnrn rn 张三rn 29rn 男rn 7721409rn rn rnrn下面是frist.xslrnrnrnrnrnrnrn<em>为什么</em>在IE中不能正确显示rn
为什么这个
代码:rn[code=c]#include rnrnusing namespace std;rnclass Singletonrnrnprotected:rn Singleton() cout<<
.为什么下面的会错!很简单的错
.<em>为什么</em>下面的会错!很简单的错rn Function SqlStr(Str)rnrn Dim tmpstrrn tmpstr=Strrn tmpstr="'" & tmpstr & "'"rn SqlStr=tmpstrrn End Functionrn 这里是我要插入的语句 rn sql="insert into debug (date1,content) values(" rn sql=sql & sqlstr(date1) & "," & sqlstr(Request.Form("txt_content"))rn sql=sql & ")"rncontent字段取得的值它的类型为text数据库是sqlServerrn是rn 你好 'hello' rn rn生成的语句如下rninsert into debug (date1,content) values('2003-9-22 7:48:54', ' 你好 'hello' ')rn我想问一下如何连接 " 双引号呢? 谢谢了
这个语句也会错?
语句为:rnCREATE PROCEDURE my_test_proc() rnBEGINrn DECLARE my_variable INT;rnEND;$$rnrn执行会提示rnrn错误码: 1064rnYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INT' at line 3rnrn如果执行:rnCREATE PROCEDURE my_test_proc() rnBEGINrnrnEND;$$rnrn虽然没内容 但是可以成功执行。 <em>为什么</em>呢?rn rnDECLARE my_variable INT; 这句有错吗?匪夷所思啊!!!!!!
Python这个连接字符串为什么会不对啊???
[img=https://img-bbs.csdn.net/upload/201901/28/1548687678_453726.png][/img]rnrnrn就是最简单的把字符串连在一起,但第五项本来是01110011,连接完就变成了被圈住的那个黄色的部分,变成了1110011,不见了一个0rn这是<em>为什么</em>啊?rn我<em>感觉</em>是我字符串的问题,因为无论是用+还是"".join都不好使rn但是用"/".join就没有问题,可是我就是想把他们连在一起啊,所以很迷茫
为什么会错?大虾们。。。。
想创建一个自己的工具栏,在6.0下<em>没问题</em>,到08下就崩,<em>为什么</em>啊?rn代码如下:rnif (!m_DlgToolBar.Create(this, IDD_ADDRESS, rn CBRS_ALIGN_TOP, AFX_IDW_DIALOGBAR))rn rn TRACE0("Failed to create dialogbar\n");rn return -1; // fail to creatern rn if (!m_wndStatusBar.Create(this) ||rn !m_wndStatusBar.SetIndicators(indicators,rn sizeof(indicators)/sizeof(UINT)))rn rn TRACE0("Failed to create status bar\n");rn return -1; // fail to creatern
为什么这样会错啊
rnrn mio sito web rn un altro paragraforn rnrnrn
这段代码为什么会错????
pText:=PChar(memContent.Text);rn pPassword:=PChar(edtPassword.Text);rnrn nLenText:=Length(String(pText^));rn nLenPassword:=Length(String(pPassword^));rn j:=0;rn for i:=0 to nLenText-1 do beginrnrn pText[i]:=chr(Ord(pText[i])+Ord(pPassword[j]));//这里出错。rn inc(j);rn if j=(nLenPassword-1) then j:=0;rn End;
请问为什么这样会错?
我的如下语句:<>"1234") then %>rn在dreamwaever mx中预览中老是提示“语法错误”,<em>为什么</em>?该如何解决?谢谢!rn
以下语句为什么会错????????
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickrn Form1.Text = "xxxxxxxxxx"rn End Subrnrn错误提示:rn对非共享成员的引用要求对象引用。rnrnrn如何修改rn
下面这段为什么会错
main()rnint c1,c2;rn c1=97;rn c2=98;rnprintf(%c ,%c",c1,c2)
这样的写法为什么会错???
我已经设置好了table,datasource,dbgrid的属性了,然后想通过按钮把所有的记录显示出来,这样写的。rnrnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn table1.Filter:='grade<>" "';rnend;rnrnend.rnrn点击运行就出错,不知道什么原因,grade是我的表里的主键。
很简单的存储过程为什么会错
create PROCEDURE pr_DeleteFriend rn @fromname nvarchar(30),rn @toname nvarchar(30),rn @types nvarchar(1)rnrnASrnrn--@types代表的是删除的是好友还是预备好友 1预备好友,2好友rnrn if (@types=2)rn rn beginrn update tb_friend set isfriend='31' where fromname = @fromname and toname=@tonamernrn update tb_friend set isfriend='13' where fromname = @toname and toname=@fromnamern endrn elsernbeginrn update tb_friend set left(isfriend,1)='4' where fromname = @fromname and toname=@tonamern update tb_friend set right(isfriend,1)='4' where fromname = @toname and toname= @fromnamernend rnrnrn服务器: 消息 156,级别 15,状态 1,过程 pr_DeleteFriend,行 25rn在关键字 'left' 附近有语法错误。rn服务器: 消息 156,级别 15,状态 1,过程 pr_DeleteFriend,行 26rn在关键字 'right' 附近有语法错误。rnrn
这样为什么会错呢?
Create(i,SOCK_DGRAM,FD_READ | FD_WRITE),<em>为什么</em>会提示“cannot convert parameter 3 from 'const int' to 'const char *'”的呢,我已经#include "winsock.h"了啊?rn另外跳出FOR循环是用break吗,谢谢
这样定义为什么会错?
(1)CString str="C:\DOCUME~1\user\LOCALS~1\Temp\";错了!而CString str="C:\\DOCUME~1\\user\\LOCALS~1\\Temp\\";这样就没错!<em>为什么</em>呢?请指教?rnrn (2) DWORD length=260;rn CString m_strPath;rn GetTempPath(length,(LPTSTR)(LPCTSTR)m_strPath);rn 这3句代码获得了系统的临时文件夹的路劲,并存储到变量m_strPath中,在m_strPath中存储的是内容是C:\DOCUME~1\user\LOCALS~1\Temp\,由于MFC不能识别这种路径,我也不知道<em>为什么</em>,大家可以顺便和我解释一下;现在我想把C:\DOCUME~1\user\LOCALS~1\Temp\转换成C:\\DOCUME~1\\user\\LOCALS~1\\Temp\\,于是我用了m_strPath.Replace("\\","\\\\");结果还是没转换成功!用m_strPath.Replace("\","\\");确报了5个错误!<em>为什么</em>呢?<em>感觉</em>很奇怪!谢谢大家!rn
这样创建数据库为什么会错的?
在pl/sql developer 里面创建数据库<em>为什么</em>会错的? 登陆用户名为: SYS rncreate database 'fsdf';rnrn错误信息: database already mounted rnrn第二问: 一般用什么账户登陆pl/sql developer 才能有所有的权限呢?
我的程序为什么会错?
小弟初学Java,写了一个小程序,但是运行时有异常。rn--------------------rnimport java.io.*;rnrnpublic class FileScanerrn public static void DirScan(final String path)rn String p = new String(path);rn File f = new File(path);rn rn String[] fileList;rn fileList = f.list();rn for(int i = 0; i < fileList.length; i++)rn if (f.isDirectory() && (f.getName() != ".") && (f.getName() != ".."))rn DirScan(path+f.getName());rn elsern System.out.println(f.getAbsolutePath());rn rn rn rn rn public static void main(String[] args)rn DirScan(args[0]);rn rnrn-----------------------rn运行时出现:rnG:\TEMP>java FileScaner d:\downloadsrnException in thread "main" java.lang.NullPointerExceptionrn at FileScaner.DirScan(FileScaner.java:10)rn at FileScaner.DirScan(FileScaner.java:12)rn at FileScaner.main(FileScaner.java:20)rnrn我想知道我错在哪里?rnrn另外,我想问一下,有没有比较小的、好用的、图形界面的Java Debugger?不想装JBuilder这样的大家伙,但Jdb确实用起来有点难度。
为什么会出现这样的错?
交谈中请勿轻信汇款、中奖消息,勿轻易拨打陌生电话。rnrnprogram Project2;rnrn$APPTYPE CONSOLErnrnusesrn SysUtils;rn typern //子界类是整型,布尔型,字符型,枚举型中的一个,rn MyEnum=(red,green,blue,yellow,black,white);rn MySub1= blue..black;rn MyInt=0..10;rn varrn S1:MySub1;rn i:MyInt;rnbeginrn TODO -oUser -cConsole Main : Insert code here rn S1:= black;rn WriteLn(Ord(S1));rn WriteLn(Ord(Low(S1)));rn WriteLn(Ord(High(S1)));rnrn WriteLn(Ord(Low(i)));rn WriteLn(Ord(High(i)));rn Readln;rn //先定义了一个枚举类型而后又声明了子界类型,也可以这样的理解,后者是前者的子集rnend.rn<em>为什么</em>出现下列的错.rn[color=#FF0000][Hint] Project2.dpr(14): Variable 'i' is declared but never used in 'Project2'[/color]rn我不是已用了吗?
这代码为什么会错?!!!
if ((string)Session["Area"].ToString().Trim()==AreaList.GetValue(1).ToString().Trim())rnrnddlArea.Items.IsReadOnly; rn
简单脚本,为什么会错?
rnrnrn rn 新建网页 1rn rnrnrnrnrn asdfrnrnrnrn
请问这一句 ....为什么会错的!
response.write ""&rsyuangongmingdan("jigongshengming")& ""rnrn的谢谢
为什么这个样子??????????
set rs=db1.openrecordset(strrsname,dbopenDynaset)执行时报错,说类型不匹配,应该怎样解决?rn
PYTHON成语接龙代码
PYTHON<em>成语</em>接龙代码/只要你装了PYTHON就可以运行。本质是从文本导入数据,然后利用循环遍历来完成<em>成语</em>接龙/注释很详细,适合新手学习使用
为什么会提示这个
下面是一段代码我变异的时候总是提示这样的信息:rnrnTestProCon.java:68:找不到符号rn符号:Poper(Account4)rn位置:类 PoperrnrnPoper poper = new Poper(account);rnrnrn我不知道这是<em>为什么</em>,弄了半天也没弄好,rnrn只好向大家请教了,下面是我的源代码:rnrnrnclass Poper extends Threadrnrn Account4 account; rn public void Poper(Account4 account)rn rn this.account = account;rn rn public void run()rn rn for(int i = 0;i);rn notify();rn rnrnrnrnrnrnclass TestProConrnrn public static void main(String[] args)rn rn Account4 account = new Account4();rn Poper poper = new Poper(account);rn poper.start();rn rn
这个为什么会死循环?
rn rn rn rn " target="_blank" style="COLOR: #666; FONT-WEIGHT: 100;font-size:12px;">rn rn rn rn rn rn rn rn rn rn " target="_blank">" border="0" class="grayBorder" width='61' height='53' >rn rn " target="_blank">rn rn rn rn rn rn rn rn rn rn
这个为什么会非法操作
#include rn#include rn#include rn#include rn#include rn#include rnrn#define ID_TIME 1rnVOID CALLBACK TimerProc(HWND hwnd,UINT uMsg,UINT_PTR idEvent,DWORD dwTime);rnHHOOK gMouse;rnHHOOK gHkeyboard;rnHWND gHwnd;rnUINT mousestaut;rnCString FileName;rnCString xxx;rnCString yyy;rnCString ms;rnvoid ex();rnBOOL FileExist(CString strFileName);rnCFile fcc;rnLRESULT CALLBACK MouseProc(int nCode,WPARAM wParam,LPARAM lParam)rnrn LONG x,y; rn //char sz[100]; rn MOUSEHOOKSTRUCT *msdt=(MOUSEHOOKSTRUCT FAR *)lParam; rn x=msdt-> pt.x;rn y=msdt-> pt.y;rn //sprintf(sz, "%d,%d ",x,y); rn xxx.Format(_T("%ld"),x);rn yyy.Format(_T("%ld"),y);rn //TextOut(GetWindowDC(0),100,100,sz,strlen(sz)); rn LPMOUSEHOOKSTRUCT pMouseHook=(MOUSEHOOKSTRUCT FAR *)lParam; rn if(wParam==WM_LBUTTONDOWN) rn ms="7777";rn rn if(wParam==WM_RBUTTONDOWN)rn rn ms="8888";rn rn if(wParam==WM_LBUTTONDBLCLK)rn rn ms="9999";rn rn return CallNextHookEx(gMouse,nCode,wParam,lParam); rnrnLRESULT CALLBACK KeyProc(int node,WPARAM wParam,LPARAM lParam)rnrn if(VK_SPACE==wParam)rn rn UnhookWindowsHookEx(gMouse);rn UnhookWindowsHookEx(gHkeyboard);rn rn return 1;rnrnrnvoid SetHook(HWND Hwnd,BOOL yn)rnrn gHwnd=Hwnd;rn if(!yn)rn rn gMouse=SetWindowsHookEx(WH_MOUSE,MouseProc,GetModuleHandle("Dhook"),0); rn ex();rn fcc.Open(FileName,CFile::modeWrite,NULL);rn SetTimer(gHwnd,ID_TIME,150,(TIMERPROC)TimerProc); rn rn if(yn)rn rn rn UnhookWindowsHookEx(gMouse);rn KillTimer(gHwnd, ID_TIME);rn fcc.Close(); //这里就出现非法操作了rn MessageBox(Hwnd,FileName+"录制完成!","提示",0);rn rn rnrnBOOL FileExist(CString strFileName)rnrn CFileFind fFind;rn return fFind.FindFile(strFileName);rnrnvoid ex()rnrnrn CString FileNametmp;rn if(!PathFileExists("c:\\dr"))rn _mkdir("c:\\dr");rn for(int a=1;a;rn rn fcc.Flush();rnrnrn以上是DLL文件代码,SetHook都是先传FALSE的,一段时间后传TRUE,现在fcc.Close();只要一写上去就出问题了,请教如何解决,只要TimerProc内代码执行,除了把fcc.Close()写在这里面,其它的都不行,不懂,哎
为什么这个会报错
<em>为什么</em>在eclipse里这条语句会报错?Map m1 = new HashMap();rnType mismatch: cannot convert from HashMap to Maprn本人新手,望高手不吝赐教。。。3Q...
为什么会输出这个
[code=C/C++]#include rnusing namespace std; rnclass Human rn rnpublic: rn Human() rn rn cout <; rn i=999; rn rnprivate: rn int i; rn; rnint main() rn rn Human *p=new Human; //顺便帮忙解释一下这代码什么意思?rn return 0; rn[/code]rnrn还有,<em>为什么</em>会输出构造函数进行中……,main()里不只是定义一个指针并开辟空间吗?
python 成语接龙
# coding=utf-8 import xpinyin import random import pickle from collections import defaultdict #读文件获取词语列表 file = open('/tensorflow/py_aiplat_demo/data/ciyu.txt','r',encoding='gbk') line = file.readlin...
python成语接龙
1、概述 在<em>python</em>开发中要熟练字符串、列表、元组、字典等多种数据类型的使用,本文通过实现简单的<em>成语</em>接龙,来巩固<em>python</em>中的基础功能。 2、处理语料 我们可以从互联网上下载<em>成语</em>大全等语料,建议建议对语料进行处理和清洗之后读取到列表(list)中。请参考下面代码: # 读取数据 file = open('data/ChengYu.txt','r',encoding='gbk') l...
大家看看这个xml应用为什么会错
dim xmlDoc,root,NodeState,newNode,codeAtt,idAtt,nameAtt,dateAtt,maNode,xmlObjrnset xmlDoc=server.createObject("Microsoft.XMLDOM")rnxmlDoc.async=falsernxmlDoc.preserveWhiteSpace=truernset root=xmlDoc.createNode("element","合同列表","")rnxmlDoc.appendChild(root)rnsql="SELECT P_Paction.code, P_Paction.FID, P_Paction.Ptime, "&_rn "P_Pac.Name AS mname, P_Provide.Name "&_rn "FROM P_Paction INNER JOIN "&_rn "P_Pac ON P_Paction.FID = P_Pac.Pac INNER JOIN "&_rn "P_Provide ON P_Paction.Pvd = P_Provide.FID"rnset rs=db.execute(sql)rnIf not rs.eof thenrn set NodeState=xmlDoc.documentElement.SelectSingleNode("合同[@合同号='"&rs("fid")&"']")rn if NodeState=null thenrn set newNode=xmlDoc.createNode("element","合同","")rn xmlDoc.documentElement.appendChild(newNode)rn set idAtt=xmlDoc.createAttribute("合同号")rn idAtt.text=rs("fid")rn newNode.setAttributeNode(idAtt)rn set codeAtt=xmlDoc.createAttribute("编号")rn codeAtt.text=rs("code")rn newNode.setAttributeNode(codeAtt)rn set nameAtt=xmlDoc.createAttribute("供应商")rn nameAtt.text=rs("name")rn newNode.setAttributeNode(nameAtt)rn set dateAtt=xmlDoc.createNode("attribute","签订日期","")rn dateAtt.text=rs("ptime")rn newNode.appendChild(dateAtt)rn set maNode=xmlDoc.createNode("element","物料","")rn maNode.text=rs("mname")rn newNode.appendChild(maNode)rn set newNode=nothingrn set idAtt=nothingrn set codeAtt=nothingrn set nameAtt=nothingrn set dateAtt=nothingrn set maNode=nothingrn elsern set maNode=xmlDoc.createNode("element","物料","")rn maNode.text=rs("mname")rn NodeState.appendChilde(maNode)rn set maNode=nothingrn end ifrn set NodeState=nothingrn rs.movenextrnend Ifrnrnset xmlObj=xmlDoc.createProcessingInstruction("xml","version='1.0',encoding='gb2312'")rnxmlDoc.insertBefore xmlObj,xmlDoc.childNodes(0)rnxmlDoc.save(server.mappath("temp.xml"))rnrnrn错误提示为 set NodeState=xmlDoc.documentElement.SelectSingleNode("合同[@合同号='"&rs("fid")&"']")rn这一行变量对象为设置rnrn声明:temp.xml最初并不存在,我得想法是,先产生判断是否已经有<em>这个</em>合同,如果没有,侧建立子节点,如果有,侧在该子节点下面增加一个新得子节点,最后将xml保存rn
这个结构体里面嵌套结构体为什么会错?
#include rn#include rnint main()rnrn struct input1rn rn char a;rn int weight;rn struct input1 *left,*right;rn ;rnrn struct HeapStructrn rn struct input1 *element;rn int size;rn int Capacity;rn ;rnrn struct HeapStruct *H;rn H->element=(struct input1 *)malloc( 8 * sizeof(struct input1) );rn H->element[0]->weight=1;rnrnrn return 0;rnrn
想完成模糊查询的,这个错不知道为什么会产生
index.jsp中的表单部分代码rnrn rn rn rn CustomerName:rn rn rn rn Address:rn rn rn rn Phone:rn rn rn rn rn Add New Customerrn rn rn rn rn servlet中的调用方法中的代码rnprivate void query(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException rn [color=#FF0000]String name = request.getParameter(name);rn String address = request.getParameter(address);rn String phone = request.getParameter(phone);[/color] //这里的错误The local variable address may not have been initializedrn /*rn CriteriaCustomer cc = new CriteriaCustomer(name, address, phone);rn rn rn rn List customers = customerDAO.getForListWithCriteriaCustomer(cc);rn rn request.setAttribute("customers", customers);rn rn request.getRequestDispatcher("/index.jsp").forward(request, response);rn */rn
请问我这个代码为什么会错? 谢谢
private void menuItem9_Click(object sender, System.EventArgs e)rn rn Parameter dlg = new Parameter();// Parameter();rn dlg.nValue = 0;rn if (DialogResult.OK == dlg.ShowDialog())rn rn if(Filters.Brightness(m_Bitmap, dlg.nValue))rn this.Invalidate();rn rnrn rn错误提示如下:rn Form1.cs(319): The type or namespace name 'Parameter' could not be found (are you missing a using directive or an assembly reference?)rnrnForm1.cs(321): The type or namespace name 'dlg' could not be found (are you missing a using directive or an assembly reference?)rn谢谢!rn
高手帮忙看看这个程序为什么会错。
一个读取HTML文件中的标记和.rn如果都匹配就输出MATCH。否则就UNMATCH。rnimport java.io.*;rnpublic class backrnpublic static void main(String args[])rnrnint number1 = 0;rnint number2 = 0;rnrn//读取目标文件。rntryrnRandomAccessFile aFile = new RandomAccessFile("d:\\downloads\\a.html","r");rncatch(Exception e)rne.printStackTrace();rnrnrnString check ;rnString tag = ""; rnrnwhile(true)rntryrncheck = aFile.readUTF();rncatch(Exception e)rne.printStackTrace();rnbreak;//判断是否文件中还有没有字符串。如果没有,退出循环。rnrnif (check == "")rnnumber1++;//累计标记前缀的数量。rntag = "";rnrnif (check == "")rnrntag = "";rnnumber2++;//累计标记后缀的数量。rnrnrnif(number1 == number2)rnSystem.out.println("match!");rnelse rnSystem.out.println("unmatch");rnrn
大家帮我看看这个代码为什么会错!!小问题。在线!
if (name=="a")rnString sql="update vote set selecta=selecta+1";rn else if (name=="b")rnString sql="update vote set selectb=selectb+1";rnelse if (name=="c")rnString sql="update vote set selectc=selectc+1";rnelse if (name=="d")rnString sql="update vote set selectd=selectd+1";rnelse if (name=="e")rnString sql="update vote set selecte=selecte+1";rnelse if (name=="f")rnString sql="update vote set selectf=selectf+1";rnrnResultSet rs = stmt.executeQuery(sql);rnrn<em>为什么</em>说ResultSet rs = stmt.executeQuery(sql);这里的sql这里有问题rnrn谢谢了!!!
问一下这个程序为什么会错呢
nn```n #includen#includen/*获取小数*/n/*ndouble getfloat(double *pn)nn char c;int sign;n while (isspace(c = getchar()))n ;n if (isdigit(c) || c == '.' || c == '-')n n if (c == '-')n n sign = -1;n n else if (c == '.')n n int power=1;n while ((c = getchar()) != EOF&&isdigit(c))n n *pn = *pn * 10 + (c - '0');n power *= 10;n n printf("++%lf", *pn);n *pn = (*pn / power); printf("%lf", *pn);n return *pn;n n elsen n double temp=0.0;n for(;isdigit(c);c=getchar())n n *pn = *pn * 10 + (c - '0');n n double power = 0.0;n if (c == '.')n n c = getchar();n for (;isdigit(c);c = getchar())n n temp = 10 * temp + (c - '0');n power *= 10;n n n *pn = (*pn + temp / power); n return *pn;n n n elsen n return -1;n nnint main(void)nn double p = 0.0;n double *pn = &p;n double c=getfloat(pn);n printf("%lf",c);nn```nn
为什么这个存储过程会错呢????拜求!!!
rn-------------------------------------------------单科成绩细化表rnrnCREATE proc dkcjxh(@subjectid int) rnasrnrnselect rrt_examclass,rrt_studentid,rrt_mark into # from student where rrt_examsubjectid=@subjectid order by rrt_examclass,rrt_studentidrn--select * from #rn--drop table #rnrndeclare @sql0 nvarchar(4000),@sql1 nvarchar(4000),@sql2 nvarchar(4000),@sql3 nvarchar(4000),@sql4 nvarchar(4000),@sql5 nvarchar(4000),@sql6 nvarchar(4000),@sql7 nvarchar(4000),@sql8 nvarchar(4000),@sql9 nvarchar(4000),@sql10 nvarchar(4000)rnrnset @sql0=''rnset @sql1=''rnset @sql2=''rnset @sql3=''rnset @sql4=''rnset @sql5=''rnset @sql6=''rnset @sql7=''rnset @sql8=''rnset @sql9=''rnset @sql10=''rnselect @sql0=@sql0+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=140) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]' rn,@sql1=@sql1+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=130) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql2=@sql2+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=120) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql3=@sql3+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=110) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql4=@sql4+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=100) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql5=@sql5+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=90) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql6=@sql6+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=80) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql7=@sql7+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=70) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql8=@sql8+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=60) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql9=@sql9+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=50) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]'rn,@sql10=@sql10+',cast(sum(case when rrt_examclass='+cast(rrt_examclass as varchar(10))+' then 1 else 0 end) as nvarchar)+''/''+cast((select count(*) from # where rrt_examclass='+cast(rrt_examclass as varchar(10))+' and rrt_mark>=0) as nvarchar) as ['+cast(rrt_examclass as varchar(10))+'班]' from # group by rrt_examclass order by rrt_examclassrnrnrnexec ('rnselect ''140-150'' as 分数段'+@sql0+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=140) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark>=140 rnunion allrnselect ''130-139'' as 分数段'+@sql1+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=130) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=130rnunion allrnselect ''120-129'' as 分数段'+@sql2+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=120) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=120rnunion allrnselect ''110-119'' as 分数段'+@sql3+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=110) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=110rnunion allrnselect ''100-109'' as 分数段'+@sql4+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=100) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=100rnunion allrnselect ''90-99'' as 分数段'+@sql5+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=90) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=90rnunion allrnselect ''80-89'' as 分数段'+@sql6+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=80) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=80rnunion allrnselect ''70-79'' as 分数段'+@sql7+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=70) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=70rnunion allrnselect ''60-69'' as 分数段'+@sql8+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=60) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=60rnunion allrnselect ''50-59'' as 分数段'+@sql9+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=50) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark=50rnunion allrnselect ''0-49'' as 分数段'+@sql10+',cast(count(*) as nvarchar)+''/''+cast((select count(*) from # where rrt_mark>=0) as nvarchar) as [年段]rnfrom #rnwhere rrt_mark)rnrndrop table #rnGOrnrn请各位好心人有耐心的帮我看看好吗?在这里拜求!!!!
帮忙看看这个sql语句为什么会错
SELECT name + Char(9) + sex + Char(9) + driveid + Char(9) + idcard1num + Char(9) + inputdate AS Item,id,status FROM tab_student rnrninputdate为datetime类型rnrn服务器: 消息 241,级别 16,状态 1,行 2rn从字符串转换为 datetime 时发生语法错误。rnrn虚心求教。
大家帮我看看这个程序为什么会抱错
<em>这个</em>程序是书上的一个例子(还是清华大学出版社的)rn利用多重继承球圆柱体体积rn我照着打的可还抱错rn请大家帮我看看吧rn不做大的改动rn------------------------------------------rn#define PI 3.1415926rn#includernclass ccirclernrn float r;rnpublic:rn ccircle(float R)rn rn r=R;rn rn float getr(void)rn rn return r;rn rn;rnrnclass crectanglernrn float l,w;rnpublic:rn crectangle(float L)rn rn l=L;rn rn float getl(void)rn rn return l;rn rn;rnrnclass ccolumn:public ccircle, public crectanglernrn double v;rnpublic:rn ccolume(float L,float W):ccircle(W/2),crectangle(L)rn rn void volumn(void)rn rn v=PI*getr()*getr()*getl();rn rn void showvolumn(void)rn rn cout<<
这个名字的数据库,为什么会提示错??
DBCC SHRINKDATABASE "www_sport-sky_com"rnGOrnBACKUP LOG "www_sport-sky_com" WITH TRUNCATE_ONLYrnGOrn rn 服务器: 消息 170,级别 15,状态 1,行 1rn第 1 行: 'www_sport-sky_com' 附近有语法错误。rn我在删除日志时,出现上面错误,www_sport-_sky_com数据已经存在呀??
一直想不明白为什么这个代码会错
各位潜水vb高手,rnrn今天写一段代码,关于数组的,但是它一直报错说error: 9 subscipt out of range。rn左看右看也没明白,觉得<em>这个</em>数组初始化<em>没问题</em>啊。rnrn请赐教! 谢谢rn[img=https://img-bbs.csdn.net/upload/201512/29/1451371320_600963.png][/img]
这个文件输入输出为什么老错?
[code=C/C++]rnrn目的是打开一个文件,读入数据,处理后输入另一个文件。打开都成功了,就是不能读,一读就错。rnFILE*in=fopen(filename,"r");rn if (in==NULL)rn rn printf("errror:cannot open infile,编码失败\n");rn return;rn rn char filename2[20];rn strcpy(filename2,filename);rn strcat(filename2,".cp");rnrn FILE*out=fopen(filename2,"wb");rn if (out==NULL)rn rn printf("error: cannot open outfile\n");rn return;rn rnrn char buff[1024];rnrn//到这里,程序能到这,rn while (fgets(buff,1024,in)!=NULL)//一到这不就崩溃,单步进入后就是汇编了,我看不懂,用fread也错rn rn //dosomethingrn //whilernrn[/code]
这个代码为什么错啦?
Dim WithEvents x As HTMLDivElementrnrnPrivate Sub Command1_Click() '点前手动点下vbgood右上角的登陆,等待弹出登陆浮动窗口rn Dim doc As HTMLDDElementrn Set doc = ie1.Documentrn Set x = doc.getElementById("floatwin_login_mask")rnEnd SubrnrnPrivate Sub Form_Load()rnMe.Showrnie1.Navigate "http://www.vbgood.com/vbf.good"rnEnd SubrnrnPrivate Sub x_onresize()rn MsgBox "ok"rnEnd Subrnrn我是想判断那个登陆的浮动窗口弹出与否,模仿论坛某人的代码写的,可惜没反应,高手帮我看下那里错了?
这个错,为什么回有???????
Warning: ftp_chdir: //home/httpd/html/3s/ftp/huang76: No such file or directory. in /home/httpd/html/cad-e/ftp2.php3 on line 22rnrnWarning: ftp_put: response[1].txt: Permission denied. in /home/httpd/html/cad-e/ftp2.php3 on line 24rn我的那个文件里面有huang76<em>这个</em>文件夹呀,<em>为什么</em>说不纯在呀
简单问题,这个为什么错?
MySQLCommand cmd=new MySQLCommand("select password from hydraulic.operator where name=@operatorName",cnn);rn rn cnn.Open();rn strsql=cmd.CommandText.ToString();rnrn myReader=cmd.ExecuteReaderEx();rnrn if (myReader.FieldCount ==0)rn rn MessageBox.Show("请确认用户名及口令(大写/小写)是否正确!","登录失败:",MessageBoxButtons.OK,MessageBoxIcon.Error);rn this.ResetkeywordTextBox();rnrn rn rn while (myReader.Read())rn strsql=myReader["name"].ToString();rn MessageBox.Show(strsql);rn strsql=myReader["password"].ToString();rn MessageBox.Show(strsql);rn if (password!=myReader["password"].ToString())rn rn MessageBox.Show("请确认用户名及口令(大写/小写)是否正确!","登录失败:",MessageBoxButtons.OK,MessageBoxIcon.Error);rn this.ResetkeywordTextBox();rn rn rn elsern rn mainform form = new mainform();rn form.Show();rn this.Hide();rn rnrnrn在mysql里只有一条记录,name:system,password:system.可是当变量operatorName=ss时,居然myReader.FieldCount显示有一条记录?在执行到strsql=myReader["name"].ToString();时又报错说其他信息:列“name”不属于表 。是那里错了?请指点.还有,我以前用vb,不知道c#中<em>为什么</em>用@?@是什么意思?rn
这个断言错是为什么??
AFX_INLINE TYPE& CArray::ElementAt(int nIndex)rn ASSERT(nIndex >= 0 && nIndex < m_nSize);rn return m_pData[nIndex]; rn我的模板数组我很认真的查了,没有越界的.
AxWebBrowser为什么这个错?
Dim AxWebBrowser1 As AxSHDocVw.AxWebBrowserrn Tryrn AxWebBrowser1 = New AxSHDocVw.AxWebBrowserrn AxWebBrowser1.Parent = m_frmMain.tabIErn AxWebBrowser1.Left = 1rn AxWebBrowser1.Top = 1rn AxWebBrowser1.Width = 200rn AxWebBrowser1.Height = 100rn AxWebBrowser1.Navigate(strUrl)rnrncatchrnrnend tryrnrn------------------rnCannot invoke method 'Navigate' at this time.
为什么会报UnsupportedClassVersionError这个错?
写了一个a.htm的文件如下:rnrnrnrnrnrn然后执行appletviewer a.htmrn报错:rnjava.lang.UnsupportedClassVersionError: GetParamApplet (Unsupported major.minorrnversion 49.0)rn<em>为什么</em>会报UnsupportedClassVersionError<em>这个</em>错?rn
为什么这个方法会错?
OleDbDataAdapter da=new OleDbDataAdapter;rn...rnds.Fill(ds,"abc");//这句<em>为什么</em>会错?说什么ABC表是不是存在或拼写是否有错?我明明存在的啊!
为什么总是报这个
<em>为什么</em>总是报<em>这个</em>错:rntype Status reportrnrnmessage /index.jsprnrndescription The requested resource (/index.jsp) is not available.rnrn--------------------------------------------------------------------------------rnrn
为什么InstallAnywhere会报这个
我用的是InstallAnywhere 4rnrn我用它的一个向导包装了一个程序后,再试着解压执行,却发现有如下错误rnrnjava.lang.NoClassDefFoundError: javax/swing/UIManagerrnrn at rnrn at com.zerog.lax.LAX.launch(Compiled Code)rnrn at com.zerog.lax.LAX.main([DashoPro-V1.2-120198])rnrn请问,我错在什么地方呢??rnrn
这个程序为什么错在哪里
<em>这个</em>程序<em>为什么</em>错在哪里rnrn rn 用户: rn 标题: rn 内容: rnrn rnrn
这个SQL是错的,为什么?
是不是语法错了?请教高手.谢了.rnUpdate instore set instore.mix=class.mix where instore.no=class.no and instore.ver=class.ver
这个SQL语句为什么错??
adoquery2.Sql.Add(Format('select * from datetime where adddate>=''%s'' and adddate,datetimepicker2.Date+1)]));rnrn其中adddate字段格式为:2004-2-26rn运行时说:rn标准表达式中数据类型不匹配!
vc报这个错,为什么
开发工具 vs 2003 vc++,第一次用vc++rnsource已经做出来的大概框架rnrn大概过程:rn 我建立了一个.net里面的class Lib工程,原来做了好多source,能正常跑出来结果,但是发现需要引入afxext.h头文件,来作图。rnrn 于是引进了是三个头文件,分别是afxwin.h afxcmn.h afxext.hrn rn 编译直接报错rn 报错内容:rn        LIBCD.lib(crt0.obj) : error LNK2019: 无法解析的外部符号 _main ,该符号在函数 _mainCRTStartup 中被引用rn        Debug/PicOperation.exe : fatal error LNK1120: 1 个无法解析的外部命令 rnrn错误分析过程:rn 为了分析错误,我把所有source都删了,只留test.cpp, test.h两个文件里只留引用头文件那部分,其他全删rn 错误还是一样。rn 如果把上面的三个头文件删了,编译没错,只要加上就出上面<em>这个</em>错。rnrn ①是由于工程属性设置错了吗??我试验了,dll md,ml等等,也许我没作对,还是有错,请详细告诉我下rn ②或者是class lib的工程根本就不能用这三个头文件?rnrn谢谢大家回答。rnrn   rn
为什么总是报这个错!
MyEclipse6.5+Tomcat 6.0rnrn我从svn上下载的项目,什么也没动过,启动,就报错误rnrn[code=Java]rn2011-3-10 17:09:47 org.apache.catalina.core.ApplicationContext logrn严重: Error loading WebappClassLoaderrn delegate: falsern repositories:rn /WEB-INF/classes/rn-------- Parent Classloader:rnorg.apache.catalina.loader.StandardClassLoader@d1e604rn com.common.tools.ActionServletUTF8Encodingrnjava.lang.ClassNotFoundException: com.common.tools.ActionServletUTF8Encodingrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-3-10 17:09:47 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /mag threw load() exceptionrnjava.lang.ClassNotFoundException: com.common.tools.ActionServletUTF8Encodingrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1083)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn[/code]rnrn网上找了好多答案,说没有struts.jar,我手动把struts.jar复制粘贴到web-info/lib下,也不行。到底怎么回事啊!rn
Qt UDP通信,感觉代码没问题为什么通信异常?
定义一个协议 A5 A5 A5 A5 A5+977708个字节的图片+5A 5A 5A 5A 5A 5A <em>为什么</em>我写的通信有问题呢,接受到的图片写到本地有问题rn发送端:rnQByteArray arraySend;rnrn int iLen;rn QFile file("./carrun/5.jpg");rn if(file.open(QIODevice::ReadOnly))rn rn QByteArray array=file.read(1000000);rnrn arraySend=array;rn iLen=array.size()+11;rnrn file.close();rn qDebug()<<<
新人求助 为什么运行不显示 感觉没问题
rnrn```rn #include rn#include rn#include rn#define Maxsize 50rntypedef structrnrn int data[Maxsize];rn int length;rnrnSqlist;rnvoid ListInsert(Sqlist *l,int i,int e)rnrnrn int j;rn if(il->length+1)rn exit(-1);rn if(l->length>=Maxsize)rn exit(-1);rn for(j=l->length;j>=i;j--)rn l->data[j]=l->data[j-1];rn l->data[i-1]=e;rn l->length++;rnrnvoid dislist(Sqlist *l)rnrn int i;rn for(i=0;ilength;i++)rn printf("%d ",l->data[i]);rn printf("\n");rnrnvoid exchange(Sqlist *a,Sqlist *b,Sqlist *c)rnrn int i=0,j=0,k=0;rn while((ilength)&&(jlength))rn rn if(a->data[i]data[j])rn c->data[k++]=a->data[i++];rn else if(a->data[i]>b->data[j])rn c->data[k++]=b->data[j++];rn rn while(ilength)rn c->data[k++]=a->data[i++];rn while(jlength)rn c->data[k++]=b->data[j++];rn c->length=k;rnrnint main()rnrn Sqlist *a,*b,*c;rn a=(Sqlist*)malloc(sizeof(Sqlist));rn a->length=0;rn b=(Sqlist*)malloc(sizeof(Sqlist));rn b->length=0;rn c=(Sqlist*)malloc(sizeof(Sqlist));rn c->length=0;rn ListInsert(a,1,2);rn ListInsert(a,2,3);rn ListInsert(a,3,4);rn ListInsert(a,4,55);rn ListInsert(a,5,123);rn ListInsert(b,1,6);rn ListInsert(b,2,34);rn ListInsert(b,3,56);rn ListInsert(b,4,67);rn ListInsert(b,5,123);rn ListInsert(b,6,234);rn ListInsert(b,7,1234);rn exchange(a,b,c);rn printf("顺序表A:");rn dislist(a);rn printf("顺序表B:");rn dislist(b);rn printf("顺序表C: ");rn dislist(c);rn return 0;rnrn```rnrn
这个很简单的语句何会错!急!!!!!!!!!!!!
for i:=0 to tform1.ComponentCount-1 dorncase tform1.Components[i] is ofrndbedit8:rndosometings;rndbedit9:rndosometings;
python成语谱图
<em>python</em>生<em>成语</em>谱图 语音的时域分析和频域分析是语音分析的两种重要方法,但是都存在着局限性。时域分析对语音信号的频率特性没有直观的了解,频域特性中又没有语音信号随时间的变化关系。而语谱图综合了时域和频域的优点,明显的显示出了语音频谱随时间的变化情况、语谱图的横轴为时间,纵轴为频率,任意给定频率成分在给定时刻的强弱用颜色深浅来表示。颜色深的,频谱值...
成语
细思恐极:指仔细想想,觉得恐怖至极。
这个为什么会报错呢?
vector::const_reverse_iterator rev_begin=ivec.rbegin(),rev_end=ivec.rend();rnrn而改成rnvector::reverse_iterator rev_begin=ivec.rbegin(),rev_end=ivec.rend();rn就对了呢?rn<em>为什么</em>呢?rnrnrnivec是一个vector
这个程序为什么会出错~
public class test rnrn public static void main(String[] args)rn rn int i = 015;rn int j = 032; rn int l = 078;rn System.out.println(i);rn System.out.println(j);rn System.out.println(l);rn rnrn出错提示:test.java:7: integer number too large: 078
为什么 这个语句会出错?
select top 1 *,(select count(*) from mf_post where (threadid = Aa.threadid)) as threadpostcount from mf_thread Aa inner join mf_user Bb on Aa.userid = Bb.userid where (forumid = 1) and (threadid not in (select top 0 threadid form mf_thread where (forumid = 1))) order by threadid desc
为什么会出现这个错误???
想处理汉字乱码问题..我这样写了..rnrnrn但出现了<em>这个</em>错误..rndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperExceptionrn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjava.lang.NullPointerExceptionrn org.apache.jsp._5_jsp._jspService(org.apache.jsp._5_jsp:61)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn不是这要处理汉字的吗??那应该如何
这个程序为什么会崩溃?
<em>这个</em>程序将每个输入到vector对象中的字符串都转换为大写字母并输出,可是<em>为什么</em>我输完并且ctrl+z回车以后程序就会崩溃呢?rn[code=C/C++]rn#include rn#include rn#include rn#include rnusing namespace std;rnrnint main()rnrn vector strvec;rn string str;rn while (cin >> str)rn rn strvec.push_back(str);rn rn if (strvec.size() == 0)rn rn cout << "No string?!" << endl;rn return -1;rn rn for (vector::size_type ix; ix != strvec.size(); ++ix)rn rn for (string::size_type i = 0; i != strvec[ix].size(); ++i)rn rn strvec[ix][i] = toupper(strvec[ix][i]);rn cout << strvec[ix] << " ";rn if ((ix + 1) % 8 == 0) rn cout << endl;rn rn rn return 0;rnrn[/code]rn
为什么会出现这个警告?
我在CB下编译及Borland C++3.1下编译都没有任何警告,但在VC里编译就会有警告,不知是不是VC编译器的问题?rnchar ch[2]=0x1,0x2;rnrn警告信息:rnwarining C4305:initializing truncation from 'const int' to 'char'rnwarining C4309:truncation of constant value
SRT、SSA格式字幕调整全攻略下载
SRT、SSA格式字幕调整全攻略。对硬盘播放器用户挺有用的 相关下载链接:[url=//download.csdn.net/download/itslife_999/5844857?utm_source=bbsseo]//download.csdn.net/download/itslife_999/5844857?utm_source=bbsseo[/url]
Edge后台程序下载
Windows 服务程序,现实公司项目,收藏学习 相关下载链接:[url=//download.csdn.net/download/helloaug/6431631?utm_source=bbsseo]//download.csdn.net/download/helloaug/6431631?utm_source=bbsseo[/url]
进存销软件下载
江西杰信进存销管理软件,没有最好,只有更好! 相关下载链接:[url=//download.csdn.net/download/jxxfhj/8298115?utm_source=bbsseo]//download.csdn.net/download/jxxfhj/8298115?utm_source=bbsseo[/url]
相关热词 c# 标准差 计算 c#siki第五季 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池
我们是很有底线的