求大神帮我看看 Spring中导入ApplicationContext出错了 怎么办

图片说明
第九行错误显示的是这个The package org.springframework.context is accessible from more than one module: spring.aspects, spring.context

2个回答

你把包都放到项目的lib目录下再构建路径试试

Build Path->Class Path 把这些包放到Class Path下 不要放到Module Path

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
帮我看看 哪里出错了,求大神!!
message rndescription The server encountered an internal error () that prevented it from fulfilling this request.rnexception rnjavax.servlet.ServletException: java.lang.NullPointerExceptionrn org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:515)rn org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419)rn com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:119)rn com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:55)rn org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:99)rn org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)rn org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)rn org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)rnroot cause rnrnjava.lang.NullPointerExceptionrn com.demo.struts2.actions.LoginAction.execute(LoginAction.java:36)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn java.lang.reflect.Method.invoke(Unknown Source)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:404)rn com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:267)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:229)rn com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)rn org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:107)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:206)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:115)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:143)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:121)rn com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:170)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:123)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)rn com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)rn com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)rn com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)rn rnnote The full stack trace of the root cause is available in the JBoss Web/2.1.1.GA logs.rn
出错了,帮我看看
org.hibernate.exception.GenericJDBCException: Cannot open connectionrn at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92)rn at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)rn at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:301)rn at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:110)rn at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:76)rn at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:1739)rn at org.hibernate.persister.entity.BasicEntityPersister.insert(BasicEntityPersister.java:2178)rn at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:34)rn at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:239)rn at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:240)rn at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:160)rn at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:95)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:184)rn at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:173)rn at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)rn at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:69)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:481)rn at org.hibernate.impl.SessionImpl.save(SessionImpl.java:476)rn at cn.somsoft.myznt.dao.impl.IUserDAOImpl.register(IUserDAOImpl.java:12)rn at cn.somsoft.myznt.struts.action.UserAction.register(UserAction.java:73)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:270)rn at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:187)rn at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at cn.somsoft.myznt.filter.EncodingFilter.doFilter(EncodingFilter.java:21)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)rn at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)rn at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)rn at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)rn at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'rn at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)rn at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)rn at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:298)rn ... 47 morernCaused by: java.sql.SQLException: No suitable driverrn at java.sql.DriverManager.getDriver(Unknown Source)rn at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)rn ... 50 more
出错了!!帮我看看!
format('%s,%d bytes',[temps,getfilesize(temps)]);rn这一句出现了错误:[Error] Unit1.pas(302): E2010 Incompatible types: 'Cardinal' and 'string'rn我不知道是哪个参数错了,这里面好象没有Cardinal类型吧~rn这个是getfilesize的代码:rn[code=Delphi(Pascal)]rnfunction getfilesize(const filename:string):longint;rnvarrnsearchrec:Tsearchrec;rnbeginrnif findfirst(expandfilename(filename),faanyfile,searchrec)=0 thenrnresult:=searchrec.Sizernelse result:=-1rnend;rn[/code]rn帮我改改~谢谢了
求大神们看看哪里出错了
ImageView img1; Button bt1, bt2; int j=0; Drawable d[] = { this.getResources().getDrawable(R.drawable.horse1), this.getResources().getDrawable(R.drawable.horse2), this.getResources().getDrawable(
页面出错了 求大神帮忙看看
<%rnusername=replace(request.form("TxtUserName"),"'","''")rnpassword=replace(request.form("TxtPassword"),"'","''")rnsql="select * from user where(U_Name='"&username&"' and U_Pwd='"&password&"')"rnset rs=server.createobject("adodb.recordset")rnrs.open sql,conn,1,3rnif not rs.eof thenrn select case rs("U_Qx")rn case 0:rn session("check")="checked"rn response.Redirect "guanli.asp?id=<%=rs("U_ID")%>"rn case 1rn response.redirect "Default.asp?id=<%=rs("U_ID")%>"rn end selectrnelsernsession("check")=""rnresponse.Write " 对不起,请填写正确的信息"rnresponse.Write " 点击放回登陆页面 "rnend ifrnrs.closernconn.closern%>rn
求大神帮忙看看哪里出错了。
我想实现用户之间的通信,思想是建立一个消息表,然后把收件人用户名、发件人用户名、消息等放进去,然后谁想看发给自己的消息就去消息表中查找收件人是自己的记录。现在做到发消息这一块儿了,发完消息我发现[color=#FF0000]数据库消息表中并没有记录[/color],应该是没有正确插入表中,大神帮忙看看是哪里错了,我也是刚接触PHP的,以前上课学的东西都是基础的,运用到实践中总是出很多问题。rn下面附上相关的代码([color=#FF0000]其中sqltable是用户表,sqltable2是消息表,user_name是用户表中存储用户名的,s_name是消息表中存储发件人的,r_name是消息表中收件人[/color])rnrn[color=#FF0000]config.php[/color]rn[code=php][/code]rnrn[color=#FF0000]message.php[/color]rn[code=php]location.href='index.php';";rnexit;rnrn//上面的要验证过滤的rn?>rnrnrnrn rn 给管理员发信rnrnrnrn rn rn 发信(message.php)||返回rn rn rn 收件人:rn rn rn rn 消息内容:rn rn rn rn   rn rn rn rn rnrnrnrn[/code]rnrn[color=#FF0000]message_cl.php[/color]rn[code=php]location.href='index.php';";rnexit;rn$_SESSION["name"]=$row[user_name];rn//这里是SESSION来验证用户的合法性rnrninclude("config.php"); //参数页面提取过来rnrnif(empty($_POST["r_name"]))rnecho (" ");rnexit;rnrnif(empty($_POST["content"]))rnecho (" ");rnexit;rnrnrn$s_name=$_SESSION["name"];rn$r_names=$_POST["r_name"];rn$content=$_POST["content"];rn$add_time=date("Y-m-d");rn$is_open="no";rnrn$db=mysql_connect($servername,$sqlservername,$sqlserverpws);rnrnmysql_select_db($sqlname,$db) ;rn$sql="select * from $sqltable where user_name='$s_name'";rn$result=mysql_fetch_row(mysql_query($sql));rnrnif(!$result)rnecho (" ");rnrnelsern$sql="insert into $sqltable2(s_name,r_name,content,add_time,is_open) values('$s_name','$r_name','$content','$add_time','$is_open') ";rnmysql_query($sql);rnrnecho (" ");rnrn?>[/code]
求大神帮我看看这句SQL哪里出错了
insert into t_jiuzhen (id,brid, brname, by, ysid, bs) values (4,2,‘1’,‘1’,3, 0)这句SQL哪里错了。
求高手帮我看看哪里出错了
我用C语言编写的“QQ会员信息管理系统”rn其中内容包括:1. 每个QQ会员的信息包含会员名称,性别,年龄,Q币余额和会员期限这五项信息。rn2. 实现以下功能:显示(即打印)、查找(按会员名称)、更改、插入、删除、升序排序(按会员名称)。rn用结构体数组编写的。rn编译没有任何错误,但是运行显示的却不是我编写的菜单界面。下面是我的的代码。rn#include rn#include rn#include rn#include rnint QQhyNum=0;//全局变量,记录QQ会员人数。rnint flag =0;//全局变量,记录执行删除和插入后QQ会员人数的变化rnstruct addresslistrnrn int num;rn char name[20];//QQ会员名称rn char sex[10];//QQ会员性别rn int age[10];//QQ会员年龄rn float surp[10];//QQ会员余额rn float time[10];//QQ会员期限rnQQhy[100];rnint menu();//界面菜单rnvoid end();//退出系统rnvoid save();//保存QQ会员信息到文件中rnvoid print(struct addresslist *P);//打印某QQ会员的信息rnvoid input(struct addresslist *P,int n);//插入某QQ会员信息rnvoid find(struct addresslist *P);//查找某QQ会员信息rnvoid change(struct addresslist *P);//更改某QQ会员信息rnvoid sort(struct addresslist *P);//按照QQ会员名称排序rnvoid dele(struct addresslist *p);//删除某位会员的信息rnvoid insert();//插入某位会员的信息rnchar returnToMenu(void);//返回主菜单rnvoid main()rnrn int i,peopleNum;rn FILE *fp;rn char chose;rn if((fp=fopen("QQ会员信息表.txt","r+"))==NULL)rn rn printf("文件打不开!\n");rn exit(0);rn rn i=0;rn dorn rn i=0;rn while(!feof(fp))rn rn fread(&QQhy[i],sizeof(struct addresslist),1,fp);rn i++;rn QQhyNum++;rn rn switch(menu())rn rn case 1:rn system("cls");rn print(QQhy);rn chose=returnToMenu();rn break;rn case 2:rn find(QQhy-flag);rn chose=returnToMenu();rn break;rn case 3:rn system("cls");rn print(QQhy);rn chose=returnToMenu();rn break;rn case 4:rn dele(QQhy);rn chose=returnToMenu();rn break;rn case 5:rn system("cls");rn printf("请输入要录入的人数\n");rn scanf("%d",&peopleNum);rn while(peopleNum--)rn rn insert();rn rn chose=returnToMenu();rn break;rn case 6:rn system("cls");rn sort(QQhy);rn chose=returnToMenu();rn break;rn case 7:rn system("cls");rn end();rn break;rn default:rn printf("输入错误");rn chose=returnToMenu();rn break;rnrn rn rn while(chose!='Y' && chose!='y');rn if(chose=='Y' || chose=='y')rn rn system("cls");//*****rn end();rn rn fclose(fp);rnrn//菜单显示rn int menu()rn rn int num;rn system("cls");rn printf("****************************************QQ信息表***************************************\n\n");rn printf("\t1、录入");rn printf("\t2、查找");rn printf("\t3、更改");rn printf("\t4、删除");rn printf("\t5、插入");rn printf("\t6、排序");rn printf("\t7、退出\n\n");rn printf("***************************************************************************************\n\n");rn printf("请输入你想要执行的操作数:");rn fflush(stdin);rn scanf("%d",&num);rn return num;rn rn//把信息录入文件保存rn void save()rn rn int i;rn FILE *fp;rn if((fp=fopen("QQ会员信息表.txt","w"))==NULL)rn rn printf("\n\t\t文件打开失败!");rn rn for(i=0;i0;i--,p++)rn rn printf("名称:%s\n性别:%s\n年龄:%d\nQ币余额:%f\n会员期限:%f\n",p->name,p->sex,p->age,p->surp,p->time);rn printf("\n*********************************************************************************\n");rn rn rn //输入某QQ会员信息rn void input(struct addresslist *p,int n)rn rn static int i=0;rn printf("请输入第%d个QQ会员信息:\n",++i);rn printf("请输入名称:");rn scanf("%s",p->name);rn printf("请输入性别:");rn scanf("%s",p->sex);rn printf("请输入年龄:");rn scanf("%d",p->age);rn printf("请输入Q币余额:");rn scanf("%f",p->surp);rn printf("请输入会员期限:");rn scanf("%f",p->time);rn printf("\n");rn printf("**********************************************输入完成!!***************************************************\n");rn rn //按QQ会员名称对QQ信息排序rn void sort(struct addresslist *p)rn rn int j,i;rn struct addresslist temp;rn printf("\t\t\t按名称排序后:\n");rn for(i=0;i0)rn rn temp=QQhy[j];rn QQhy[j]=QQhy[j+1];rn QQhy[j+1]=temp;rn rn rn rn print(QQhy);rn rn /*按会员名称查找会员信息*/rn void find(struct addresslist *p)rn rn char name2[20];rn int i;rn system("cls");rn printf("请输入要查找的QQ会员名称:");rn fflush(stdin);rn scanf("%s",&name2);rn for(i=0;iname),name2)==0)rn rn printf("\n\n%sQQ会员信息如下:\n\n",name2);rn printf("名称:%s\n性别:%s\n年龄:%d\nQ币余额:%f\n会员期限:%f\n",p->name,p->sex,p->age,p->surp,p->time);rnrn rn if(i==QQhyNum)rn printf("没有找到相关会员信息!\n");rnrnrn rn /*删除某会员信息*/rn void dele(struct addresslist *p)//******rn rn char name3[20];rn int i=0,j;rn char choice;rn system("cls");rn printf("请输入要删除的QQ会员名称:");rn scanf("%s",&name3);rn for(i=0;i<=QQhyNum+flag;p++,i++)rn if(strcmp((p->name),name3)==0)rn rn printf("\n\n%sQQ会员信息如下:\n\n",name3);rn printf("名称:%s\n性别:%s\n年龄:%d\nQ币余额:%f\n会员期限:%f\n",p->name,p->sex,p->age,p->surp,p->time);rn printf("\n确定删除Y或N");rn fflush(stdin);rn choice=getchar();rn if(choice=='Y' || choice=='y')rn rn for(j=i-1;j<=QQhyNum+flag;j++)rn QQhy[j+1]=QQhy[j+2];rn printf("\t已成功删除!");rn flag--;rn save();rn rn elsern printf("已取消删除!");rn rnrn rn if(i==QQhyNum+flag)rn printf("没有找到相关会员信息!");rn rn rn /*插入会员信息*/rn void insert()//*****rn rn printf("请输入要插入会员信息:\n");rn input(&QQhy[QQhyNum+flag-1],1);rn flag++;rn save();rn rn /*更改某会员信息*/rn void change(struct addresslist *p)rn rn int i,enter;rn char add,name4[20],choice;//*****rn printf("请输入要删除的QQ会员名称:");rn scanf("%s",&name4);rn for(i=0;i<=QQhyNum+flag;p++,i++)rn if(p->name==name4)rn rn printf("\n\n%sQQ会员信息如下:\n\n",name4);rn printf("***************************************************************************************");rn printf("名称:%s\n性别:%s\n年龄:%d\nQ币余额:%f\n会员期限:%f\n",p->name,p->sex,p->age,p->surp,p->time);rn printf("***************************************************************************************");rn printf("\n1、更改会员名称\n2、更改会员性别\n3、更改会员年龄\n4、更改会员Q币余额\n5、更改会员期限\n");rn dorn rn printf("请输入要更改的序号:");rn scanf("%d",&enter);rn while(enter>5 || enter<1)rn rn printf("输入错误!!\n请再次选择:");rn getchar();rn scanf("%d",&enter);rn rn switch(enter)rn rn case 1:rn printf("请输入该会员新名称:");rn scanf("%d",&p->name);rn break;rn case 2:rn printf("请输入该会员性别:");rn scanf("%d",&p->sex);rn break;rn case 3:rn printf("请输入该会员年龄:");rn scanf("%d",&p->age);rn break;rn case 4:rn printf("请输入该会员新余额:");rn scanf("%d",&p->surp);rn break;rn case 5:rn printf("请输入该会员新期限:");rn scanf("%d",&p->time);rn break;rnrn rn printf("\n是否还要更改其他会员信息?需要请按Y/y:");rn getchar();rn scanf("%c",&choice);rn rn while(choice=='y' || choice=='Y');rn save();rn printf("更改后会员信息为:\n");rn printf("名称:%s\n性别:%s\n年龄:%d\nQ币余额:%f\n会员期限:%f\n",p->name,p->sex,p->age,p->surp,p->time);rn break;rn rn /*找不到更改的会员,询问是否添加*/rn if(i==QQhyNum)rn rn printf("没有此会员!\n是否添加Y/N:");rn //char add;rn getchar();rn scanf("%c",&add);rn if(add=='y' || add=='Y')rn rn insert();rn rn rn rnrn rn /*返回菜单*/rn char returnToMenu(void)rn rn char ch;rn printf("\n退出按Y,否则按其他键:");rn fflush(stdin);rn ch=getchar();rn return(ch);rn rn /*退出系统*/rn void end()rn rn printf("*******************************************谢谢使用!********************************************");rn exit(0);rn rnrnrn
出错了!帮我看看小问题!
sql="select * from t1 where pvs_ID=" & request("pvs_ID") rnset rs=server.createobject("adodb.recordset") rnrs.open sql,conn,3 rnrnsql1="select * from t2 where mem_ID=" & rs("pvs_name")rnset rs1=server.createobject("adodb.recordset") rnrs1.open sql1,conn,3 rnrn出错了,好象是第二个,sql1的问题 rn
帮我看看哪里出错了??
给定一句英语,要求你编写程序,将句中所有单词的顺序颠倒输出。rnrn输入格式:测试输入包含一个测试用例,在一行内给出总长度不超过80的字符串。字符串由若干单词和若干空格组成,其中单词是由英文字母(大小写有区分)组成的字符串,单词之间用1个空格分开,输入保证句子末尾没有多余的空格。rnrn输出格式:每个测试用例的输出占一行,输出倒序后的句子。rnrn输入样例:rnHello World Here I Comern输出样例:rnCome I Here World Hellornrn这是题目rnrn[code=c]#include rn#include rn#define SIZE 80rnchar *s_gets(char *str,unsigned short n);rnrnint main(void)rn char a[SIZE];rn short i,j,k;rnrn s_gets(a,SIZE);rn i=strlen(a)-1;rn while(i)rn k=i;rn while(a[i]!=' ' && i>=0)rn i--;rn rn for(j=i+1;j<=k;j++)rn putchar(a[j]);rn i--;rn rnrn return 0;rnrnrnchar *s_gets(char *str,unsigned short n)rn char *p;rn unsigned short i=0;rnrn p=fgets(str,SIZE,stdin);rn if(p)rn while(p[i]!='\n' && p[i]!='\0')rn i++;rn if(p[i]=='\n')rn p[i]='\0';rn elsern while(getchar()!='\n')rn continue;rn rnrn return p;rnrn[/code]rnrn[img=https://img-bbs.csdn.net/upload/201804/13/1523590704_864240.png][/img]
代码出错了!帮我看看!
我做了一个上传图片的页面,出现如下错误rnrn错误类型:rnMicrosoft VBScript 运行时错误 (0x800A0005)rn无效的过程调用或参数: 'MidB'rn/tmsite/pages/upload.asp, 第 16 行rnrnrn第16行代码是rnrn FormFieldName = bin2str(MidB(FormData,FieldNameStart,FieldNameSize))rnrn是什么原因呀?
帮我看看那出错了
帮我看看那出错了。这教材也太烂了。原样写出来编译就报错。rn#include rnusing namespace std; rnrnrnint main()rnrn struct coures_workrn rn char course1[20];rn char course2[20];rn struct course_work *prt;rn ;rn course_work semester[3]=rn "Computer 101","Math101",&semester[1],rn "System 101","Math 102",&semester[2],rn "Analysis 101","Calculus",&semester[0];rn int i;rn for(i=0;i<=2;i++)rn rn cout<<"contents being pointed to:"<course1<dis_1.cpprn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(14) : error C2552: “semester”: 不能用初始值设定项列表初始化非聚合rn1> “course_work”: 不聚合带用户定义的构造函数的类型rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(14) : error C2036: “course_work *”: 未知的大小rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(15) : error C2079: “semester”使用未定义的 struct“semester”rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(15) : error C2078: 初始值设定项太多rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(15) : error C2036: “course_work *”: 未知的大小rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(16) : error C2036: “course_work *”: 未知的大小rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(16) : error C2143: 语法错误 : 缺少“”(在“;”的前面)rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(16) : error C2143: 语法错误 : 缺少“”(在“;”的前面)rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(20) : error C2036: “course_work *”: 未知的大小rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(20) : error C2027: 使用了未定义类型“course_work”rn1> d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(11) : 参见“course_work”的声明rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(20) : error C2228: “.prt”的左边必须有类/结构/联合rn1>d:\my documents\visual studio 2008\projects\c++ file\dis\dis\dis_1.cpp(20) : error C2227: “->course1”的左边必须指向类/结构/联合/泛型类型rn1>生成日志保存在“file://d:\My Documents\Visual Studio 2008\Projects\C++ file\dis\dis\Debug\BuildLog.htm”rn1>dis - 12 个错误,0 个警告rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rn
帮我看看 哪里出错了
[code=VB.NET]rn e.Row.Attributes.Add("onclick", String.Format("javascript:document.getElementById('0').click()", e.Row.Cells(0).FindControl("btnDetial").ClientID))rnrn[/code]rnrn错误:rnObject reference not set to an instance of an object.
帮我看看那里出错了!
SqlCommand cmd = new SqlCommand("SELECT max(id) FROM TAB_Spmx",cn);rnmax = Convert.ToInt32(cmd.ExecuteScalar());rnrn数据库里面有个字段为id 类型为varcharrnidrn---rn78rn---rn79rn---rn80rn---rn100rnrn使用SqlCommand cmd = new SqlCommand("SELECT max(id) FROM TAB_Spmx",cn);这句的是时候,我应该得到“100”这个字符的值,但是,我得到的是“80”!rnmax()这个函数,到底是怎么解释的啊,为什么我得不到“100”这个值!?rn
求大神帮我看看!
请问一个问题 我在主窗体的panel容器里添加了一个Form子窗体 也实现了点击后子窗体最大化的效果 但是在主窗体不是最大化的时候点击弹出子窗体后 我去把主窗体最大化之后 Form子窗体不会跟随panel的尺寸改变 rnrn private void Form1_Load(object sender, EventArgs e)rn rn this.WindowState = System.Windows.Forms.FormWindowState.Maximized;rn this.panelFrom.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;rn this.label1.ForeColor = Color.LightPink;rn rnrnrn private void OpenForm(Form objForm)rn rn objForm.TopLevel = false;//将子窗体设置成费顶级控件rn objForm.WindowState = FormWindowState.Maximized;//设置窗体最大化rn objForm.FormBorderStyle = FormBorderStyle.None;//去掉窗体边框rn objForm.Dock = System.Windows.Forms.DockStyle.Fill;//设置子窗体属性为Fillrn //objForm.Anchor = System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Top |System.Windows.Forms.AnchorStyles.Bottom;rn objForm.Parent = this.panelFrom;//指定当前子窗体显示的容器rn this.panelFrom.Controls.Add(objForm);rn objForm.Show();rnrn rnrn private void 合同履行情况ToolStripMenuItem_Click(object sender, EventArgs e)rn rn FrmContract objForm = new FrmContract();rn this.OpenForm(objForm);rn rnrn private void panelFrom_SizeChanged(object sender, EventArgs e)rn rn foreach(Control ctrl in this.panelFrom.Controls)rn rn if (ctrl is Form)rn rn ctrl.Height = this.panelFrom.Height;rn ctrl.Width = this.panelFrom.Width;rn rn rn rn
求大神看看哪里错了
12-16 18:08:09.120 6564-6564/? E/AndroidRuntime: FATAL EXCEPTION: mainrn java.lang.IllegalStateException: ArrayAdapter requires the resource ID to be a TextViewrn at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:386)rn at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)rn at android.widget.AbsListView.obtainView(AbsListView.java:2424)rn at android.widget.ListView.makeAndAddView(ListView.java:1781)rn at android.widget.ListView.fillDown(ListView.java:679)rn at android.widget.ListView.fillFromTop(ListView.java:739)rn at android.widget.ListView.layoutChildren(ListView.java:1632)rn at android.widget.AbsListView.onLayout(AbsListView.java:2254)rn at android.view.View.layout(View.java:11467)rn at android.view.ViewGroup.layout(ViewGroup.java:4238)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1644)rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1502)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1415)rn at android.view.View.layout(View.java:11467)rn at android.view.ViewGroup.layout(ViewGroup.java:4238)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1644)rn at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1633)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1417)rn at android.view.View.layout(View.java:11467)rn at android.view.ViewGroup.layout(ViewGroup.java:4238)rn at android.widget.FrameLayout.onLayout(FrameLayout.java:431)rn at android.view.View.layout(View.java:11467)rn at android.view.ViewGroup.layout(ViewGroup.java:4238)rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1644)rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1502)rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1415)rn at android.view.View.layout(View.java:11467)rn at android.view.ViewGroup.layout(ViewGroup.java:4238)rn at android.widget.FrameLayout.onLayout(FrameLayout.java:431)rn at android.view.View.layout(View.java:11467)rn at android.view.ViewGroup.layout(ViewGroup.java:4238)rn at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1721)rn at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2678)rn at android.os.Handler.dispatchMessage(Handler.java:99)rn at android.os.Looper.loop(Looper.java:137)rn at android.app.ActivityThread.main(ActivityThread.java:4514)rn at java.lang.reflect.Method.invokeNative(Native Method)rn at java.lang.reflect.Method.invoke(Method.java:511)rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)rn at dalvik.system.NativeStart.main(Native Method)rn Caused by: java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.TextViewrn at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:379)rn at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362) rn at android.widget.AbsListView.obtainView(AbsListView.java:2424) rn at android.widget.ListView.makeAndAddView(ListView.java:1781) rn at android.widget.ListView.fillDown(ListView.java:679) rn at android.widget.ListView.fillFromTop(ListView.java:739) rn at android.widget.ListView.layoutChildren(ListView.java:1632) rn at android.widget.AbsListView.onLayout(AbsListView.java:2254) rn at android.view.View.layout(View.java:11467) rn at android.view.ViewGroup.layout(ViewGroup.java:4238) rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1644) rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1502) rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1415) rn at android.view.View.layout(View.java:11467) rn at android.view.ViewGroup.layout(ViewGroup.java:4238) rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1644) rn at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1633) rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1417) rn at android.view.View.layout(View.java:11467) rn at android.view.ViewGroup.layout(ViewGroup.java:4238) rn at android.widget.FrameLayout.onLayout(FrameLayout.java:431) rn at android.view.View.layout(View.java:11467) rn at android.view.ViewGroup.layout(ViewGroup.java:4238) rn at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1644) rn at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1502) rn at android.widget.LinearLayout.onLayout(LinearLayout.java:1415) rn at android.view.View.layout(View.java:11467) rn at android.view.ViewGroup.layout(ViewGroup.java:4238) rn at android.widget.FrameLayout.onLayout(FrameLayout.java:431) rn at android.view.View.layout(View.java:11467) rn at android.view.ViewGroup.layout(ViewGroup.java:4238) rn at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1721) rn at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2678) rn at android.os.Handler.dispatchMessage(Handler.java:99) rn at android.os.Looper.loop(Looper.java:137) rn at android.app.ActivityThread.main(ActivityThread.java:4514) rn at java.lang.reflect.Method.invokeNative(Native Method) rn at java.lang.reflect.Method.invoke(Method.java:511) rn at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993) rn at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760) rn at dalvik.system.NativeStart.main(Native Method) 
麻烦大神帮我看看哪里出错了(Java基础)
public class wwwn public static void main(String []args)n n n People p1=new People("小明",28,c1);n People p2=new People("小红",25,c1);n Baby c1=new Baby("宝贝",5);nn p1.renming();n c1.renming();nnnnnclass Peoplenn String name;n int age;n Baby baby;nn public People(String name,int age,Baby baba)n this.name=name;n this.age=age;n this.baby=baby;nn public void renming()n System.out.println("名字叫做:"+this.name);nnnnnclass Babynn String name;n int age;nn public Baby(String name,int age)n this.name=name;n this.age=age;nn public void renming()n System.out.println("婴儿的名字叫做"+this.name);nnnn
c++问题,大神们帮我看看哪里出错了@_@
[code=c]rn#include rn#include rnusing namespace std;rnrnclass peoplernprotected:rn string name;rn int age;rn double salary;rnpublic:rn int workHour;rn people(string n , int a , double s):name(n),age(a),salary(s)rn virtual ~people()rn virtual int csalary();rn string getname()rn return name;rn rn int getage()rn return age;rn rn double getsalary()rn return salary;rn rn;rnrnclass teacher:public peoplernpublic:rn teacher();rn virtual int csalary()return 2000*workHour;rn;rnrnclass worker:public peoplernpublic:rn worker();rn virtual int csalary()return 800*workHour;rn;rnrnclass student:public peoplernpublic:rn student();rn virtual int csalary()return 200*workHour;rn;rnrnint main() rn int a,b,c;rn teacher *t;rn worker *w;rn student *s;rn a=t->csalary();rn b=w->csalary();rn c=s->csalary();rn people *p[3];rn people *x;rn cin>>x->workHour;rn p[0]=new people("张三",40,a);rn p[1]=new people("李四",30,b);rn p[2]=new people("王五",20,c);rn cout<getname()<getage()<getsalary()<getname()<getage()<getsalary()<getname()<getage()<getsalary()<
哪位好心的大神帮我看看程序那个地方出错了
#includernrnusing namespace std;rnrnconst int Len=40;rnstruct golfrn char fullname[Len];rn int handicap;rn;rnvoid setgolf(golf& g,char* name,int hc);rnvoid handicap(golf& g,int hc):rnvoid show(const golf& g);rnrnint main()rn golf no1="wangxu",123;rn show(no1);rn cout<<"please input another one"<>Handicap;rn cin.getline(Fullname,Len);rn setgolf(g,Fullname,Handicap);rn show(no2);rn cout<<"input no3: \n";rn golf no3;rn setgolf(no3);rn cout<<"no3:\n";rn show(no3);rn cout<<"change handicap\n";rn cin>>Handicap;rn setgolf(no3,Handicap);rn show(no3);rn cout<<"Bye-bye!\n";rnrn return 0;rnrnrnrnvoid setgolf(golf& g,const char*name,int hc)rn strcpy(g.fullname,name);rn g.handicap=hc;rnrnrnint setgolf(golf& g)rn cout<<"please input the name: ";rn cin.getline(g.fullname,Len);rn cout<<"please input the handicap: ";rn cin>>g.handicap;rn if(g.fullname='\0')rn return 0;rn elsern return 1;rnrnvoid show(const golf& g)rn cout<
sql 存储过程那位大神帮我看看那块出错了?
PRINT ' ==================== creating Procedure SP_QUERY_TOPDIARY1 =================== 'rnGOrn/*rn编号:**** 名称: SP_QUERY_TOPDIARY1rn功能:rnrn*/rnIF EXISTS (SELECT * FROM sysobjects WHERE name = 'SP_QUERY_TOPDIARY1' )rn DROP PROCEDURE SP_QUERY_TOPDIARY1rnGOrnCREATE PROCEDURE SP_QUERY_TOPDIARY1 @IN_SERIAL_NO INT,rn @IN_OP_CODE INT, rn @IN_DIARY_TYPE INT, --日周志类型rn @IN_START_DATE INT, --开始日期rn @IN_END_DATE INT --结束日期rnWITH ENCRYPTIONrn ASrn IF ISNULL(@IN_SERIAL_NO,0) <>0rn SELECT A.*,B.OP_NAMErn    FROM TOPDIARY A,TOPERATOR Brn WHERE A.SERIAL_NO = @IN_SERIAL_NOrn ELSErn SELECT A.*,B.OP_NAMErn FROM TOPDIARY A,TOPERATOR B rn WHERE OP_CODE=@IN_OP_CODE OR ISNULL(@IN_OP_CODE,0)=0rn AND(DIARY_TYPE =@IN_DIARY_TYPE OR ISNULL(@IN_DIARY_TYPE,0) =0)rn AND (DIARY_DATE >= @IN_START_DATE OR ISNULL(@IN_START_DATE,0) =0)rn AND(DIARY_DATE <= @IN_END_DATE OR ISNULL(@IN_END_DATE,0) =0)rn ORDER BY SERIAL_NOrn rnGOrn
Java那位大神帮我看看代码哪里出错了?
package java基础篇;public class ProductPrice { public static void main(String[] args) {  int a[][]=new int[8][];//创建二维数组  //遍历第二维数组的第一层  for (int i = 0; i &amp;lt; a.length; i++) {   a[i]=new int[i+1];//初始化第...
大神帮我看看这个小的查找,哪里出错了?
public class Searchrn public static void main(String [] args) rn int a[] = 1, 3, 4, 7, 9, 20, 58, 79 ;rn int i = 9;rn System.out.println(twofen(a,i));rn rn rn public static int twofen(int []a,int num) rn if(a.length == 0)return -1;rn int firstpos = 0;rn int lastpos = a.length -1;rn int m = (firstpos + lastpos) / 2;rn while(firstpos <= lastpos)rn if(num == a[m])return m;rn if(num < a[m])lastpos = a[m]-1;rn if(num > a[m])firstpos = a[m]+1;rn m = (firstpos + lastpos) / 2;rn rn return -1;rn
帮我看看哪错了?logcat中提示这个出错了
private void record() rn try rn if (recorder == null) rn recorder = new MediaRecorder(); rn //设置输入为麦克风 rn recorder.setAudioSource(MediaRecorder.AudioSource.MIC); rn //设置输出的格式为3gp文件 rn recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); rn //音频的编码采用AMR rn recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB); rn //临时的文件存储路径 rn path = "/sdcard/" + System.currentTimeMillis() + ".3ga"; rn recorder.setOutputFile(path); rn recorder.prepare(); rn recorder.start(); rn state = RECORDING; rn handler.sendEmptyMessage(UPDATE); rn catch (IllegalStateException e) rn e.printStackTrace(); rn catch (IOException e) rn e.printStackTrace(); rn rn
javascript 大神帮我看一下哪里出错了
rnrnrn rn 无标题文档rn rnrnrnrn rn 你喜欢喝哪一种咖啡呀rn 拿铁 rn蓝山咖啡 rn卡布奇洛 rn爱尔兰咖啡 rnrnrnrnrn
求大神!!在c#把excel导入datatable时出错了!!
c#读取excel的表“移交资产——安装的机械设备一览表”放进datatable中出的错。rn代码是rn string strExcel7 = "select * from [移交资产——安装的机械设备一览表$]";rn OleDbDataAdapter sheet7 = new OleDbDataAdapter(strExcel7, strConn);rn sheet7.Fill(ds, "移交资产——安装的机械设备一览表");rn dataGridViewX7.DataSource = ds.Tables["移交资产——安装的机械设备一览表"];rnrnrn出错时rn[img=https://img-bbs.csdn.net/upload/201405/20/1400586889_286464.jpg][/img]rnrn求大神解释下,在线等。rn邮箱:285013374@qq.com
大神帮忙看看哪里出错了
<%@ page language="java" import="java.sql.*" pageEncoding="utf-8"%>rnrnrnrnrn rn rn rn My JSP 'delete2.jsp' starting pagern rn rnrn rn rn rn <% String driverName="com.mysql.jdbc.Driver";rn String userName="root";rn String userPwd="";rn String dbName="students";rn String url1="jdbc:mysql://localhost:3306/"+dbName;rn String url2="?user="+userName+"&password="+userPwd;rn String url3="&useUnicode=true&characterEncoding=UTF-8";rn String url=url1+url2+url3;rn Class.forName(driverName);rn Connection conn=DriverManager.getConnection(url);rn request.setCharacterEncoding("utf-8");rn String name=request.getParameter("name");rn String sex=request.getParameter("sex");rn String ww1=request.getParameter("w1");rn String ww2=request.getParameter("w2");rn String s="1=1";rn if(!name.equals(""))s=s+"and name="+name+"";rn if(sex!=null)s=s+"and sex="+sex+"";rn float w1,w2;rn if(!ww1.equals(""))w1=Float.parseFloat(ww1);s=s+"and weight>="+w1;rn if(!ww2.equals(""))w2=Float.parseFloat(ww2);s=s+"and weight>="+w2;rn String sql="dalete from stu_info where"+s;rn PreparedStatement stmt=conn.prepareStatement(sql);rn int n=stmt.executeUpdate();rn if(n==1)%>数据删除成功! <%rn else%>数据删除失败 <%rn if(stmt!=null)stmt.close();rn if(conn!=null)conn.close(); rn %> rn rnrn
求!帮我看看什么地方错了
package Test;rnrnimport java.util.Random;rnimport java.io.*;rnimport java.util.Date;rnimport java.text.SimpleDateFormat;rnimport java.util.Calendar;rnrnrnpublic class Baidu rn /**rn * 生成随机数组rn * @param n intrn * @return int[]rn */rn public int[] creatarray(int n) rnrn Random random = new Random();rn int array[] = new int[n];rn for (int i = 0; i < array.length; i++) rn array[i] = random.nextInt();rn rn return array;rn rnrn /**rn * 排序函数rn * @param data int[]rn * @param n 参数长度rn * @param cNo 比较的值 是0rn */rn public int[] merge(int[] data, int n, int cNo) rn int length1 = 0;rn int length2 = 0;rn int length0 = 0;rn int array1[] = new int[n]; //正数rn int array2[] = new int[n]; //负数rn int array0[] = new int[n]; //零rn int redata[] = new int[n]; //返回数组rn for (int i = 0; i < n; i++) rn if (data[i] > 0) rn array1[length1] = data[i];rn length1++;rn else if (data[i] == 0) rn array0[length0] = data[i];rn length0++;rn else rn array2[length2] = data[i];rn length2++;rn rn rn for (int i = 0; i < length1; i++) rn redata[i] = array1[i];rn rn for (int i = 0; i < length0; i++) rn redata[length1 + i] = array0[i];rn rn for (int i = 0; i < length2; i++) rn redata[length1 + length0 + i] = array2[i];rn rn return redata;rn rnrn /**rn * 输出函数rn * @param time int[]rn * @param before int[]rn * @param end int[]rn * @param n intrn */rn public void out(long[] time, int[] before, int[] end, int n) rn for (int v = 0; v < n; v++) rn System.out.println("第" + v + "组耗时:" + time[v] + " 原来是:" + before[v] +rn " 排序后为:" + end[v]);rn rn rnrn public static void main(String args[]) rn Baidu tt = new Baidu();rn int[] array = new int[20];rn int[] arrayEnd = new int[20];rn array = tt.creatarray(20);rn int forNum = 3; //循环次数rn long[] timeall = new long[forNum];rn for (int i = 0; i < forNum; i++) rn Calendar cCalendar = Calendar.getInstance();rn long currTimebegin = cCalendar.getTimeInMillis();rn arrayEnd = tt.merge(array, 20, 0);rn cCalendar = Calendar.getInstance();rn long currTimeend = cCalendar.getTimeInMillis();rn long time = currTimeend - currTimebegin;rn timeall[i] = time;rn rn tt.out(timeall, array, arrayEnd, forNum);rn rnrn是Test 和Baidu那出问题了吗,怎么改
求大神帮我看看我这个程序哪出错了
#includernusing namespace std;rnclass Studentrn public:rn Student();rn Student(long,int);rn void display();rn friend void max(Student *p);rn private:rn long code;rn int score;rn;rnrnStudent::Student()rnStudent::Student(long co,int s)rnrn co=code;rn s=score;rnrnrnvoid Student::display()rnrn cout<score>max)rn max=(p+i)->score;rn cout<<"最好成绩:"<display();rnrnint main()rnrn int i;rn Student *p;rn Student Stu[5]=rn Student(1001,90),rn Student(1002,80),rn Student(1003,95),rn Student(1004,85),rn Student(1005,70),rn ;rn cout<<"输出:"<
求大神帮我看下哪里出错了,发不出去邮件
System.Net.Mail.MailMessage msg = new System.Net.Mail.MailMessage();rn msg.To.Add(EmployManage.GetUserUserNoByName(txtApp.Text.Trim()).Rows[0]["Email"].ToString());rnrn msg.From = new MailAddress(CurrentUser.Email, toDoList.EmpName, System.Text.Encoding.UTF8);rn /* 上面3个参数分别是发件人地址,发件人姓名,编码*/rn msg.Subject = "申请请假";//邮件标题 rn msg.SubjectEncoding = System.Text.Encoding.UTF8;//邮件标题编码 rn msg.Body =toDoList.ToString();//邮件内容 rn msg.BodyEncoding = System.Text.Encoding.UTF8;//邮件内容编码 rn msg.IsBodyHtml = false;//是否是HTML邮件 rn msg.Priority = MailPriority.High;//邮件优先级 rn SmtpClient client = new SmtpClient();rn client.Credentials = new System.Net.NetworkCredential(CurrentUser.Email,txtpassword.Text.ToString().Trim());rnrn client.Port = 25;//SMTP服务器地址 587/465rn client.Host = "smtp.exmail.qq.com";//smtp服务器地址rn client.EnableSsl = true;//经过ssl加密 rn client.DeliveryMethod = SmtpDeliveryMethod.Network;rn object userState = msg;rn tryrn rn client.Send(msg);rn Console.Write("发送成功");rn rn catch (System.Net.Mail.SmtpException ex)rn rn Console.Write("发送失败");rn
出错了,怎么办?
以前是好用的,后来我重装了机器,重新设的ISS,网页在d: rnrn不知道为什么,现在就这样了rnrn“/”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn配置错误 rn说明: 在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。 rnrn分析器错误信息: 在应用程序级别以外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。导致该错误的原因可能是在 IIS 中没有将虚拟目录作为应用程序进行配置。rnrn源错误: rnrnrn行 44: 它为成员站点提供单独登录和核心配置文件服务。rn行 45: -->rn行 46: rn行 47: rn行 48:
clone出错了。怎么办?
rnpublic class Online rn public Online() rn rnrn private int companyID; //企业IDrn rn private static Online atomOnline=new Online();rnrn public void setCompanyID(int companyID) rn this.companyID = companyID;rn rnrn public static void createNewOnline(String endPoint) rn Online o=getNewOnline();rn onlines.put(endPoint,o);rn rn rn private static Online getNewOnline()rn rn try rn return (Online) atomOnline.clone();/*****执行到此句时就执行第100行。应该是这里错了。rn rn catch (CloneNotSupportedException ex) rn return null;/**************这里是第100行。rn rn rnrnrnrn上面的类,我进行了如下调用: Online.createNewOnline("abc");rn
Inetinfo.exe 出错了~~`怎么办?!!!
web 服务器有问题了~~~~一浏览主页的时候就出现Inetinfo.exe应用程序出错的对话框,里面显示什么内存出错之类的信息。rnrnrn
内存出错了,怎么办????
内存出错了,怎么办????,谢谢。rn我在写汉诺塔的程序,希望有人指点,谢谢
出错了怎么办?
我的framework出错了,重新装,老说已经装过,不能再装,有什们办法能重新装吗?
请教:出错了怎么办?
在用编译以下C++程序时rn#include rn#include rntypedef struct rnrn float *opd;rn int opdSize;rn int top;rnOPERAND;rnrnclass operand1rnrnprivate:rn OPERAND oprand;rnpublic:rn operand1();rn void InistOprand(int opdSize);rn void Push(float& ch);rn float Pop(void);rn int IsEmpty();rn friend void display(operand1 &opd);rn;rn出现两个错误:rn:\vc work folder\pression\operand.h(9) : error C2371: 'OPERAND' : redefinition; different basic typesrn j:\vc work folder\pression\operand.h(9) : see declaration of 'OPERAND'rnj:\vc work folder\pression\operand.h(12) : error C2011: 'operand1' : 'class' type redefinitionrnoperand.cpprn想了很久也不知道哪里出错。rn请高手指点。rn
求大神帮帮看看这段代码那里出错了。谢谢
刚刚学习,什么都不懂,今天第一次练手,却出现错误,我看了半小时楞是没看出来哪里出错了,求大家帮帮看看。谢谢了。![图片](https://img-ask.csdn.net/upload/201511/26/1448514517_911774.jpg)
求c语言大神帮忙看看哪里出错了
#includen#includen#includennstruct coursenn int num; //选题编号n char name[20];//课题名称n char kind[10];//课程性质n int taltime,ttime,etime,mark,term;//课程时间,学分,开课信息n;nstruct studentnn int snum; //学生学号n int cnum; //所选课题编号n char cname[20];//所选课题名称n;n//函数原型nvoid fl();nvoid menu();nvoid browser();nvoid search();nvoid xuan_ti();nvoid xuanti_information();nvoid input();n nvoid fl()nn printf("\n 选题编号课题名称课程性质授课学时实验或上机学时总学时学分开课学期:\n");nnvoid menu()nn printf("\n\n\n");n printf(" 欢迎使用毕业设计选题管理系统! \n");n printf(" 1-浏览选题信息 2-查询选题信息\n");n printf(" 3-进入选题操作 4-选题情况统计\n");n printf(" 5-录入选题信息 0-退出选题系统\n");n printf(" 请选择输入选项编号(请选择5进行课程信息录入):");nn nvoid main()nn int n;n menu();n scanf("%d",&n);n //防止错误,提示重新输入n for(;n>5||n<0;)n n printf("\n 输入错误,请重新输入! ");n scanf("%d",&n);n n while(n>0&&n<6)n n switch(n)n ncase 1:browser();break;//浏览选题信息ncase 2:search();break; //查询选题信息ncase 3:xuan_ti();break;//进入选题信息ncase 4:xuanti_information();break;//选题情况统计ncase 5:input();break;//录入选题信息n n scanf("%d",&n);n for(;n>5||n<0;)n n printf("\n 输入错误,请重新输入! ");n scanf("%d",&n);n n system("cls");//清除屏幕n n if(n==0)n exit(0);//退出系统nn//浏览选题信息nvoid browser()nn FILE*fp;//定义指向文件的指针n struct course c;//定义课程结构体变量cn if((fp=fopen("course.txt","r"))==NULL)n n printf("\nCannot open course!\n");n n fl();n for(;!feof(fp);)//直到文件结束n n fscanf(fp,"%d%s%s%d%d%d%d%d\n",&c.num,&c.name,&c.kind,&c.ttime,&c.etime,&c.taltime,&c.mark,&c.term);//格式化输出n n fclose(fp);//关闭文件n menu();nn//查询选题信息nvoid search()nn FILE*fp;//定义文件指针变量n struct course c;//定义学生结构体变量cn int score;n char kind[10];n char name[20];n int b;n //输入需要的查询选题信息的方式n printf("\n 1.按学分查询\n");n printf("\n 2.按课程性质查询\n");n printf("\n 3.按课程名称查询\n");n printf("\n 请选择查询方式,输入选项数字:");n scanf("%d",&b);n for(;b<1||b>3;)n n printf("\n 输入错误,请重新输入! ");n scanf("%d",&b);n n //按学分查询n if(b==1)n n printf("\n 请输入您要查询的学分:");n scanf("%d",&score);n if((fp=fopen("course.txt","r"))==NULL)n printf("\nCannot open coruse!\n");n fl();n for(;!feof(fp);)n n fscanf(fp,"%d%s%s%d%d%d%d%d\n",&c.num,&c.name,&c.kind,&c.ttime,&c.etime,&c.taltime,&c.mark,&c.term);n if(c.mark==score)n printf("%5d%12s%9s%9d%12d%13d%8d%9d\n",c.num,c.name,c.kind,c.ttime,c.etime,c.taltime,c.mark,c.term);n n n //按课程性质查询n else if(b==2)n n printf("\n 请输入您要查询的课程性质:");n scanf("%s",&kind);n if((fp=fopen("course.txt","r"))==NULL)n printf("\nCannot open coruse!\n");n fl();n for(;!feof(fp);)n n fscanf(fp,"%d%s%s%d%d%d%d%d\n",&c.num,&c.name,&c.kind,&c.ttime,&c.etime,&c.taltime,&c.mark,&c.term);n if(strcmp(c.kind,kind)==0)n printf("%5d%12s%9s%9d%12d%13d%8d%9d\n",c.num,c.name,c.kind,c.ttime,c.etime,c.taltime,c.mark,c.term);n n n //按选题名称查询n else if(b==3)n n printf("\n 请输入您要查询的选题名称:");n scanf("%s",&name);n if((fp=fopen("course.txt","r"))==NULL)n printf("\nCannot open coruse!\n");n fl();n for(;!feof(fp);)n n fscanf(fp,"%d%s%s%d%d%d%d%d\n",&c.num,&c.name,&c.kind,&c.ttime,&c.etime,&c.taltime,&c.mark,&c.term);n if(strcmp(c.name,name)==0)n printf("%5d%12s%9s%9d%12d%13d%8d%9d\n",c.num,c.name,c.kind,c.ttime,c.etime,c.taltime,c.mark,c.term);n n n elsen printf("输入错误!");n exit(1);n n fclose(fp);n menu();//调用menu函数nn//进入选题操作nvoid xuan_ti()nn struct student s;//定义学生结构体变量sn struct course c;n FILE*fp;n printf("\n请输入您的学号及您要选择的课题编号(用空格分开):");n scanf("%d%d,&s.snum,&s.cnum");n if((fp=fopen("course.txt","r"))==NULL)//打开选题记录文件n n printf("\nCannot open course!\n");n n for(;feof(fp);)n n fscanf(fp,"%d%s%s%d%d%d%d%d\n",&c.num,&c.name,&c.kind,&c.ttime,&c.etime,&c.taltime,&c.mark,&c.term);n if(s.cnum==c.num)n break;n n fclose(fp);//关闭选题记录文件n if((fp=fopen("student.txt","a+"))==NULL)n n printf("\nCannot open student!\n");n //将学生选题信息输入文件n fprintf(fp,"%d%d%s\n",s.snum,s.cnum,c.name);n fclose(fp);n printf("\n 恭喜您选题成功!\n");n menu();nn//选题情况统计nvoid xuanti_infomation()nn int total=0;//人数统计变量n FILE*fp;n struct student s;n if((fp=fopen("student.txt","r"))==NULL)n n printf("\nCannot open student!\n");n n printf("\n 学号选题编号名称\n");n for(;!feof(fp);)n n fscanf(fp,"%d%d%s\n",&s.snum,&s.cnum,&s.cname);n total++;n printf("%22d%17d%18s\n",s.snum,s.cnum,s.cname);n n printf("\n 选题学生总人数:%d人",total);n fclose(fp);n menu();nn//录入课题信息nvoid input()nn FILE*fp;n struct course c;n int count;n int i;n if((fp=fopen("course.txt","a+"))==NULL)//建立文件设计题目的信息n n printf("cannot open file\n");n n printf("\n (录入选题信息)请输入课题数量:");n scanf("%d",&count);n printf("\n (各项目间用空格分开)");n fl();n for(i=0;i
谁能帮我看看那里出错了?谢谢!!
string s = "19|25|24|20|";rnstring[] sArray = s.Split(Convert.ToChar("|"));rnstring[] ziduan=new string[sArray.Length];rnfor(int i=0;i
参数传递出错了,谁帮我看看
谁指点一下,下面个代码为什么不行呢,提示类型不匹配,这段代码是在窗体加载的时候用来填充数据的rnrn[code=VB]rnPrivate Sub Form_Load()rnSelectDB("PERSON_NAME", "TB_DIM_PERSON", Combo7)rnEnd Subrnrn'填充数据rnPrivate Function SelectDB(ByVal cName As String, ByVal tName As String, ByVal cCom As ComboBox)rnDim Rs As cRecordsetrn Set Rs = cnn.OpenRecordset("SELECT [" & cName & "] FROM [" & tName & "]")rn Do While Not Rs.EOFrn cCom.AddItem (Trim(Rs(0)))rn Rs.MoveNextrn Looprn Set Rs = NothingrnEnd Functionrnrn[/code]
请帮我看看那里出错了!!谢谢!!
<%if%>rn <%(%>rn <%#GetLocation((int)DataBinder.Eval(Container.DataItem, "SortId"),(string)DataBinder.Eval(Container.DataItem, "SortName"))%>rn <%==0%>rn <%)%>rn <%%>rn rn rn rn rn rn rn <%#DataBinder.Eval(Container.DataItem,"SortName")%>rn rn rn rn <%%>rn <%else%>rn rn rn rn aaaaaarn rn rn rnrn提示错误:rn编译器错误信息: CS1026: 应输入 )rnrn源错误:rnrn rnrn行 250: #line defaultrn行 251: #line hiddenrn行 252: parameterContainer.Controls[0].RenderControl(__output);rn行 253: rn行 254: #line 20 "E:\New\WorldB2B\DisplayClass.aspx"rn rnrn源文件: c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files\worldb2b\1de9e44f\2aa43825\bwx_vk_5.0.cs 行: 252 rnrn另外请大家有空看看:http://expert.csdn.net/Expert/topic/2426/2426907.xml?temp=.4322016
相关热词 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天 c#func链接匿名方法 c#怎么创建文件夹 c#从键盘接收空格 c#da/ad c#部门请假管理系统 c#服务器socket c# 默认的访问修饰符