大佬帮忙看一下出了什么问题 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
帮忙看一下出了什么问题
//头文件"A.h"rnclass Arnrnpublic:rn float fac(int);rn;rn//实现"A.cpp"rn#includernusing std::cout;rnusing std::cin;rnusing std::endl;rn#include"A.h"rnrnfloat xuexun_t:: fac(int n)rnrn float f;rn if(n<<>n;rn y=fac(n);rn cout<<
帮忙看一下出了什么问题?谢谢
rn当程序运行到(1)时就会跳出如下提示:“Microsoft Jet 数据库引擎找不到输入表rn或查询‘Am2003’。确定它是否存在,以及它的名称的拼写是否正确。”rn不知道是什么原因,急死我了,哪位帮我一下哦,谢谢!!!rnrn//创建表并把上一年未记帐的记录移到新表中rnvoid CPageAmmeter::CreatTable()rnrn CString strLast,strThis;rn int iLast,iThis;rn iThis=CurrentTime.GetYear();rn strThis.Format("%d",iThis);rn if(m_comboYear.FindString(-1,strThis)==CB_ERR)rn rn // 通过ODBC打开数据库rn const char strDSN[]="Base";//指定你的ODBC数据源名称rn CDatabase database;rn tryrn rn if( !database.Open(strDSN) )rn AfxMessageBox("不能联接指定的数据库!");;rn rn catch(CDBException * e)rn rn AfxMessageBox(e->m_strError);rn rn // 创建表结构rn CString sSql,sTName;rn sTName="Am";rn sTName+=strThis;rn sSql.Format("CREATE TABLE %s (流水号 COUNTER,名称 TEXT,底码 FLOAT,底码2 FLOAT,底码3 FLOAT,电价 CURRENCY,金额 CURRENCY,审核日期 DATETIME,记帐日期 DATETIME,备注 TEXT)",sTName);rn database.ExecuteSQL(sSql);rn // 关闭数据库rn database.Close();rnrn //把上一年未记帐的记录移到新表中rn iLast=iThis-1;rn strLast.Format("%d",iLast);rn if(m_comboYear.FindString(-1,strLast)!=CB_ERR)rn rn CAmRecordset AmSet2;rn sTName="Am";rn sTName+=strLast;rn //得到上年未记帐的记录rn AmSet2.Open(AFX_DB_USE_DEFAULT_TYPE,sTName);rn AmSet2.m_strFilter="year(记帐日期)=1979";rn AmSet2.m_strSort="名称";rn AmSet2.Requery();rn AmSet2.MoveFirst();rnrn sTName="Am";rn sTName+=strThis;rn(A)>>> m_AmSet.Open(AFX_DB_USE_DEFAULT_TYPE,sTName);rnrn //上年未记帐记录移到今年rn dorn rn m_AmSet.AddNew();rn m_AmSet.m_column2=AmSet2.m_column2;rn m_AmSet.m_column3=AmSet2.m_column3;rn m_AmSet.m_column4=AmSet2.m_column4;rn m_AmSet.Update();rn AmSet2.MoveNext();rn while(!AmSet2.IsEOF());rn m_AmSet.Close();rn AmSet2.Close();rn rn rn
大家帮忙看一下出了什么问题
rnWarning: fopen(http://192.168.0.2/category_list_sub.php?cid=117): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/www/market/includes/Issence/fun.php on line 229rnrnWarning: fread(): supplied argument is not a valid stream resource in /home/www/market/includes/Issence/fun.php on line 232rnrnWarning: fclose(): supplied argument is not a valid stream resource in /home/www/market/includes/Issence/fun.php on line 239rn rn 小弟学Smarty不久,那位大哥知道<em>出了</em><em>什么问题</em>,请告诉小弟一声,谢谢!rn可以进下面网站<em>看一下</em>!rnhttp://issence.3322.org/market/category_list.php?cid=117rn不知道<em>出了</em><em>什么问题</em>,超级郁闷!
帮我看一下出了什么问题????
using System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Drawing;rnusing System.Text;rnusing System.Data;rnusing System.Windows.Forms;rnusing System.Configuration;rnusing System.Data.SqlClient;rnrnnamespace winform08rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rn private [color=#FF0000]SqlConnection[/color] getConnection()rn rn //return new SqlConnection(ConfigurationManager.ConnectionStrings["DataBase"].ConnectionString);rn rn private void Form1_Load(object sender, EventArgs e)rn rnrn rn rnrnrnrnrn错误提示为:rnrn错误 1 类型“System.Data.SqlClient.SqlConnection”同时存在于“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll”和“d:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\System.Data.SqlClient.dll”中 C:\Documents and Settings\Administrator\桌面\winform08\winform08\Form1.cs 19 17 winform08rn
帮忙看一下这段代码出了什么问题?
这是一个,自由移动的图片的代码:rn rnrnrn rn
帮忙看一下我的存储过程出了什么问题
我写了一个做分页的存储过程(写了一半),在测试的时候<em>出了</em>错误。不知道错误在那里rncreate proc fenye2rn(rn@table_name varchar(100),--表名rn@primary_key varchar(100),--唯一字段rn@strGetFields varchar(1000) , -- 需要返回的列 rn@strOrder varchar(400), -- 排序类型rn@pagesize int, --页面大小,如每页存储20条记录rn@pageindex int, --当前页码rn@condition varchar(3000), --查询条件rn@all int OUTPUTrn)rnrnrnrnas rnrnrnbeginrndeclare @max intrndeclare @min intrndeclare @sql varchar(8000)rnrnrnset @sql = 'select @all = count(*) from '+@table_name+' '+@conditionrnrnrnexecute sp_executesql rn@sql, --执行上面的sql语句rnN'@all int OUTPUT' , --执行输出数据的sql语句,output出总记录数rn@all OUTPUTrnrnEXECUTE sp_executesql N'SELECT * FROM AdventureWorks.HumanResources.Employee WHERE ManagerID = @level', N'@level tinyint', @level = 109;rnrnrnset @max=@pagesize*@pageindexrnset @min=@pagesize*(@pageindex-1)rnrnset @sql='select * from (select top '+ltrim(@max)+' '+@strGetFields+' from '+@table_name+' '+@condition+ 'order by '+@strOrder+' ) a where '+@primary_keyrn+' not in (select top '+ltrim(@min)+' '+@primary_key+' from '+@table_name+' '+@condition+'order by '+@strOrder+')';rnrn--exec rn--set @sql='select * from (select top'+@maxrnrn--print @allrnrnexecute (@sql)rnrnrnendrnrnrngo rnrnrn错误信息:rn服务器: 消息 214,级别 16,状态 2,过程 sp_executesql,行 27rn过程需要参数 '@statement' 为 'ntext/nchar/nvarchar' 类型。rnrn应该是在rnexecute sp_executesql rn@sql, --执行上面的sql语句rnN'@all int OUTPUT' , --执行输出数据的sql语句,output出总记录数rn@all OUTPUTrn这一段出的问题,不过本事没怎么用过sp_executesql不知道这样写对不对。能不能把要的值付给@all
struts路径不知道出了什么问题帮忙看一下
HTTP Status 400 - Invalid path /Admin/Admin/login was requestedrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage Invalid path /Admin/Admin/login was requestedrnrndescription The request sent by the client was syntactically incorrect (Invalid path /Admin/Admin/login was requested).rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/6.0.30rnrnrnrn[code=XML]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rn[code=HTML]rn rn[/code]
请各位帮忙看一下出了什么问题
set rs=server.createobject("adodb.recordset")rn rs.open "select * from saleproduct where name='"guestname"' and number='"guestnuber"'",conn,3,3rn老显示第二句出错:标准表达式中数据类型不区配。谢了
大佬帮忙看一下
[code=perl]#include rn#include rn#include rnvoid Gain(int t);rnvoid Insert();rnvoid Del();rnvoid Change();rnvoid Seek();rnvoid All();rnint List();rntypedef struct dzzzrn int num;rn char name[12];rn int zw;rnDATA;rnstruct nodern DATA data;rn struct node *next;rn*head,*tail;rnint main()rn int t,x;rn printf("请输入学生数目:\n");rn scanf("%d",&t);rn Gain(t);rn while(1)rn x=List();rn if(x==1)rn Insert();rn else if(x==2)rn Seek();rn else if(x==3)rn Del();rn else if(x==4)rn Change();rn else if(x==5)rn All();rn elsern break;rn rn return 0;rnrnvoid Gain(int t)rn head=(struct node*)malloc(sizeof(struct node));rn tail =head;rn head->next=NULL;rn while(t--)rn tail=tail->next;rn printf("第%d名同学的学号 名字 座号为:\n");rn scanf("%d%s%d",&tail->data.num,tail->data.name,&tail->data.zw);rn rn tail->next=NULL;rn tail=head;rnrnvoid Insert()rn struct node *s,*p;rn int j=0;rn p=head;rn printf("请输入学号 姓名 座号:\n");rn scanf("%d%s%d",&s->data.num,s->data.name,&s->data.zw);rn while(jdata.num-1&&p!=NULL)rn p=p->next;rn j++;rn rn if(p==NULL)rn printf("无法插入数据!\n");rn elsern s->next=p->next;rn p->next=s;rn printf("数据插入成功!\n");rn rnrnvoid Del()rn struct node *h,*p;rn int j=0;rn printf("请输入要删除的数据:\n");rn p=head;rn scanf("%d%s%d",&h->data.num,h->data.name,&h->data.zw);rn while(jdata.num-1&&p!=NULL)rn p=p->next;rn j++;rn rn if(h==NULL)rn printf("无法删除数据!\n");rn elsern p->next=p->next->next;rnrnrnvoid Change()rn struct node *p,*y;rn int t=0;rn p=head;rn printf("请输入您要更改的信息:学号,姓名,座号\n");rn scanf("%d%s%d",&y->data.num,y->data.name,&y->data.zw);rn while(tdata.num-1&&p!=NULL)rn p=p->next;rn t++;rn rn y->next=p->next->next;rn p->next=y;rn printf("修改成功!\n");rnrnvoid Seek()rn int x;rn char t;rn int numm;rn char xmm[12];rn struct node *p;rn p=head->next;rn printf("请输入1.姓名或2.学号:\n");rn while(1)rn scanf("%d",&x);rn if(x==1)rn scanf("%s",xmm);rn while(strcmp(xmm,p->data.name)!=0)rn p=p->next;rn rn printf("%d,%s,%d\n",p->data.num,p->data.name,p->data.zw);rn else if(x==2)rn scanf("%d",&numm);rn while(numm!=p->data.num)rn p=p->next;rn rn printf("%d,%s,%d\n",p->data.num,p->data.name,p->data.zw);rn elsern printf("输入错误!\n");rn printf("结束输入时请输入:N/n\n");rn scanf("%c",&t);rn if(t=='n'||t=='N')rn break;rn rnrnvoid All()rn struct node *p;rn p=head;rn while(p!=NULL)rn p=p->next;rn printf("学号:%d 姓名:%s 座号:%d\n",p->data.num,p->data.name,p->data.zw);rn rnrnint List()rn int t;rn printf(" --------------------------|----------------|--------------------------\n");rn printf(" --------------------------|学生宿舍管理系统|--------------------------\n");rn printf(" --------------------------|----------------|--------------------------\n");rn printf(" ----------------------------1.插入学生信息----------------------------\n");rn printf(" ----------------------------2.查询学生信息----------------------------\n");rn printf(" ----------------------------3.删除学生信息----------------------------\n");rn printf(" ----------------------------4.更改学生信息----------------------------\n");rn printf(" ----------------------------5.查看全部信息----------------------------\n");rn printf("请输入序号:\n");rn while(1)rn scanf("%d",&t);rn if(t>6||t);rn elsern break;rn rn return t;rn[/code]rn感激不尽 !
大佬帮忙看一下
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: Error updating database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionExcep...
帮忙看一下这是什么问题
Apache Tomcat/4.0.6 - HTTP Status 500 - No Context configured to process this requestrnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage No Context configured to process this requestrnrndescription The server encountered an internal error (No Context configured to process this request) that prevented it from fulfilling this request.rn
帮忙看一下什么问题!!
spe:string;rnspe:=fieldbyname('f_mark').asstring;rn case spe ofrn '1':rn[f_mark]是char类型的,rn这有什么错误啊,rn提示是:ordinal type required
帮忙看一下!这是什么问题??
提交后有保存到数据库里,但资料没添加进去只有加入一个ID号rnrnset rs=server.createobject("adodb.recordset")rnsql="select * from qeye"rnrs.open sql,conn,1,3rnrnrs.addnewrnrs("lind_named")=namedrnrs("lind_content")=contentrnrs("lind_leanxi")=leanxirnrs("lind_kind")=kindrnrs("lind_ip")=iprnrs("lind_danhuae")=danhuaernrs("lind_fax")=faxrnrs("lind_ipe")=ipernrs("lind_ub")=ubrnrs("datetime")=date()rnrs("lind_url")=urlrnrs.updaternrs.closernset rs=nothingrnresponse.write" " & chr(13)rnresponse.endrnend ifrnrnrn
请ubuntu的大佬帮忙看一下
按wiki教程安装ros的出现问题,以前安装的时候都没有问题。rnrn这是输入 sudo apt-get -f install 出现的错误。rnrn/var/cache/apt/archives/python-catkin-pkg-modules_0.4.7-1_all.debrn/var/cache/apt/archives/python-catkin-pkg_0.4.7-100_all.debrnE:Sub-process /usr/bin/dpkg returned an error code(1)rnrn现在无法安装任何包,也无法卸载任何包。rn重装了好几次ubuntu了,心累!不想重装了!rnrn[img=https://img-bbs.csdn.net/upload/201808/01/1533113894_479284.png][/img]rn
哪位编程大佬帮忙看一下
问题描述rn  对于一个多边形,如果可以通过它本身复制多次来不重不漏地覆盖一个无限的二维平面,我们就称这个多边形能铺满平面。图1展示了一个L型的多边形,图2展示了它如何不重不漏地铺满平面。你需要写一个程序来判断给出的多边形是否能铺满平面。rnrn  每组测试数据由一个闭合的多边形组成,这个多边形所有的角均为直角,每条边的长度均为单位长度的整数倍。你可以随意地复制这个多边形,也可以在平面上随意移动它们,但不能旋转或翻转任意一个多边形。rnrn  以下是一些可能有用的信息:rn  只有两种本质不同的铺满平面的情况:使用正四边形铺满平面(棋盘覆盖),或使用正六边形铺满平面(蜂巢覆盖)。一个多边形当且仅当满足以下两个条件中至少一个时可以铺满平面:rn  1. 在多边形边界上顺次存在四个点A,B,C,D(不一定要是多边形的顶点),使得A到B的边界与D到C的边界重合,B到C的边界与A到D的边界重合。这表明这个多边形可以用棋盘覆盖的方式铺满平面。rn  2. 在多边形边界上顺次存在六个点A,B,C,D,E,F(不一定要是多边形的顶点),使得A到B的边界与E到D的边界重合,B到C的边界与F到E的边界重合,C到D的边界与A到F的边界重合。这表明这个多边形可以用蜂巢覆盖的方式铺满平面。rn输入格式rn  输入包含对多个多边形的描述,每一行表示一个询问的多边形。rn  每一行以一个整数n开始,表示多边形的边数。接下来按逆时针顺序描述每一条边,每一个描述都是一个字母后跟一个数字,字母是“N”、“E”、“S”或“W”,表示线段的方向分别为北、东、南或西,数字表示该线段长度是多少个单位。保证多边形不与自身连接或相交。rn  输入以单独一行“0”结束。rn输出格式rn  对于每个多边形,输出一行。rn  首先输出多边形的编号,接下来如果该多边形能铺满平面,则输出“Possible”,如果该多边形不能铺满平面,则输出“Impossible”。具体见样例输出的格式。rn样例输入rn6 N 3 W 1 S 4 E 4 N 1 W 3rn8 E 5 N 1 W 3 N 3 E 2 N 1 W 4 S 5rn0rn样例输出rnPolygon 1: PossiblernPolygon 2: Impossiblern数据规模和约定rn  30%的数据,n ≤ 20,多边形周长 ≤ 20rn  100%的数据,n ≤ 50,多边形周长 ≤ 50,每个测试数据中不超过50个多边形。
请各位大佬帮忙看一下
各位<em>大佬</em><em>帮忙</em><em>看一下</em>做的坦克大战的游戏,不知道为什么生成敌人的坦克的时候总是在凤凰老家的位置生成,明明代码里面没写这个位置的
大家帮忙看看出了什么问题
echo date("Y-M-d, H:i a","20030108202144");rnrn得出的结果是:2038-Jan-19, 11:14 am 。rnrn20030108202144是从Mysql里取出的Timestamp。
大虾帮忙看看出了什么问题??
rnrnrnrnrn rnJsp1rnrnrnrn rnJBuilder Generated JSP rn rnrnrnrnrnrn错误显示:"Jsp1.jsp": Error #: 300 : variable rs1 not found in class Jsp1_0002ejsp_jsp at line 28rn请问<em>出了</em><em>什么问题</em>?可以实现删除操作的,数据库连接没问题的
帮忙看一下SQL存储过程输出参数究竟出了什么问题
use pubsrngorn------数据分页存储过程------rnCREATE PROCEDURE ReturnPageDatarn(rn@SQL nVARCHAR(4000), --查询语句rn@Page int, --当前页数rn@RecsPerPage int, --分页项数rn@ID VARCHAR(255), --主键字段rn@Sort VARCHAR(255), --排序字段rn@SortType smallint =0, --排序方式rn@Itemcnt int output --输出总记录数rn)rnASrnDECLARE @Str nVARCHAR(4000)rnDeclare @strSortType nvarchar(10) ----数据排序规则ArnDeclare @strFSortType nvarchar(10) ----数据排序规则Brnif @SortType=0rnbeginrn set @strFSortType=' ASC 'rn set @strSortType=' DESC 'rnendrnelsernbeginrn set @strFSortType=' DESC 'rn set @strSortType=' ASC 'rnendrnrnSET @Str='SELECT TOP '+CAST(@RecsPerPage AS VARCHAR(20))+' * FROM ('+@SQL+') T WHERE T.'+@ID+' NOT IN rn(SELECT TOP '+CAST((@RecsPerPage*(@Page-1)) AS VARCHAR(20))+' '+@ID+' FROM ('+@SQL+') T9 ORDER BY '+@Sort+' '+@strSortType+') ORDER BY '+@Sort+' '+@strFSortTypernEXEC sp_ExecuteSql @Strrnrnset @Str='select count(*) itemCount from ('+CAST(@sql AS varchar(100))+') x'rnexec @Itemcnt =sp_executesql @Str rnreturn rnGOrnrn------调用------rndeclare @imcnt intrnEXEC ReturnPageData 'select * from titles', 1, 5, 'title_id', 'pubdate',@Itemcnt=@imcnt outputrnprint @imcntrnrn----这里为什么@pcnt打印出来一直为0,但偏偏执行查询的结果却显示正常??
请各位帮忙看一下我更新数据库是出了什么问题
private void returnButton_Click(object sender, EventArgs e)rn rn rn rn tryrn rn SqlConnection myConn = new SqlConnection();rn myConn.Open();rn if (SqlConn.OpenDbConnection(myConn))rn rn string sqlString = "select * from test";rnrn SqlCommand myComm = new SqlCommand(sqlString, myConn);rnrn SqlDataReader myReader = myComm.ExecuteReader();rn myReader.Read();rnrn while (myReader.Read())rn rnrnrn SqlConnection myConn2 = new SqlConnection();rnrn if (SqlConn.OpenDbConnection(myConn2))rn rnrn string sqlString2 = "update test set Translation = null";rnrnrn SqlCommand myComm2 = new SqlCommand(sqlString2, myConn2);rn myComm2.ExecuteNonQuery();rnrnrn rn rnrnrn string sqlString3 = "select * from test";rnrn DataSet mySet = new DataSet();rnrn myComm.Connection = myConn;rn myComm.CommandText = sqlString3;rnrnrnrn translationGridView.DataSource = mySet.Tables;rnrn myComm.Dispose();rn myConn.Close();rn myReader.Close();rnrnrnrn rnrn rnrn catch (Exception ex)rn rn MessageBox.Show(ex.Message);rn rnrnrn rnrn请各位<em>看一下</em><em>出了</em><em>什么问题</em>,不能运行出结果!rn
,是兄弟的帮忙看一下到底我的网页出了什么问题。(附图)
下面这个网页有点问题。不知道是什么原因。rnrn有问题的网页:http://wlbookwl.myrice.com/book.htmrn有问题的网页截图:http://wlbookwl.myrice.com/image/wt.jpgrnrnrn有个网友在浏览这个页面时网页会显示的不全。究竟是怎么回事。rnrn兄弟们<em>帮忙</em>测试一下。我也搞不清楚为什么会他用ie显示出这样的网页来。rn 他的配置是win2000.ie6.rnrn是我的网页做的有问题吗。
求大神看一下这是出了什么问题
做C#连SQL数据库,在数据库添加数据可以添加,在窗体点击添加按钮时就会说主键冲突
大家帮我看一下这个存储过程出了什么问题!!!???
以下是我的存储过程:解决的问题是在注册时如果登陆名存在返回"信息1",如果在插表中途异常出错则返回"信息2",插入成功返回"信息3"..现在的问题是当异常出错时造成调用该存储过程的页面出错..在查询分析器里的报错信息是:rnrn服务器: 消息 3902,级别 16,状态 1,过程 pr_inter_reg,行 62rnCOMMIT TRANSACTION 请求没有对应的 BEGIN TRANSACTION。rnrn是不是我的存储过程存在结构错误问题rnrncreate proc pr_inter_reg @cpname nvarchar(40)rnasrnset nocount onrncreate table #t (str nvarchar(40))rnselect * from Tlogname where logname=@cpnamernif @@rowcount>0rn beginrn insert #t select '登陆名存在!' ------信息1rn endrnelsern beginrn insert #t select '异常出错!' -------信息2rn begin tran inter_insertrn insert Tlogname select @cpnamern if @@error!=0 or @@rowcount=0 ----Tlogname表中lognid是自增的rn beginrn rollback tran inter_insertrn endrn insert Tcompany_user select lognid,@cpname -----Tcompany_user 表rn from Tlogname where logname=@cpnamern if @@error!=0 or @@rowcount=0 rn beginrn rollback tran inter_insertrn endrn insert Tcuser_assist select lognid,'n'rn from Tlogname where logname=@cpnamern if @@error!=0 or @@rowcount=0 rn beginrn rollback tran inter_insertrn endrn insert Tcuser_bill select lognid,'0',3rn from Tlognamern where Tlogname.logname=@cpname rn if @@error!=0 or @@rowcount=0 rn beginrn rollback tran inter_insertrn endrn commit tran inter_insertrn update #t set str='注册成功!' ------信息3rn end rnselect str from #trngo
求救,请帮我看一下出了什么问题
我的程序运行可以,但是得不到我想要的结果。需要可以输入一段文字,然后数一下里面有多少个字符(character),还有多少个单词( words),有多少行(line),每个字符出现几次。 rn代码在下面: rnrnimport java.io.*; rnimport java.util.StringTokenizer; rnrnpublic class InputTest rn rnpublic static void main (String[] args) rnthrows IOException rn rnBufferedReader console= new BufferedReader ( rnnew InputStreamReader(System.in)); rnrnSystem.out.println ( " Enter your text, please( In Dos you type Ctrl+c, on UNIX you type Ctrl+D to finish your text): " + " \n" ); rnboolean done= false; rndo rn rnString inputLine = console.readLine(); rnif ( inputLine==null) rn rndone = true; rnSystem.out.println ( " Error, can not read the text."); rn rnelse rn rn// count the number of words and characters rnint characters=0; rnStringTokenizer tokenizer= new StringTokenizer(inputLine); rnint words= tokenizer.countTokens(); rnString[] data= new String[words]; rnfor ( int i=0; i
大家帮我看一下,我的代码出了什么问题
下面是我的代码:rnrnimport javax.swing.*;rnimport java.awt.*;rnimport java.awt.event.*;rnrnpublic class Caculate extends JFrame implements ActionListenerrnrnJPanel p1=new JPanel();rnJPanel p2=new JPanel();rnJTextField tf=new JTextField(" ",12);rnJButton bt[]=new JButton[16];rnString s="";rnboolean start;rnDouble number1; rnchar op='='; rnrnCaculate(String string)rnrnrnsuper(string);rnp1.add(tf);rnp2.setLayout(new GridLayout(4,4,2,2));rnString s="789+456-123*0.=/";rnchar c;rnint i;rnfor (i=0;i--------------------rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:87: compute(java.lang.Double) in Caculate cannot be applied to (double)rncompute(Double.parseDouble(tf.getText())); //compute result when press +-*/=rn^rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:101: parseDouble(java.lang.String) in java.lang.Double cannot be applied to (java.lang.Double)rnnumber1=Double.parseDouble(s);rn^rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:106: parseDouble(java.lang.String) in java.lang.Double cannot be applied to (java.lang.Double)rnnumber1+=Double.parseDouble(s);rn^rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:106: incompatible typesrnfound : java.lang.Stringrnrequired: java.lang.Doublernnumber1+=Double.parseDouble(s);rn^rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:111: parseDouble(java.lang.String) in java.lang.Double cannot be applied to (java.lang.Double)rnnumber1-=Double.parseDouble(s);rn^rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:116: parseDouble(java.lang.String) in java.lang.Double cannot be applied to (java.lang.Double)rnnumber1*=Double.parseDouble(s);rn^rnD:\Program Files\Xinox Software\JCreator Pro\MyProjects\Caculate.java:121: parseDouble(java.lang.String) in java.lang.Double cannot be applied to (java.lang.Double)rnnumber1/=Double.parseDouble(s);rn^rn7 errorsrnrnProcess completed.rnrn这到底是怎么回事啊?多谢了!
代码帮忙看一下什么问题
rnrnrn rnrnrnrnrnrn insert into SysUser (UserName,UserPassword)rn values(?,?)rn rn rn
出了什么问题
我的程序如下:rnunit Unit2;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls;rnrntypern TForm1 = class(TForm)rn Button1: TButton;rn Edit1: TEdit;rn Edit2: TEdit;rn Edit3: TEdit;rn Edit4: TEdit;rn Edit5: TEdit;rn Edit6: TEdit;rn Edit7: TEdit;rn procedure Button1Click(Sender: TObject);rnrn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rnrnimplementationrnrn$R *.dfmrnFunction AddUp(i:integer;j:integer):integer;rnVarrn s,k:integer;rnbeginrn s:=0;rn For k:=i To j dorn beginrn s:=s+StrToInt(TEDIT(FindComponent('Edit'+IntToStr(k))).Text)rn end;rn AddUp:=s;rnend;rnprocedure TForm1.Button1Click(Sender: TObject);rnVarrn i,j,s:integer;rnbeginrn i:=StrToInt(Edit5.Text);rn j:=StrToInt(Edit6.Text);rn s:=AddUp(i,j);rn Edit7.Text:=IntToStr(s);rnend;rnrnend.rn但总是说'[Error] Unit2.pas(40): Undeclared identifier: 'FindComponent''rn请各位大侠指教!!!
请高手帮忙看一下什么问题
using System;rnusing System.Data;rnusing System.Configuration;rnusing System.Web;rnusing System.Web.Security;rnusing System.Web.UI;rnusing System.Web.UI.WebControls;rnusing System.Web.UI.WebControls.WebParts;rnusing System.Web.UI.HtmlControls;rnusing System.Data.SqlClient;rnrnpublic partial class _Default : System.Web.UI.Pagernrn string qq = "wujianh";rn SqlConnection w=new SqlConnection(qq);rn protected void Page_Load(object sender, EventArgs e)rn rn rn rnrn[color=#FF0000]报错:错误 1 字段初始值设定项无法引用非静态字段、方法或属性“_Default.qq” D:\WebSite1\Default.aspx.cs 15 39 D:\WebSite1\rn变量qq应该已经初始化了啊,为什么报错[/color]
大家帮忙看一下到底什么问题?
#includernclass pointrnrnpublic:rn point(float,float);rn void setpoint(float,float);rn float getX() const return x;rn float getY() const return y;rn friend ostream &operator<<<<
出了什么问题????
我用c编写了一个CGI程序。代码如下:rn#include rn#include < stdlib.h >rn#define DATAFILE "data.txt"rnrnint main(void)rnrn FILE *f=fopen(DATAFILE,"r");rnrn int ch;rnrn if(f == NULL)rn rn printf("%s%c%c","Content-Type:text/html;charset=gb2312",13,10);rn printf(" 错误 ");rn printf(" 意外错误,无法打开文件");rn rn else rn printf("%s%c%c","Content-Type:text/plain",13,10);rn while((ch=getc(f))!= EOF)rn putchar(ch);rn fclose(f);rn rnreturn 0;rnrn在网页中主要有如下代码:rn rnrn   rnrn   rn在网页中点击“察看“,页面出现下面的代码:rnCGI ErrorrnThe specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:rnrnrnContent-Type:text/plainrnrnsdfasdfasdfasdfasdfsdrnrnrn这是怎么回事??高手请帮<em>帮忙</em>!!!!
帮忙看一下代码有什么问题
[code=C/C++]#includernint main()rn int sum=0,val;rn while (std::cin>>val)rn sum+=val;rn std::cout<<
帮忙看一下程序有什么问题
程序的目的是想对输入的每个数按照从大到小的顺序输出,rn如输入68395 453rn则输出 98653 543rn并实现多输入多输出。rn rn#include rn#include rn#include rn#include rn#include rnusing namespace std;rnrnint main()rnrn const int maxnum= 100;rn vectorvc[maxnum];rnrn char temp;rn int i= 0;rnrn while(1)rn rn while(cin>>temp && temp>=1 && temp= maxnum)rn break;rnrn if(temp== '.')rn break;rn rnrn vector::reverse_iterator p;rnrn rn for(int k= 0; k< i; k++)rn rn sort(vi[k].begin(), vi[k].end());rn for(p= vi[k].rbegin(); p!= vi[k].rend(); p++)rn cout<<;rn rnrn return 0;rnrn
出了什么问题?
“/E1”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn找不到可安装的 ISAM。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: 找不到可安装的 ISAM。rnrn源错误: rnrn行 46: myconnection.Open()rn rnrn源文件: E:\wwwroot\A2\E1\index.aspx.vb 行: 46 rnrn堆栈跟踪: rnrnrn[OleDbException (0x80004005): 找不到可安装的 ISAM。]rn System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr) +20rn System.Data.OleDb.OleDbConnection.InitializeProvider() +57rn System.Data.OleDb.OleDbConnection.Open() +131rn E1.WebForm1.Updateproducts() in E:\wwwroot\A2\E1\index.aspx.vb:46rn E1.WebForm1.Page_Load(Object sender, EventArgs e) in E:\wwwroot\A2\E1\index.aspx.vb:33rn System.Web.UI.Control.OnLoad(EventArgs e) +67rn System.Web.UI.Control.LoadRecursive() +29rn System.Web.UI.Page.ProcessRequestMain() +724rnrn rn
????出了什么问题......
procedure TForm1.Button1Click(Sender: TObject);rnvarrn dd,ee:olevariant;rnbeginrn dd:=createoleobject('Word.Application');rn ee:= dd.Documents.Open('C:\aa.rtf');rn ee.saveas('c:\dd.htm',8);rn dd.quit;rnend;rnrnrn-----------------------rn提示:rn[Error] Unit1.pas(51): Undeclared identifier: 'CreateOLEObject'rnrnrnrn
!!!!!紧急!!!求大佬帮忙看看这是什么问题
[img=https://img-bbs.csdn.net/upload/201711/15/1510734544_687595.png][/img]rn别的文件都没报错就这个报错了!
大佬帮忙看一下哪里有错
求两个个链表集合的并、交、差,rn运行结果总是不对,都只有1个数,求教哪里出错了,已经花费了我3个小时的时间也没解决rn[img=https://img-bbs.csdn.net/upload/201709/20/1505837177_559760.png][/img]rnrn#includern#includerntypedef int ElemType;rntypedef struct LNodernrn ElemType data;rn struct LNode *next;rnLinkNode; //定义单链表rnrnvoid CreateListF(LinkNode *&L,ElemType a[],int n) //建立单链表rnrn LinkNode *s;rn L=(LinkNode *)malloc(sizeof(LinkNode));rn L->next=NULL;rn for(int i=0;idata=a[i];rn s->next=L->next;rn L->next=s;rn rnrnrnvoid InitList(LinkNode *&L) //初始化rnrn L=(LinkNode *)malloc(sizeof(LinkNode));rn L->next=NULL;rnrnrnvoid DestroyList(LinkNode *&L) //销毁rnrn LinkNode *pre=L,*p=L->next;rn while(p!=NULL)rn rn free(pre);rn pre=p;rn p=pre->next;rn rn free(pre);rnrnrnvoid DispList(LinkNode *L) //输出rnrn LinkNode *p=L->next;rn while(p!=NULL)rn rn printf("%d",p->data);rn p=p->next;rn rn printf("\n");rnrnrnint LocateElem(LinkNode *L,ElemType e) //按元素查找rnrn int i=1;rn LinkNode *p=L->next;rn while(p!=NULL && p->data!=e)rn rn p=p->next;rn i++;rn rn if(p==NULL)rn return(0);rn elsern return(i);rnrnrnbool ListInsert(LinkNode *&L,int i,ElemType e) //插入数据元素rnrn int j=0;rn LinkNode *p=L,*s;rn if(idata=e;rn s->next=p->next;rn p->next=s;rn return true;rn rnrnrnvoid sort(LinkNode *&L) //排序rnrn LinkNode *p,*pre,*q;rn p=L->next->next;rn L->next->next=NULL;rn while(p!=NULL)rn rn q=p->next;rn pre=L;rn while(pre->next!=NULL && pre->next->datadata)rn pre=pre->next;rn p->next=pre->next;rn pre->next=p;rn p=q;rn rnrnrnvoid Bing(LinkNode *a,LinkNode *b,LinkNode *&c) //并rnrn InitList(c);rn LinkNode *p=a->next;rn LinkNode *q=b->next;rn int i=0;rn while(p!=NULL && q!=NULL)rn rn if(p->datadata)rn rn ListInsert(c,i+1,p->data);rn p=p->next;rn i++;rn rn else if(p->data==q->data)rn rn ListInsert(c,i+1,p->data);rn p=p->next;rn q=q->next;rn i++;rn rn elsern rn ListInsert(c,i+1,q->data);rn q=q->next;rn i++;rn rn rn while(q!=NULL)rn rn ListInsert(c,i+1,q->data);rn q=q->next;rn i++;rn rnrnrnvoid Jiao(LinkNode *a,LinkNode *b,LinkNode *&c) //交rnrn DestroyList(c);rn InitList(c);rn LinkNode *p=a->next;rn int i=0;rn while(p!=NULL)rn rn if(LocateElem(b,p->data))rn ListInsert(c,++i,p->data);rn p=p->next;rn rnrnrnvoid Cha(LinkNode *a,LinkNode *b,LinkNode *c) //差rnrn DestroyList(c);rn InitList(c);rn LinkNode *p=a->next;rn int i=0;rn while(p!=NULL)rn rn if(LocateElem(b,p->data)==0)rn ListInsert(c,++i,p->data);rn p=p->next;rn rnrn rnrnvoid main()rnrn LinkNode *ha,*hb,*hc;rn ElemType a[4] = 2,4,1,3;rn ElemType b[4] = 3,1,5,6;rn CreateListF(ha,a,4);rn CreateListF(hb,b,4);rn printf("原ha表: ");rn DispList(ha);rn printf("原hb表: ");rn DispList(hb);rn sort(ha);rn sort(hb);rn printf("排序后ha表: ");rn DispList(ha);rn printf("排序后hb表: ");rn DispList(hb);rn printf("并: ");rn Bing(ha,hb,hc);rn DispList(hc);rn printf("交: ");rn Jiao(ha,hb,hc);rn DispList(hc);rn printf("差: ");rn Cha(ha,hb,hc);rn DispList(hc);rn
大佬知道我的二进制文件读取出了什么问题吗???
```rn#include "stdio.h"rn#include "stdlib.h"rnrntypedef struct rn char stu_ID[14];rn char stu_Name[4];rn char stu_Major[10];rn int stu_Score;rnSTU;rnint main()rnrn FILE *fp;rn STU obj[101];rn int index = 1, n, i = 0;rnrn //Data_In_B(fp, obj);rnrn fp = fopen("cet4.dat", "rb");rnrn while(!feof(fp))rn rn fread(obj,sizeof(STU),1,fp);rn printf("%s %s %s %d\n",rn obj[0].stu_ID, obj[index].stu_Name, obj[0].stu_Major, obj[0].stu_Scorern );rn rn fclose(fp);rn return 0;rnrn```rn![图片说明](https://img-ask.csdn.net/upload/201903/31/1554023969_792633.png)rn![图片说明](https://img-ask.csdn.net/upload/201903/31/1554024148_252812.png)rn![图片说明](https://img-ask.csdn.net/upload/201903/31/1554027551_684439.png)rnrn
各位大佬帮忙看一下是哪儿的问题
#ifndef CMatrix_H_rn#define CMatrix_H_rn#includern#includern#includern//#define MIN(a,b) ((a)f;;//指向第一个元素的二重指针rn vector ** begin() const return p->f;;rn CMatrix();//********************************************默认的构造rn CMatrix(int xsize,int ysize,T init=0);//****************构造函数rn CMatrix(int xlength,const vector *vec);//************构造函数rn CMatrix(CMatrix &x); //*****************************拷贝构造函数rn ~CMatrix(); //******************************************析构函数rn CMatrix & operator=(const CMatrix &mat);//**重载赋值运算符——矩阵赋矩阵 rn int row() const;//**************************************返回行数rn int col() const;//**************************************返回列数rn vector & operator []( int i);//***********************重载[]rn operator T **();//****************************************重载**rn void ReadFromFile();//********************************从文件中读入矩阵rn friend CMatrix cpy(CMatrix &v);//**************************拷贝函数rn friend std::ostream & operator<>(std::istream &s,const CMatrix &mat);//重载输入函数rn friend CMatrix operator*(CMatrix &v1,CMatrix &v2);//矩阵乘法rn rn ;rn//template rn//vector ** CMatrix::begin()rn//return p->f;rntemplate //********************************************默认的构造rnCMatrix::CMatrix()rnrn p=new mrep;rn p->length=NULL;rn p->f=0;rn p->refcnt=1;rn p->tmppointer=NULL;rnrntemplate //********************************************构造函数可扩展rnrnCMatrix::CMatrix(int xsize,int ysize,T init)rnrn if(xsizef=new vector *[xsize];rn for(int i(0);if[i]=new vector(ysize,init);rnrn p->refcnt=1;rn p->tmppointer=NULL;rnrntemplate //********************************************构造函数rnCMatrix::CMatrix(int xlength,const vector *vec) rnrn if(xlengthf=new vector *[xlength];rn for(int i=0;if[i]=new vector(*vec);rnrntemplate //********************************************拷贝的构造函数rnrnCMatrix::CMatrix(CMatrix &x)rnrn x.p->refcnt++;rn p=x.p;rnrntemplate rnCMatrix cpy(CMatrix &v) rnrnrn int mr=v.row();rn int mc=v.col();rn CMatrix x(mr,mc);rn for(int i(0);if[i])=*(v.p->f[i]);rn return x;rnrnrntemplate //********************************************rnCMatrix::~CMatrix()//****************************************析构函数rnrn if(--p->refcnt==0)rn rn if(p->f!=NULL)rn rn int len=p->length;rn for(int i(0);if[i];rn if(p->tmppointer!=NULL)rn delete p->tmppointer;rn delete p->f;rn rn rn rntemplate rnint CMatrix::row() const//***********************************返回行数rnrn return p->length;rnrntemplate rnint CMatrix::col() const//***********************************返回列数rnrn rn return p->f[0]->size();rnrnrntemplate rnCMatrix & CMatrix::operator=(const CMatrix &vec)//*****重载赋值操作符号rnrn vec.p->refcnt++;rn if(--p->refcnt==0)rn rn int len=p->length;rn for(int i(0);if[i];rn delete p->f;rn if(p->tmppointer!=NULL)rn delete p->tmppointer;rn delete p;rn rn p=vec.p;rn return *this;rnrntemplate //********************************************重载[]rnvector &CMatrix::operator[](int i)rnrn if((i>=0)&&(ilength))rn return *p->f[i];rn elsern couttmppointer=new T *[n];rn for(int i(0);itmppointer[i]=p->f[i]->begin();rn rn return p->tmppointer;rnrntemplate rnvoid CMatrix::ReadFromFile()//******************************从文件中读入矩阵rnrnrn char filename[256];rn cin>>filename; rn ifstream infile;rn// cout<<<>row>>col;rn CMatrix v1(row,col,0);rn// infile>>v1[0][0];rn// cout<>v1[i][j];rn *this=v1;rnrnrntemplate rnstd::ostream & operator<<< **f=v1.begin();rn// cout>(std::istream & is,CMatrix &v1)//**输入重载rnrn int row,col;rn cout<>row>>col;rn CMatrix x(row,col,0);rn cout<<>x[i][j];rn v1=x;rn return is;rnrntemplate rnCMatrix operator*(CMatrix &m1,CMatrix &m2)//*********矩阵乘法rnrn int i,j,k;rn int m1rows=m1.row();rn int m1cols=m1.col();rn int m2rows=m2.row();rn int m2cols=m2.col();rn if(m1cols!=m2rows)rn cout<< v(m1rows,m2cols);rn CMatrix flip(m2cols,m2rows);rn for(i=0;i
程序错误c++ 希望大佬帮忙看一下
#include "WizDemo.h"rn#include rnfloat step;rnint dir,restart,t,i;rnfloat P_radius, P_omega, V, X, M;rnText title,title1,title2,title3,title4,title5;rnASCIIFont font;rnText text,text1;rn// 构造函数rndemoApp::demoApp() : WizGLApp()rnrn viewMode = VIEW_PERSPECTIVE1; // 观察视角模式rn demoState = DEMO_STOP; // 初始动画状态rn wndWidth = 1024; // 初始窗口宽度rn wndHeight = 715; // 初始窗口高度rn showParamWnd = true; // 初始是否显示参数窗口rn showInfoWnd = false; // 初始是否显示信息窗口rn showToolbar = true; // 初始是否显示工具栏rn// wiz::Assign(bgColor, 0.32f, 0.72f, 0.54f, 0.0f); // 设置背景色rnrnrn// 析构函数rndemoApp::~demoApp()rnrnrnrn///////////////////////////////////////////////////////////////////////rn// 在此创建场景rnvoid demoApp::InitializeScenes()rnrnrn// 在此创建控件rnvoid demoApp::InitializeControls(int sceneIndex)rnrnrn// 在此初始化控件参数rnvoid demoApp::InitializeParameters(int sceneIndex)rnrn P_radius =8;rn P_omega =8;rn V =8;rn X =8;rn rn// M=0;rnrn// 场景切换时可在此作需要的设置rnvoid demoApp::SwitchScene(int curScene, int prevScene)rnrnrn///////////////////////////////////////////////////////////////////////rn// 与绘图相关的初始化工作rnvoid demoApp::SetupRC()rnrn glt::SetDefaultLight();rn glt::SetGlobalAmbient(wiz::cBLACK);rn title.LoadWords(L"斜碰撞过程的研究", L"楷体_GB2312", 36, cBLACK, 320, 48);rn rnrn// 绘制场景rnrnstatic Color4f color1 = 0.0f,0.0f,0.0f,1.0f;rnstatic Color4f color2 = 0.8f,0.0f,0.0f,1.0f;rnstatic Color4f color3 = 1.f,1.0f,1.0f,1.0f;rnstatic Color4f color4 = 0.0f,0.0f,1.0f,1.0f;rnvoid demoApp::RenderScene(int sceneIndex)rnrn Point3f p1[2],p2[2],p3[2],p4[2]; //画球rn glt::SetLineWidth(2);rn Orient direct = 0.0f, 0.0f;rn int j;rn float d,r1,r2,m1,m2,e,u1,u2,v1,a,b,k,k1;rn title.Show(-35.0f, 65.0f, 1.0f);rn Point3f p5[2]=-90.0f, 0.0f, -1.0f,90.0f, 0.0f, -1.0f, p6[2]=0.0f, -60.0f, -1.0f,0.0f, 70.0f, -1.0f;rn rn m1=P_radius;rn m2=P_omega;rn r1=6*pow(m1,1/3);rn r2=6*pow(m2,1/3);rn v1=V/2;rn d=X*0.1*(r1+r2);rn a=asin(d/(r1+r2));rn glt::DisableLight();rn if(GetCheck(2))title1.Show(-50.0f, 65.0f, 1.0f);rn else title2.Show(-50.0f, 65.0f, 1.0f);rn u2=2*m1*v1*cos(a)/(m1+m2);rn u1=sqrt(v1*v1-m2*u2*u2/m1);rn b=asin(m2*u2*sin(a)/(m1*u1));rn k=b*180/PI;rn k1=a*180/PI;rn p4[1].y=p4[0].y=d; p4[1].z=p4[0].z=0; p4[1].x=100; p4[0].x=-10;rnrnrnrn glt::SetLineWidth(2); rn glt::SetLineStipple(0x0f0f, 1);rn draw::Line(p4[0], p4[1], color4);rn glt::SetLineStipple(0xffff, 1);rn ushort str[20],str1[20];rn swprintf(str, L"散射角=%.2fdeg", k);rn text.LoadWords(str, L"黑体", 26, wiz::cBLACK, 256, 48); // 加载文字内容rn text.Show(-25, -80, 0, true);rn swprintf(str1, L"反冲角=%.2fdeg", k1);rn text1.LoadWords(str1, L"黑体", 26, wiz::cBLACK, 256, 48); // 加载文字内容rn text1.Show(-25, -70, 0, true);rn p1[0].x=-90; p2[0].x=0;rn p1[0].y=p1[1].y=d;rn p2[0].y=p2[1].y=0;rn p1[0].z=p1[1].z=0;rn p2[0].z=p2[1].z=0;rn p3[0].z=p3[1].z=0;rn p4[0].z=p4[1].z=0;rn rnfor(j=1;jint((90-cos(a)*(r1+r2))/v1)) rn rn p1[1].x=p1[0].x+u1*cos(b);rn p2[1].x=p2[0].x+u2*cos(a);rn p1[1].y=p1[0].y+u1*sin(b);rn p2[1].y=p2[0].y-u2*sin(a);rn p3[0].x=p2[0].x;rn p3[1].x=p2[1].x;rn p4[0].x=p2[0].x;rn p4[1].x=p2[1].x;rn p3[0].y=p3[1].y=0.3*(m1*u1*u1+m2*u2*u2);rn rn draw::Line(p1[0],p1[1],color1);rn draw::Line(p2[0],p2[1],color1);rn draw::Line(p3[0],p3[1],color2);rn rn rn elsern rn p1[1].x=p1[0].x+v1*1;rn p2[1].x=p2[0].x;rn p1[1].y=p1[0].y;rn p2[1].y=p2[0].y;rn p3[0].x=p1[0].x;rn p3[1].x=p1[1].x;rn p4[0].x=p2[0].x;rn p4[1].x=p2[1].x;rn p3[0].y=p3[1].y=0.3*m1*v1*v1;rnrn draw::Line(p1[0],p1[1],color1);rn draw::Line(p2[0],p2[1],color1);rn draw::Line(p3[0],p3[1],color2);rn rn rn p1[0].x=p1[1].x;rn p2[0].x=p2[1].x;rn p1[0].y=p1[1].y;rn p2[0].y=p2[1].y;rn rnrnrn glt::EnableLight();rn draw::Balls(1,p1+1, r1, 32, 32, color2);rn draw::Balls(1,p2+1, r2, 32, 32, color3);rn draw::Arrow3D(p5[0], p5[1], 0.0, 0.5, 10, 2, color3, color3, false,0,0,0);rn draw::Arrow3D(p6[0], p6[1], 0.0, 0.5, 10, 2, color3, color3, false,0,0,0);rn rn rn rn rnrnrn///////////////////////////////////////////////////////////////////////rn// 动画开始rnvoid demoApp::DemoBegin()rn step=0; dir=0;restart=0;rn t=0;rnrn// 动画播放rnvoid demoApp::DemoPlay()rnrn step+=0.5;rn if(step>500)step=step-500;rnrn// 动画暂停rnvoid demoApp::DemoPause()rnrnrn// 动画停止rnvoid demoApp::DemoStop()rnrnrn///////////////////////////////////////////////////////////////////////rn// 按钮被点击rnvoid demoApp::ButtonClick(int sceneIndex, UINT butSN)rnrn rnrn// 复选框被点击rnvoid demoApp::CheckClick(int sceneIndex, UINT chkSN, bool checked)rnrnrn// 单选框被点击rnvoid demoApp::RadioClick(int sceneIndex, UINT rdoSN)rnrnrn// 文本框内容被改变rnvoid demoApp::TextboxChange(int sceneIndex, UINT txtSN)rnrnrn// 组合框下拉列表项被选择rnvoid demoApp::ComboSelChange(int sceneIndex, UINT cmbSN, int index)rnrnrn// 组合框文本被改变rnvoid demoApp::ComboTextChange(int sceneIndex, UINT cmbSN)rnrnrn// 滑条被移动rnvoid demoApp::ScrollMove(int sceneIndex, UINT sbSN, int value, float rate)rnrn float param = (float)value * rate;rn switch (sbSN)rn rn case 1:rn P_radius = param;rn break;rn case 2:rn P_omega = param;rn break;rn case 3:rn V = param;rn break;rn case 4:rn X = param;rn break;rn case 5:rn M = param;rn break;rn rn FlushScene();rnrn///////////////////////////////////////////////////////////////////////rn// 键盘建按下rnvoid demoApp::KeyDown(UINT key)rnrnrn// 键盘建松开rnvoid demoApp::KeyUp(UINT key)rnrnrn// 鼠标左键按下rnvoid demoApp::LeftButtonDown(int x, int y, int keyFlag)rnrnrn// 鼠标左键松开rnvoid demoApp::LeftButtonUp(int x, int y, int keyFlag)rnrnrn// 鼠标左键双击rnvoid demoApp::LeftButtonDblClick(int x, int y, int keyFlag)rnrnrn// 鼠标右键按下rnvoid demoApp::RightButtonDown(int x, int y, int keyFlag)rnrnrn// 鼠标右键松开rnvoid demoApp::RightButtonUp(int x, int y, int keyFlag)rnrnrn// 鼠标右键双击rnvoid demoApp::RightButtonDblClick(int x, int y, int keyFlag)rnrnrn// 鼠标移动rnvoid demoApp::MouseMove(int x, int y, int keyFlag)rnrnrn// 鼠标滚轮被滚动rnvoid demoApp::MouseWheel(int x, int y, int zDelta, int keyFlag)rnrnrnrnrn--------------------Configuration: WizDemo - Win32 Debug--------------------rnLinking...rnWizDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall wiz::Text::Text(void)" (??0Text@wiz@@QAE@XZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall wiz::Text::~Text(void)" (??1Text@wiz@@QAE@XZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall wiz::ASCIIFont::ASCIIFont(void)" (??0ASCIIFont@wiz@@QAE@XZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall wiz::ASCIIFont::~ASCIIFont(void)" (??1ASCIIFont@wiz@@QAE@XZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "protected: virtual void __thiscall wiz::WizGLApp::ProcessHits(int,unsigned int const *,int)" (?ProcessHits@WizGLApp@wiz@@MAEXHPBIH@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall wiz::WizGLApp::CommRxchar(void)" (?CommRxchar@WizGLApp@wiz@@UAEXXZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall wiz::WizGLApp::~WizGLApp(void)" (??1WizGLApp@wiz@@UAE@XZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: __thiscall wiz::WizGLApp::WizGLApp(void)" (??0WizGLApp@wiz@@QAE@XZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: bool __thiscall wiz::Text::LoadWords(unsigned short const *,unsigned short const *,int,struct wiz::Color4f const &,int,int)" (?LoadWords@Text@wiz@@QAE_NPBG0HABUColor4f@2@HH@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::glt::SetGlobalAmbient(struct wiz::Color4f const &)" (?SetGlobalAmbient@glt@wiz@@SAXABUColor4f@2@@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::glt::SetDefaultLight(void)" (?SetDefaultLight@glt@wiz@@SAXXZ)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::draw::Arrow3D(struct wiz::Point3f const &,struct wiz::Point3f const &,float,float,float,float,struct wiz::Color4f const &,struct wiz::Color4f const &,bool,unsirngned int,unsigned int,unsigned int)" (?Arrow3D@draw@wiz@@SAXABUPoint3f@2@0MMMMABUColor4f@2@1_NIII@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::draw::Balls(int,struct wiz::Point3f const *,float,int,int,struct wiz::Color4f const &,unsigned int const *,bool const *,struct wiz::Color4f const &)" (?Balls@drnraw@wiz@@SAXHPBUPoint3f@2@MHHABUColor4f@2@PBIPB_N1@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::glt::EnableLight(int)" (?EnableLight@glt@wiz@@SAXH@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::draw::Line(struct wiz::Point3f const &,struct wiz::Point3f const &,struct wiz::Color4f const &)" (?Line@draw@wiz@@SAXABUPoint3f@2@0ABUColor4f@2@@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::glt::SetLineStipple(unsigned short,int)" (?SetLineStipple@glt@wiz@@SAXGH@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: bool __thiscall wiz::WizGLApp::GetCheck(unsigned int)" (?GetCheck@WizGLApp@wiz@@QAE_NI@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::glt::DisableLight(int)" (?DisableLight@glt@wiz@@SAXH@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: void __thiscall wiz::Text::Show(float,float,float,bool)" (?Show@Text@wiz@@QAEXMMM_N@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: static void __cdecl wiz::glt::SetLineWidth(float)" (?SetLineWidth@glt@wiz@@SAXM@Z)rnWizDemo.obj : error LNK2001: unresolved external symbol "public: void __thiscall wiz::WizGLApp::FlushScene(void)" (?FlushScene@WizGLApp@wiz@@QAEXXZ)rnLIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _mainrnDebug/WizDemo.exe : fatal error LNK1120: 22 unresolved externalsrn执行 link.exe 时出错.rnrnWizDemo.exe - 1 error(s), 0 warning(s)rnrnrnrn
大家帮忙看看我的快速排序算法出了什么问题?
#includernint j;rnrnmain()rnrn void func();rn int num[7];rn int i;rnrn printf("请输入待排序的数字:\n");rn for(i=1;inum[r])rn num[l]=num[r];l++;goto loop_2;rn elsern r--;rn rnloop_2:while(l!=r)rn rn if(value
大家帮忙看看我的ASP.NET出了什么问题
我的是XP系统,运行.NET出下面错误:rn“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn分析器错误 rn说明: 在分析向此请求提供服务所需资源时出错。请检查下列特定分析错误详细信息并适当地修改源文件。 rnrn分析器错误信息: 未能加载类型“Article.TempTrans”。rnrn源错误: rnrnrn行 1: rn行 2: rnrn rnrn源文件: c:\inetpub\wwwroot\dvnews2.6\default.aspx 行: 1 rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET Framework 版本:1.1.4322.573; ASP.NET 版本:1.1.4322.573
请大家帮忙看看SQL语法出了什么问题
select 学号,max(成绩)rnfrom cjrnwhere 课程号='a001' rngroup by 学号,成绩rnhaving 成绩=max(成绩)rnrn很简单的一个SQL语法题,但是就是解决不了。想求一门课程(a001)获得最高分的同学学号和成绩,怎么按以上的语法,是获得所有学了这门课程的同学学号和成绩?rn语法并没有错啊?请大家<em>帮忙</em>看看,这个SQL语句<em>出了</em><em>什么问题</em>?
大家帮忙看看这出了什么问题
我在一个datagrid中加入了一个按扭列,想触发它的事件,怎么也没有反映,请问<em>出了</em><em>什么问题</em>?rn请各位指教!rn我的代码:rnrnrnrn rn rn rnrnrnrnrn后台:rnProtected Sub DataGrid1_DeleteCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.DeleteCommandrn Label1.Text = "ni hao!"rn End Subrn可是点击老是没有反映
帮忙看看出了什么问题,(update语句的语法错误)
DataModule1.BaseADOQuery.Close;rn //DataModule1.BaseADOQuery.Active:=false;rn DataModule1.BaseADOQuery.SQL.Clear ;rnrn //修改记录到AO_Appinforn DataModule1.BaseADOQuery.SQL.Add('update AO_AppInfo set (AppName=:Appname,AppCorp=:AppCorp,AppAuthor=:AppAuthor,AppVer=:AppVer,AppDllName=:AppDllName,AppMemo=:AppMemo) where Appid=:Appid');rnrn //DataModule1.BaseADOQuery.SQL.Add('Values (:AppID,:AppName,:AppIndex,:AppCorp,:AppAuthor,:AppVer,:AppDllName,:AppType,:AppMemo)');rnrn //参数的值rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppID').Value:= LabeledEdit_AppId.Text; //rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppName').Value:= LabeledEdit_AppName.Text;rn //DataModule1.BaseADOQuery.Parameters.ParamByName('AppIndex').Value:= currIndex; //rn //DataModule1.BaseADOQuery.Parameters.ParamByName('AppMenu').Value:= s;rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppCorp').Value:= LabeledEdit_AppGrop.Text;rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppAuthor').Value:= LabeledEdit_AppAuthor.Text;rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppVer').Value:= LabeledEdit_AppVer.Text;rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppDllName').Value:= LabeledEdit_AppDllname.Text;rn //DataModule1.BaseADOQuery.Parameters.ParamByName('AppType').Value:= 1;rn DataModule1.BaseADOQuery.Parameters.ParamByName('AppMemo').Value:= LabeledEdit_AppMemo.Text;rnrnrn DataModule1.BaseADOQuery.execsql;
帮忙看看这个程序出了什么问题
本菜写了一个小程序rn能够创建一个矩阵,规定长宽,并进行矩阵之间的加减运算rn代码如下rn```rn #includernusing namespace std;rnrnclass matrix //创建矩阵类 rnrn private:rn int lines;rn int rows;rn int **num; //建立二重数组rn public:rn matrix(int a,int b) //构造函数rn rn lines=a;rn rows=b;rn cout<<>num[x][y]; //循环输入矩阵元素 rn rn rnrnrnvoid matrix::out() //此函数可以按格式输出矩阵 rnrn int x,y;rn for(y=0;y>a>>b;rn if(a<<
大家帮忙看看是出了什么问题??
装的2000系统,开机后自检完后机器自动重起,连安全模式都不能进去。另外的一个dos系统运行正常。大家<em>帮忙</em>看看。
maven配置出现错误请大佬帮忙看一下
![图片说明](https://img-ask.csdn.net/upload/201808/30/1535622403_809844.png)![![![图片说明](https://img-ask.csdn.net/upload/201808/30/1535622431_91204.png)图片说明](https://img-ask.csdn.net/upload/201808/30/1535622425_105487.png)图片说明](https://img-ask.csdn.net/upload/201808/30/1535622419_121313.png)有哪位<em>大佬</em>能告诉我一下 我的maven到底是哪里配置错了 一直给我提示这个 我都反复看了好几遍了 希望<em>大佬</em>可以解答
帮忙看看电脑出了什么问题
我的电脑是局域网,win2000专业版,37G硬盘,ie6.0。rn不知道什么时候起,开机时,总是先出现一行字:“非法文件boot.ini,正在c:\winnt\启动” ,启动后好象也没什么大问题。这两天,我把MSN messenger升级到了6.0,可是开机时,常无法登陆,messenger常显示为未登陆,网络也时常断开,别人都好好的。更有甚者,点击我的电脑或者任何程序时,总是警告“系统内存不足,无法完成要求”,我以为是有病毒,可是用毒霸和熊猫卫士查杀时,都没有发现病毒。还有一个异常,就是声音常遇到“a general error”,一定要重启动后,才能再有声音。哎,我快崩溃了,一天重启无数次,请高手<em>帮忙</em>指教一下呀!!!
大家帮忙看看这个页面出了什么问题....
http://www.phmszy.com/index.asprn动态新闻栏目的内容无法正确显示rn据说是因为在后台删除文章后,就无法再行添加了rn中间是调用框架rn框架内的页面是01.asprn以下为源码rnrnrn<> 0 thenrn response.write "数据库出错"rnelsern%>rnrnrn rn rn rnrnrn rn rn rn rn <>0 thenrn response.write "[图文] "rn end ifrn response.write trim(rs("topic")) & " "rn rs.movenextrn if rs.eof thenrn i=i+1rn exit forrn end ifrnresponse.write " "rn next%> rn rn rnrnrnrnrnrnrn小弟做网页还马马乎乎rn不过要修改的话就有些头疼了rn希望能有朋友能<em>帮忙</em>看看这个问题rn作出指导~~
帮忙看看这段东东出了什么问题
rnCREATE TRIGGER DIUrnON arnFOR DELETE,INSERT,UPDATErnASrnBEGINrn delete from B where Name =(select ID from deleted)rn insert B(Name) select ID from insertedrn update Brn set P2 = substring((select me from inserted),2,len((select me from inserted))-2),rn PD = substring((select dur from inserted),1,8)rn from inserted where Name =(select ID from inserted) rnENDrnrnrnCREATE TRIGGER DIUrnON HBC.dbo.mediarnFOR DELETE,INSERTrnASrnDECLARE @TS1 varchar(80)rnDECLARE @TS2 varchar(18)rnDECLARE @TS3 varchar(18)rnBEGINrn set @TS1 = (select ID from inserted)rn set @TS2 = (select me from inserted)rn set @TS3 = (select dur from inserted)rn delete from B where Name =(select ID from deleted)rn insert B(Name,P2,PD) rn values(@TS1, rn substring(@TS2,2,len(@TS2)-2),rn substring(@TS3,1,8))rnENDrnrnrnrnrn这两段代码都产生同一个错误rn(我是在数据库里直接操作的,而不是通过什么软件改的)rn添加、删除都正常,可是要Update就一定要先关闭数据集才行rn如果我刚添加完一条(肯定已经添加完成了),然后马上再修改它,就会出现rn“无法为更新集定位:一些值可能已在最后读取后改变”rn谁知道该怎么办啊?rnrnrn
大家帮忙看看出了什么问题?(日历控件)
大家<em>帮忙</em>看看<em>出了</em><em>什么问题</em>,老是提示不能识别的月份?rn我把源程序放在网上了。rn在邮箱里:pbrl@yahoo.com.cnrn 密码是:123456rn求高手<em>帮忙</em>看看,感激不尽。rn
帮忙看下我这个函数出了什么问题
我想在服务器上创建文件夹用来存放图片;rn下面是我自己定义的函数!其中服务器上的文件夹"../image/nota/false/"和"../image/nota/true/"确定已经存在.rn我想在创建好文件夹时返回其路径。可是在调用是出错,函数后面是出错信息。rn在这发贴之前我也搜索了相关信息,可惜没得到解决。rnrn请各位大哥大姐<em>帮忙</em>看下!指点下错误之处!谢谢!rnrnFunction CreateSelfFolder(FilePath,FolderName,TrueOrFalse)rn Dim TestFolder,FS,CreateNewFilePathrn Dim InitFolderPathrn InitFolderPath="../image/Nota/"rn TestFolder=InitFolderPath&TrueOrFalse&"/"&FilePathrn Set FS = server.CreateObject("Scripting.FileSystemObject")rn If(FS.FolderExists(TestFolder)) Thenrn TestFolder=TestFolder&"/"&FolderNamern If(FS.FolderExists(TestFolder)) Thenrn CreateSelfFolder=TestFolderrn Exit Functionrn elsern CreateNewFilePath=server.MapPath(TestFolder)rn FS.CreateFolder(CreateNewFilePath)rn Set Fs=nothingrn CreateSelfFolder=TestFolderrn Exit Function rn end ifrn elsern CreateNewFilePath=server.MapPath(TestFolder)rn FS.CreateFolder(CCreateNewFilePath)rn TestFolder=TestFolder&"/"&FolderNamern If(FS.FolderExists(TestFolder)) Thenrn CreateSelfFolder=TestFolderrn Exit Functionrn elsern CreateNewFilePath=server.MapPath(TestFolder)rn FS.CreateFolder(CreateNewFilePath)rn Set Fs=nothingrn CreateSelfFolder=TestFolderrn Exit Functionrn end ifrn end ifrnEnd Functionrn下面是我调用该函数的代码:rnDim SaveFilePathrnDim TrueOrFalsernDim FilePathrnDim FolderNamernrnTrueOrFalse=request.Form("TrueOrFalse")'返回值为true or falsernFilePath=request.Form("FilePath")rnFolderName=request.Form("FolderName")rn'其中TrueOrFalse,FilePath,FolderName都不会为空,因为在提交前我有检测函数。rnSaveFilePath = CreateSelfFolder(FilePath,FolderName,TrueOrFalse)rnrn'当我用 Call CreateSelfFolder(FilePath,FolderName,TrueOrFalse)时也出错!rn出错信息:rnerr.number:5rnerr.description:无效的过程调用或参数rnrn
编译出了问题,帮忙看一下!!!!谢谢了!
void CDCreateDlg::OnButCreate() rnrn int temp1=0;rn butArray.SetSize(0,1);rn DWORD dwStyle =WS_CHILD|WS_VISIBLE|WS_TABSTOP|BS_AUTOCHECKBOX ;rn for(int i=0;iCreate(_T("test"), dwStyle , CRect(CPoint(200,6+i*15),CSize(70,12)), this, WM_DY_MES+i);rn pButton->ShowWindow(SW_SHOW);rn butArray.Add(temp1);rn rnrn=================================rn编译时提示:pButton->Create那行rnerror C2143: syntax error : missing ')' before ';'rnerror C2059: syntax error : ')'rnrn可是我在其他程序使用正常,再这儿也没有少)呀!rnrn忘,高手请教!
帮忙看一下这段程序,哪出了问题?
#include rn#include rn#include "rect.h"rnusing namespace std;rnrnvoid main()rn SimpleWindow W("a blue Rectangle",8,4);rn W.Open();rn RectangleShape R(W, 4.0, 2.0, Blue, 3, 2 );rn R.Draw();rnrnrn编译提示:rnfatal error C1083: Cannot open include file: 'rect.h': No such file or directoryrnError executing cl.exe.
代码出了问题,可以帮忙看一下吗?
我写了一段东西,可是运行后错误出现在:rnForm1.MshflexGrid.DataSource=strSql中的strSql.rn错误为"编译错误,要求对象",我应该怎么写才算对的呢?rn部分代码为:rnrnPrivate Sub OKButton_Click()rnDim strSql As StringrnrnSet Rs = New ADODB.RecordsetrnSet Cnn = New ADODB.ConnectionrnrnrnCnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\用料计量.mdb;Persist Security Info=False;jet oledb"rnrnRs.Open "select * from 用料计量", Cnn, adOpenKeyset, adLockOptimisticrnrnstrSql = "Select * from 用料计量 where trim(Label1.Caption) like '" & Trim(Text1.Text) & "%' "rnstrSql = strSql + "and trim(Label2.Caption) like '" & Trim(Text2.Text) & "%'"rnstrSql = strSql + "and trim(Label3.Caption) like '" & Trim(Text3.Text) & "%'"rnstrSql = strSql + "and trim(Label4.Caption) like '" & Trim(Text4.Text) & "%'"rnstrSql = strSql + "and trim(Label5.Caption) like '" & Trim(Text5.Text) & "%'"rnrnIf Rs.EOF ThenrnRs.ClosernSet Form1.MSHFlexGrid1.DataSource = strSqlrnrn错误就是出现在最后那一句的strSql.rnrnrnrn
帮忙看一下这个循环哪出了问题
三个分别是pcroom【机房】 lesson[课时] yding【预订】rn判断有没有课,rn|---------------------------------------------------——————————————————|rn|机房 课时一 课时二 课时三 |rn|机房一 没课 有课 没课 |rn|机房二 有课 没课 没课 |rn|机房三 没课 没课 没课 |rn| |rn|————————————————————————————————————————————rnrn[code=HTML]rnrnrnrnrnrnrn rn 无标题文档rnrnrnrn rn rn 一览表rn rn rn rn rnrn rn rnrn rnrnrnrnrnrnrnrn[/code]
帮忙看一下,哪里出了问题呀
if(this.txtusername.Text="a" && this.txtpwd.Text="a")rn提示出错,信息为rnD:\webstudy\aspnet\WebForm1.aspx.cs(79): 运算符“&&”无法应用于“string”和“string”类型的操作数rn
我的RichEdit出了问题,帮忙看一下
  当我把写字板或WORD中的内容粘贴进我的RichEdit时出乱友,我在里面直接输入汉字也仅第一个可以,后来便全是乱码了,不知为何?
帮忙看一下JAVA配置那里出了问题?
class HelloWorld rn public static void main(String[] args)rn System.out.print("Hello World!");rn rnrnrn编译之后,运行出现:Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldrnrn
帮忙看一下这段代码哪里出了问题
[code=Java]rnpublic class TestBaidu rn rn public static void login(HttpClient client)rn rn String url = "https://passport.baidu.com/?login";rn rn PostMethod method = new PostMethod(url);rn rn method.addRequestHeader("User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13");rn method.addRequestHeader("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");rn method.addRequestHeader("Referer", "https://passport.baidu.com/?login");rn method.addRequestHeader("Content-Type:","application/x-www-form-urlencoded");rn rn List list = new ArrayList();rn list.add(new NameValuePair("tpl_ok",""));rn list.add(new NameValuePair("next_target",""));rn list.add(new NameValuePair("tpl","mn"));rn list.add(new NameValuePair("skip_ok",""));rn list.add(new NameValuePair("aid",""));rn list.add(new NameValuePair("need_pay",""));rn list.add(new NameValuePair("need_coin",""));rn list.add(new NameValuePair("pay_method",""));rn list.add(new NameValuePair("u","http%3A%2F%2Fwww.baidu.com%2F"));rn list.add(new NameValuePair("return_method","get"));rn list.add(new NameValuePair("more_param",""));rn list.add(new NameValuePair("return_type",""));rn list.add(new NameValuePair("psp_tt","0"));rn list.add(new NameValuePair("password",密码));rn list.add(new NameValuePair("safeflg","0"));rn list.add(new NameValuePair("isphone","tpl0"));rn list.add(new NameValuePair("username",帐号));rn list.add(new NameValuePair("verifycode",""));rn list.add(new NameValuePair("mem_pass","on"));rn rn NameValuePair[] pairs = new NameValuePair[list.size()];rn pairs = list.toArray(pairs);rn rn method.setRequestBody(pairs);rn rn try rn int responseCode = client.executeMethod(method);rn System.out.println("responseCode:"+responseCode);rn InputStream is = method.getResponseBodyAsStream();rn byte[] b= new byte[1024];rn ByteArrayOutputStream baos = new ByteArrayOutputStream();rn int length = 0;rn while((length=is.read(b))!=-1)rn baos.write(b, 0, length);rn rn System.out.println(baos.toString());rn catch (Exception e) rn e.printStackTrace();rn rn rn rn public static void main(String args[])rn HttpClient client = new HttpClient();rn login(client);rn rnrn[/code]rnrn想做个程序自动登录百度然后每隔15分钟领一次帖吧豆,但是登录不上去。rn运行时,responseCode返回400,但是直接在浏览器上输入 "https://passport.baidu.com/?login" 却可以打开rn高手们看看是怎么回事,谢谢了rn
帮忙看一下这是什么出了问题?
设置了ODBC下的数据源,在jbuilder下连接这个数据源rnClass.forName("sun.jdbc.odbc.JdbcOdbcDriver"); //加载驱动程序rnrn但应用程序中老提示找不到ODBC驱动 rn这是什么意思啊?应该怎么设置?还没用过在jbuilder下连接数据源,请大家<em>帮忙</em>
各位大家帮忙看一下哪里出了问题
这个为什么没办法输出rnrn代码如下:rnrnhaslogin(true))rn$rs = $db->Execute("Select * from userinfo where userid = ?", array($_SESSION['auth_user']));rn$auth = $rs->GetArray();rn$auth = $auth[0];rnrnclass char_do extends Member rnrnvar $inputs = array('ChaList','id','cid','SchoolList');rnvar $stn_rb = false;rnvar $vip_rb = false;rnrnfunction char_do()rnglobal $do,$db,$auth,$_config;rnif (!is_file("modules/user.".$do.".php")) jump('ErrorPage.php'); rnswitch ($do) rnrnrncase 'webpd':rninclude('modules/user.webpd.php');rn$titleImg = "title_37";rnbreak;rnrnrn//You can add more page here.....rnrnrnrnrnfunction _char_select_empty()rnif($_POST[$this->inputs[0]]!="-1")rnreturn true;rnrnreturn false;rnrnfunction _school_select_empty()rnif($_POST[$this->inputs[3]]!="-1")rnreturn true;rnrnreturn false;rnrnfunction _update_rb_lvl_exp($db,$id)rnglobal $_config;rn$rb_res = $db->Execute('update rangame1.dbo.chainfo set '.$_config['ucp_rb_col'].'='.$_config['ucp_rb_col'].'+?, ChaLevel = ?, chaexp = ? where chanum = ?',array('1','1','0',$id));rnif($rb_res)rnreturn true;rnrnreturn false;rnrnfunction _charge_gold($db,$id,$cost)rn$gold_res = $db->Execute('update rangame1.dbo.chainfo set ChaMoney = ChaMoney - ? where chanum = ?',array($cost,$id));rnif($gold_res)rnreturn true;rnrnreturn false;rnrnfunction resetRbStats($db,$id)rn$char_res = $db->Execute('Update RanGame1.dbo.ChaInfo set ChaPower=?,ChaStrong=?,ChaStrength=?,ChaSpirit=?,ChaDex=?,ChaStRemain=? where chanum = ?',array(0,0,0,0,0,0,$id));rnif($char_res)rnreturn true;rnrnreturn false;rnrnfunction _update_rb_stats($db,$cid,$stats,$rev=false)rnif($rev==true)rn$stn_res = $db->Execute('update rangame1.dbo.chainfo set ChaStRemain = ChaStRemain + ? where chanum = ?',array($stats,$cid));rnelsern$stn_res = $db->Execute('update rangame1.dbo.chainfo set ChaStRemain = ? where chanum = ?',array($stats,$cid));rnrnif($stn_res)rnreturn true;rnrnreturn false;rnrnfunction _char_list()rnglobal $db,$auth;rn$char_list = $db->Execute("SELECT UserNum,ChaNum,ChaName FROM RanGame1.dbo.ChaInfo Where ChaDeleted!=1 And UserNum = ?",array($auth['UserNum']));rnif($char_list->EOF)rnecho 'No char';rnforeach ($char_list as $char => $c) rn$temp_c = 'inputs[0]])==$c["chanum"])rn$temp_c.= 'selected="selected" ';rnrn$temp_c.= 'value="'.$c["chanum"].'">';rn$temp_c.= $c["chaname"];rn$temp_c.= '';rnrnecho $temp_c;rnrnrnrn$char_func = new char_do;rn?>rnrn在这里调用 为什么无法输出?
有哪位大佬帮我看一下我的VS2017出什么问题
创建C#项目时弹出一个窗口,说“Microsoft.VisualStudio.TemplateEngine.VSConfigurationHelpers”在初始化时引发了异常
我的IIS出了什么问题
默认设置时(按站点向导建立新站点)浏览网页出现:rnServer Application ErrorrnThe server has encountered an error while loading an application during the processing of your request. Please refer to the event log for more detail information. Please contact the server administrator for assistance.rnrn将站点 属性->主目录->应用程序保护 由“中(共用的)”改为“低(IIS进程的)”才能浏览。而且其中某些网页还出现找不到DNS的错误。刷新后正常,请问这是什么原因?
有谁知道出了什么问题???
rn本人近来在机了上安装了XP(专业版),同时装了VC6。可最近写的几个程序时常遇到下面让人困惑的现象:rn**如用一个进度条显示文件COPY进度时,有时一切OK,但有时界面好象程序死了的样子(主菜单变一片白色),进度条也不改变,我也以为是程序死了,可后发现程序一切正常,等COPY任务结束也恢复了正常,COPY任务也成功完成。我将此程序放在WIN2000上运行一切正常,从不出现此现象。我也试着跟踪,但<em>什么问题</em>都没发现,难道是VC与XP的不兼容吗?我将程序编译成R版,也常会出现此类现象。不知那位高人对小弟指点一下。谢谢!!!rnrn(另注:我用的VC6是创天中文VC6)rn
来看看,出了什么问题
谁能给一个用shotgraph或者imagelib组件写的程序?很简单的,能运行就可以。rn我看了他们的说明文档,用他们的例子程序,输出的却是乱码。(如下)rn请告诉我到底是<em>什么问题</em>。谢谢rnrnrnrnRoot Entry F0蕝贒? WordDocumentZV CompObj2n Z !"#$%&'()*+,-./01?3?櫐e#?0tV ", ¦, ¦  ?( @ ??B  0宋体 0黑体Times New Roman Symbol Arial MS Sans Serif Symbol0Courier New 宋体 0??????@B??Zjlprt痣驷茏彝让竟船opqac oqc oqc oqc oqc oqc oqc oqc oqc oqc oqc oqc oqc oqc oqc oqc0???B?lrt0t0t"¦K*@?*Normal  a opq"A@?"Default Paragraph Font?@?  FMicrosoft Word 6.0 Document MSWordDocWord.Document.6?瞦rnrn
这个出了什么问题
我在Applet的init中用了addNotify(),但是编译的时候出现了java.lang.NullPointerException错误,为什么?rn rn
IE6.0到底出了什么问题
IE6.0到底<em>出了</em><em>什么问题</em>?rn================rn我装windows 2000severrn装VS.Net,offiec 2000都正常,rn可是装了visio 2000以后,出问题了!rn======================rnIE6.0无法显示网页字体的颜色,只能显示黑色,rn字体大小,和关于对话框都得很难看!rnrnrnrnrnrn
请问这出了什么问题
这是检验登录界面rnrnrnrnrnrnrnrnrnrn rn 无标题文档rnrnrnrnrnrn rnrn rn rn rn rnrnrnrnrn可是页面没有跳转到userLogin.html,无论在表单中填什么都会跳到此页面来
这个代码出了什么问题???
rnrnrnrn rn rnrnrnrnMicrosoft JET Database Engine 错误 '80004005' rnrn找不到可安装的 ISAM。 rnrn/asp/datebase.asp, 行5 rnrnrn大家帮帮我啊。。
这是出了什么问题
[Pascal Error] PIMIS.pas(1): Unable to invoke Code Completion due to errors in source codern调用属性和方法的时候显示不正常阿??
sudoer 这是出了什么问题
## Sudoers allows particular users to run various commands asrn## the root user, without needing the root password.rn##rn## Examples are provided at the bottom of the file for collectionsrn## of related commands, which can then be delegated out to particularrn## users or groups.rn##rn## This file must be edited with the 'visudo' command.rnrn## Host Aliasesrn## Groups of machines. You may prefer to use hostnames (perhaps usingrn## wildcards for entire domains) or IP addresses instead.rn# Host_Alias FILESERVERS = fs1, fs2rn# Host_Alias MAILSERVERS = smtp, smtp2rnrn## User Aliasesrn## These aren't often necessary, as you can use regular groupsrn## (ie, from files, LDAP, NIS, etc) in this file - just use %groupnamern## rather than USERALIASrn# User_Alias ADMINS = jsmith, mikemrnrnrn## Command Aliasesrn## These are groups of related commands...rnvim /etc/sudoersrn## NetworkingrnCmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-toolrnrn## Installation and management of softwarernCmnd_Alias SOFTWARE = /bin/rpm, /usr/bin/up2date, /usr/bin/yumrnrn## ServicesrnCmnd_Alias SERVICES = /sbin/service, /sbin/chkconfigrnrn## Updating the locate databasernCmnd_Alias LOCATE = /usr/sbin/updatedbrnrn## StoragernCmnd_Alias STORAGE = /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umountrnrn## Delegating permissionsrnCmnd_Alias DELEGATING = /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrprnrn## ProcessesrnCmnd_Alias PROCESSES = /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killallrnrn## DriversrnCmnd_Alias DRIVERS = /sbin/modprobernrn# Defaults specificationrnrn#rn# Disable "ssh hostname sudo ", because it will show the password in clear.rnrnrnrn但是输入[hzj1556@localhost sipx]$ sudo mkdir -p /usr/local/sipxrn出来提示的却是:rn>>> sudoers file: syntax error, line 24 <<
Session_start();出了什么问题啊?
rn运行了这段程序就出错了,,,能告诉我是<em>什么问题</em>吗?rnrnWarning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/html/sm/mb/stest.php:2) in /var/www/html/sm/mb/stest.php on line 5rnrn
我的MAYA出了什么问题
我的M式AYA安装完成后按照协议做了AW。DAT也INSTALL导入了却无法启动。该如何修订。
这个代码出了什么问题
已经添加了microsoft html object的引用(com)rnrnrn[code=VB.NET]rnPublic Shared Function GetRegCodePic(ByVal wbMail As WebBrowser, ByVal ImgName As String) As Imagernrn Dim doc As HtmlDocument = DirectCast(wbMail.Document.DomDocument, HtmlDocument)rn Dim body As MSHTML.HTMLBody = DirectCast(doc.Body, MSHTML.HTMLBody)rn Dim rang As MSHTML.IHTMLControlRange = DirectCast(body.createControlRange(), MSHTML.IHTMLControlRange)rn Dim Img As MSHTML.IHTMLControlElementrn Img = DirectCast(wbMail.Document.All(ImgName).DomElement, MSHTML.IHTMLControlElement)rnrn rang.add(Img)rn rang.execCommand("Copy ", False, Nothing)rn Dim RegImg As Image = Clipboard.GetImage()rn 'Clipboard.Clear()rn Return RegImgrnrn End Functionrn[/code]rn----------------------------------------rn当执行到rnDirectCast(doc.Body, MSHTML.HTMLBody)rn提示无法转换rnrn这个代码是截取网页验证码的rn
我的.net出了什么问题
我本想在作应用是访问rnhttp://localhost/EmployeeManagement/WellCome.aspxrn但是地址栏中总是出现这样rnhttp://localhost/EmployeeManagement/(edzhyfalis5iprfh4wu2kqmy)/WellCome.aspxrnrn(edzhyfalis5iprfh4wu2kqmy)还老在变为什么?rn
编译器出了什么问题
我用的是TC2.0,不知怎么回事,今天用它编程进行编译的时候总是出同一个错误:Unable to create output file"xxxx.obj",拿最简单的HELLO WORLD来检测也是如此,以前能通过的程序现在拿来重新编译,也出现同样的错误,请问,这是怎么回事?
帮我看看出了什么问题
代码:rnrnrnrnrn rnrnrn The Database Accessrnrnrn rn rn rnrnrnrn错误提示:rnrn“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn找不到可安装的 ISAM。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: 找不到可安装的 ISAM。rnrn源错误: rnrnrn行 22: objConnection = new OleDbConnection(strConnect);rn行 23: objCommand = new OleDbDataAdapter(strCommand, objConnection);rn行 24: objCommand.Fill(DataSet1,"Products");rn行 25: DataGrid1.DataSource = DataSet1.Tables["Products"].DefaultView;rn行 26: DataGrid1.DataBind();rn rnrn源文件: G:\Asp.net\EnterAsp\ch02\DataBase.aspx 行: 24rnrn请高手指点
看看出了什么问题
我写的计算器的框架,还没有写事件代码。编译通过,但是不能执行。大家看看怎么了。rnrnimport java.awt.*;rnimport java.applet.*;rnrnpublic class AppletCalculator extends Appletrnrn Button num0,num1,num2,num3,num4,num5,num6,num7,num8,num9;rn Button bplu,bmin,bmul,bdiv,bequ;rn Panel buttonArea;rn TextField answer;rnrn public void init()rn rn num0=new Button("0");rn num1=new Button("1");rn num2=new Button("2");rn num3=new Button("3");rn num4=new Button("4");rn num5=new Button("5");rn num6=new Button("6");rn num7=new Button("7");rn num8=new Button("8");rn num9=new Button("9");rn rn bplu=new Button("+");rn bmin=new Button("-");rn bmul=new Button("*");rn bdiv=new Button("/");rn bequ=new Button("=");rnrn answer=new TextField(15);rn answer.setEditable(false);rnrn buttonArea=new Panel();rn buttonArea.setLayout(new GridLayout(4,4));rnrn buttonArea.add(num7);rn buttonArea.add(num8);rn buttonArea.add(num9);rn buttonArea.add(bplu);rn buttonArea.add(num4);rn buttonArea.add(num5);rn buttonArea.add(num6);rn buttonArea.add(bmin);rn buttonArea.add(num1);rn buttonArea.add(num2);rn buttonArea.add(num3);rn buttonArea.add(bmul);rn buttonArea.add(num0);rn buttonArea.add(new Label());rn buttonArea.add(bequ);rn buttonArea.add(bdiv);rnrnrn rnrn public void start()rn rn rn setLayout(new BorderLayout());rn add("North",answer);rn add("Center",buttonArea);rnrn rnrnrn rnrn
到底出了什么问题
class personrnrn int age;rnlong number;rnchar *name;rnpublic;rnperson()name=0;age=0;number=0;rnfriend istream & operator(istream &,person&);rnvoid print()rnrncout<<>a.name;rnis>>a.age;rnis>>a.number;rnreturn is;rnrnvoid main()rnrnperson man;rnis>>man;rnman.print();rnrn开始时提示is没有定义,将is改为cin后编译通过rn但当输入 luhuayi 22 2973270 时rn输出结果为rn name:rn age: 22rn number:2973270rn Null pointer assignmentrn为什么会这样呢?哪个地方出错了 我用的编译器是tc 3.0rn
帮我看看出了什么问题
public class Elefee rn public static void main (String args []) rn double a,fee;rn System.out.println ("本月您家的用电度数是: "+args[0]+"度");rn a = Double.parseDouble (args[0]);rn if (a>=0) rn if (a240 && a540)rn fee = (a-540)*0.45+(540-240)*0.25+240*0.15;rn output (fee); rn rn if (a java.lang.ArrayIndexOutOfBoundsExceptionrn at Elefee.main(Elefee.java:4)rn谢谢,rn
我的javamail出了什么问题????
try rn Multipart mp=new MimeMultipart();rn MimeBodyPart[] fileBodyPart=new MimeBodyPart[strFile.length];rn FileDataSource fds[]=new FileDataSource[strFile.length];rn rn //设置多(strFile.length)个附件(附件通过JSP传送得到,打印为正确)rn for(int i=0;i
高手看看出了什么问题?
步骤:rn1.将一个Dialog设为child.rn2.将之显示在CView里--正常.rn3.Dialog里加上CEdit--正常.rn4.Dialog里加上CRichEdit--出错(assert failed!)后来发现是Dialog.Create调用失败!rn哪位高手提示提示!rn多谢!
这段代码出了什么问题?
rnrnrnrn rnrnrnrn rn rn rn rn rn rn rn rn Namern Phonern rn rnrn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rnrn rn rn - - -rn rn rn rnrn rn rn rnrn
谁知道这里出了什么问题
我这一句rs.Open sql,conn,1,1运行时提示:ODBC 驱动程序不支持需要的属性。rn而改为rs.Open sql,conn,3,3时运行提示为:[Microsoft][ODBC Microsoft Access 驱动程序] 参数不足,期待是 1。我都不知是那里<em>出了</em>错
帮我看看出了什么问题!!
#include rn#include rninterval_time(t1,t2)rn int hour1;rn int minute1;rn int hour2;rn int minute2;rn t1=hour1*60+minute1;rn t2=hour2*60+minute2;rn if(t1
我的页面出了什么问题
struts的,JSP页面提交时报错rnargument type mismatchrn我又不是上传文件,怎么回事呢?rnrn文件太长了,贴一部分rn头部:rnrnrnrnrn 信封列印rn rn rnrnrn提交时检查的方法:rnfunction commitInput()rnrn if (running)rn rn setTimeout("commitInput()", timeInterval);rn return;rn rnrn passed = true;rn rn if (document.forms[0].province.value == "")rn rn passed = false;rn rn if (document.forms[0].unitTypeName.value == "")rn rn passed = false;rn rn if (document.forms[0].unitAddr.value == "")rn rn passed = false;rn rn if (document.forms[0].unitPostcode.value == "")rn rn passed = false;rn rn if (document.forms[0].transferNum.value == "")rn rn passed = false;rn rnrn if (document.forms[0].transferNumValid.value == "0")rn rn passed = false;rn rn if (document.forms[0].postNumValid.value == "0")rn rn passed = false;rn rnrn if (!passed)rn rn document.getElementById("msgAlert").innerHTML = " 輸入有錯誤";rn return false;rn rn rn document.forms[0].act.disabled = true;rn commited = true;rn document.forms[0].msg.value = "";rn document.forms[0].submit();rnrnrnfunction commitMe(callFrom)rnrn if ((callFrom == '1' || event.keyCode == 13) && !commited)rn rn checkPostNum();rn checkNumber();rnrn ret = commitInput();rn if (ret == false)rn return false;rn rnrnrn某些地方用了Ajax,如下例:rnxmlHttp.open("POST", url, true);rnxmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');rnxmlHttp.onreadystatechange = updateArea;rnxmlHttp.send(thePara);rnrnbody和form定义:rnrnrnrnrn rn
我的oracle出了什么问题?
Oracle817,OracleTNSListener和数据库服务已经启动.rn执行sqlplus system/manager时提示:rnERROR:rnORA-01034: ORACLE not availablernORA-27101: shared memory realm does not existrn请问是什么原因呢?
安卓市场出了什么问题
我登陆安卓市场后,准备下载安装一个免费应用,发现有问题:rn1.明明根本没有安装,居然被它识别成安装了rn2.明明我的手机是华硕飞马x002,被它识别成softbank samsung gt-19000rnrn这是什么情况?请大神解释清楚?rnrn[img=https://img-bbs.csdn.net/upload/201502/07/1423313566_324381.png][/img]rnrn[img=https://img-bbs.csdn.net/upload/201502/07/1423313590_56751.png][/img]
我的vc出了什么问题了?
对于某个对象a,我输入a.以后,不会出现上下文提示了。输入->以后也是这样。rn而且某些关键字下还会出现红色的曲线,这个在以前应该是程序有问题的表现,但是rn现在程序可以顺利编译通过,正确的执行的。rnrn各位<em>帮忙</em>啊,谁碰到过这种问题的?
我的dreamveaver出了什么问题
我用的是 dreamveaverMX2004 ,不知从什么时候开始, 不能插入flash,和层 (刚安装时是可以的)。 不知道什么原因。rn还望各位高手不吝赐教。 感激不尽。
什么问题啊?出了
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e4d' rnrn[Microsoft][ODBC SQL Server Driver][SQL Server]用户 'sa' 登录失败。原因: 未与信任 SQL Server 连接相关联。 rn
基于Spline金字塔的图像融合方法.pdf下载
基于Spline金字塔算法的的图像融合算法 相关下载链接:[url=//download.csdn.net/download/illdragon/2749433?utm_source=bbsseo]//download.csdn.net/download/illdragon/2749433?utm_source=bbsseo[/url]
VC数字图像处理编程讲座下载
VC数字图像处理编程讲座:讨论如何利用微软的Visual C++开发工具来实现一些常用的数字图像处理算法,论述了图像处理的理论,同时给出了VC实现的源代码。本讲座主要的内容分为基础篇、中级篇和高级篇,具体包含的主要内容有:   1. 图像文件的格式;   2. 图像编程的基础-操作调色板;   3. 图像数据的读取、存储和显示、如何获取图像的尺寸等;   4. 利用图像来美化界面;   5. 图像的基本操作:图像移动、图像旋转、图像镜像、图像的缩放、图像的剪切板操作;   6. 图像显示的各种特技效果;   7. 图像的基本处理:图像的二值化、图像的亮度和对比度的调整、图像的边缘增强、如何得到 相关下载链接:[url=//download.csdn.net/download/cwm0700710212/3144018?utm_source=bbsseo]//download.csdn.net/download/cwm0700710212/3144018?utm_source=bbsseo[/url]
ASAMN防火墙模拟器下载
ASAMN防火墙模拟器 相关下载链接:[url=//download.csdn.net/download/lcg87852/4075629?utm_source=bbsseo]//download.csdn.net/download/lcg87852/4075629?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的