大佬们,求帮忙 [问题点数:100分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs1
本版专家分:23
Bbs1
本版专家分:85
大佬们帮助
!/bin/bashrn#/usr/sbin/httpd -DFOREGROUND -domain=xiejl.com -httpAddr=:80 &> /dev/null &rnparam=" &> /dev/null &"rnmemsize=`ps -aux | grep "/usr/sbin/httpd -DFOREGROUND" | grep -v grep | awk 'printf $6 '`rnecho $memsizernif [[ $memsize -gt 3080 ]]; thenrn echo "restart begin"rn httpd -DFOREGROUND_restart=`ps -aux | grep "/usr/sbin/httpd -DFOREGROUND" | grep -v grep | awk 'for(i=11;irnfirnrn[root@localhost sbin]# bash ehaha.shrn: 没有那个文件或目录bashrn495231083108310831083108rnehaha.sh:行18: 语法错误: 未预期的文件结尾rnrn我用bash执行这个文件的时候就是报这个错 ,一共就17行,然后第18行报错。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/34.gif][/img]rn<em>大佬</em>们<em>帮忙</em>看一下吧rn
大佬帮忙
匿名上位机写了校验码程序,但为什么每次写入飞控时显示校验码超时
大佬帮忙
<em>求</em><em>帮忙</em> ![在这里插入图片描述](https://img-blog.csdnimg.cn/2018112615060233.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MzgwNDcyMQ==,size_16,col...
大佬帮忙看一下
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException: Error updating database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionExcep...
大佬帮忙!!!
void modify(char* stuid,char*name,int num)rn rn rn if( !checkAdd(stuid))rn printf("请选择修改项目:1—学号;2—姓名;3—成绩");rn scanf("%d",&p);rn switch(p)rn rn case 2:rn printf("请输入新名字");rn scanf("%s",Newname);rn strcpy(name,Newname);rn printf("成功");rn break;rn rn rnrnrn elseprintf("无信息");rnrnrnrnrnrn这是程序的一部分 rn编译没问题rnstrcpy(name,Newname);rn但是这个改变名字的话不对 不能修改名字 <em>求</em>指教rn
大佬帮忙~
需<em>求</em>如下:rn表1 rnname ..... rn张三 rn李四rn...rnrn表2rnname 课程rn张三 语文rn张三 数学rn李四 语文rn李四 数学rn李四 英语rnrn想要的效果rn张三 语文,数学rn李四 语文,数学,英语rn...rnrn<em>求</em>各位<em>大佬</em><em>帮忙</em>~ 感激不尽!
大佬帮忙
[img=https://img-bbs.csdn.net/upload/201806/07/1528383371_744806.png][/img]rn小白<em>求</em>助这几个BUG怎么修复,顺便附上源代码。rnstring grammar = "FA[*+X][-/&X][/%X]B";//文法 rnvoid Grammar::Iteration() rn string temprule = grammar;rn for (int i = 1; i < curlen)rn rn if (temprule[j] == 'X')//迭代,替换成文法模型rn rn rule += grammar;rn j++;rn rn else //保留转角rn rn rule += temprule[j];rn j++;rn rn rn temprule = rule;rn rule.clear();rn rn rule = temprule;//迭代好之后的文法规则rnrnvector trunks; // 所有分支rnvector leaves;//所有叶子结点rnvoid LSystem::generateFractal() // 利用加载过的文法,创建分形树rnrn trunks.clear();rn leaves.clear();rn curState.pos = Node(0, 0, 0);rn curState.dir = Node(0, 1, 0);rnrn State stack[3000]; // 状态栈rn for (int i = 0; i <3000; i++)rn rn stack[i].pos.x = 0.0;rn stack[i].pos.y = 0.0;rn stack[i].pos.z = 0.0;rn stack[i].dir.x = 0.0;rn stack[i].dir.y = 0.0;rn stack[i].dir.z = 0.0;rn rn size_t i = 0;rn while (i
助!大佬帮忙
[img=https://img-bbs.csdn.net/upload/201905/27/1558886821_837807.png][/img]rn请问这个错误要怎么修改?
大佬帮忙看看
错误信息:rnClientAbortException: java.net.SocketException: Software caused connection abort: socket write errorrn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)rn at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:434)rn at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:349)rn at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)rn at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)rn at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)rn at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)rn at sun.nio.cs.StreamEncoder.implWrite(StreamEncoder.java:282)rn at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:125)rn at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:135)rn at java.io.OutputStreamWriter.write(OutputStreamWriter.java:220)rn at java.io.Writer.write(Writer.java:157)rn at org.springframework.util.StreamUtils.copy(StreamUtils.java:118)rn at org.springframework.http.converter.StringHttpMessageConverter.writeInternal(StringHttpMessageConverter.java:106)rn at org.springframework.http.converter.StringHttpMessageConverter.writeInternal(StringHttpMessageConverter.java:41)rn at org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227)rn at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:247)rn at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:174)rn at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:81)rn at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:113)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)rn at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)rn at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.net.SocketException: Software caused connection abort: socket write errorrn at java.net.SocketOutputStream.socketWrite0(Native Method)rn at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:111)rn at java.net.SocketOutputStream.write(SocketOutputStream.java:155)rn at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:764)rn at org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:118)rn at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:570)rn at org.apache.coyote.Response.doWrite(Response.java:560)rn at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)rn ... 45 morern十一月 16, 2017 4:29:10 下午 org.apache.catalina.core.StandardWrapperValve invokern严重: Servlet.service() for servlet MVC DispatcherServlet threw exceptionrnjava.lang.NullPointerExceptionrn at com.zhwy.exception.MyExceptionHandler.resolveException(MyExceptionHandler.java:54)rn at org.springframework.web.servlet.DispatcherServlet.processHandlerException(DispatcherServlet.java:1222)rn at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1034)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:984)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)rn at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:745)rn
前端大佬们推荐书籍
本是做后端的,跳槽去新的公司要<em>求</em>做一段时间前端。rnrn本人的前端经历是,一年前手写过几个站的前端,包括css,div,js,但现在都忘光了,基础知识还是记得的,但还有很多不足,比如具体设计一个基于1-2-1的页面,里面涉及很多div嵌套技巧,希望大神们给小弟推荐一些div进阶的书,谢谢!
大佬帮助啊
pta上做的老师布置的一道题,总是有俩测试点不过,还不知道是怎么不对,,我试过我能想到的所有情况,都是对的。。。。rn题目:就是一个大整数<em>求</em>和的题,定义一个大整数类,重载+运算符什么的rn[img=https://img-bbs.csdn.net/upload/201804/29/1525001688_893572.png][/img]rnrn下面是我的完整代码 真心不知道那个地方不对。。ππrn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/1.gif][/img]rn=============================================================rn#include rn#include rn#include rn#includern#includernusing namespace std;rnrnrnclass BigIntrn char num[200];rn friend istream& operator>>(istream &input,const BigInt &bi);rn friend ostream& operator=0;i--,j++)rn temp.num[j]=a[i]+'0';rn temp.num[l-1]='\0';rn rn return temp;rn rn friend ostream& operator<<<>(istream& in,BigInt& N)rn rn in>>N.num;rn return in;rn rn; rnint main()rn while(1)rn BigInt a, b, c;rn cin>>a>>b;rn c=a+b;rn cout<
大佬们,一串代码
我现在有 此处省略5000字符标签,高度不固定。rn<em>求</em>代码rn当 高度低于100px的时候,不做修改,当高度超过100px的时候,给pre赋值style="max-height:100px;overflow:hidden;",并在pre的底部显示“显示全部内容”,点击文字钮就把style="max-height:100px;overflow:hidden;"移除,这样就能显示 全部的内容。rn总结来说,就是我pre内容如果太多,超过了100px高度,就把per设置最大高度max-height:100px;并禁止滚动条,此时点击“阅读全部”文字,则移除style,并隐藏“阅读全部”这几个字rnrn有没有哪个老铁有现成的案例或者代码,先行谢过。
大佬个正则
字符串是类似“班级数-(46人至50人班级数+51人至55人班级数)”,其他的我在代码里加了点注释rn[code=csharp]rnvar formulas = Regex.Split(model.Formula, ValidationRule.FormulaRegex); //取出“班级数”,“46人至50人班级数”,“51人至55人班级数”组成的数组rnstring temp = model.Formula;rnforeach (var name in formulas)rnrn if (string.IsNullOrWhiteSpace(name))rn rn continue;rn rn ReportItem ri = model.ReportItems.SingleOrDefault(s => s.Name == name);rn if (ri == null)rn rn continue;rn rn temp = Regex.Replace(temp, $"\bname\b", ri.ShortName); //用另一个字符串替换当前的变量rn[/code]rnrn\b只能匹配单词的边界,中文边界匹配不了,<em>求</em>个正则匹配这种中文词语变量。。rn
帮忙C++程序,大佬答案?
4. 需要<em>求</em>解3个长方体,请编程实现一个基于对象的程序。数据成员有length(长)、width(宽)、height(高)。要<em>求</em>用成员函数实现以下功能:na) 由键盘输入3个长方体的长、宽、高nb) 计算3个长方体的体积。nc) 输出3个长方体的体积。n请编写程序,上机运行。n
大佬
子类对象能直接向其父类赋值,父类对象不能向其子类赋值。如何理解这句话呀[face]monkey:2.gif[/face]
新手大佬帮忙看看
刚学C语言,实在没法理解。昨天自己憋了一下午,也没看出什么地方有问题。rn[code=c]#pragma warning(disable:4996)rn#includernint main()rnrn char str1[30], str2[30];rn printf("please enter string:");rn gets(str1);rn printf("which character that begin to copy? ");rn int m;rn scanf("%d", &m);rn void str_c(char x[], char y[], int n);rn str_c(str1, str2, m);rn printf("%s\n", str2);rn return 0;rnrnvoid str_c(char x[], char y[], int n)rnrn int i;rn for (i = n; i != '\0'; i++)rn rn y[i - n] = x[i];rn y[i - n] = '\0';rnrn[/code]rnrnrn后面写的str_c 函数目的是想把字符串x中第n个字符后面的复制到字符串y中去。真的无法理解为什么这么写会运行出错?rn有没有前辈解释一下哪错了?谢谢
大佬帮忙做个网页
[img=https://img-bbs.csdn.net/upload/201805/18/1526627276_320109.jpg][/img][img=https://img-bbs.csdn.net/upload/201805/18/1526627288_701578.jpg][/img][img=https://img-bbs.csdn.net/upload/201805/18/1526627298_784614.jpg][/img][img=https://img-bbs.csdn.net/upload/201805/18/1526627304_843611.jpg][/img]做成效果图那样的,在线等,挺急的!!!!
大佬帮忙看看
eclipse一直报An internal error occurred during: "Computing Git status for repository hp222".Trailing char < > at index 82: C:\Users\hp222\AppData\Roaming\duowan\yy\mainframe\theme\float\star-V1-V6-apng.png
大佬帮忙分析一下这段代码。
下面这段代码为什么运行结果为3啊,<em>求</em>告知!rn```rnpublic static void main(String[] args)rn rn int a=1, b=2, c=3;rn if (a<0)rn c=10;rn elsern c=20;rn System.out.println(c);rn rn```
运行报错,大佬帮忙看看什么原因java.util.concurrent.ExecutionException
"C:\Program Files\Java\jdk1.8.0_201\bin\java" "-Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\Desktop\travel - 副本" -Dfile.encoding=gb2312 "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\lib\idea_rt.jar=51249:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\bin" -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.6 tomcat7:runrn[INFO] Scanning for projects...rn[WARNING] rn[WARNING] Some problems were encountered while building the effective model for cn.itcast:travel:war:1.0-SNAPSHOTrn[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 131, column 21rn[WARNING] rn[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.rn[WARNING] rn[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.rn[WARNING] rn[INFO] rn[INFO] ------------------------------------------------------------------------rn[INFO] Building travel 1.0-SNAPSHOTrn[INFO] ------------------------------------------------------------------------rn[INFO] rn[INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) > process-classes @ travel >>>rn[INFO] rn[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ travel ---rn[WARNING] Using platform encoding (gb2312 actually) to copy filtered resources, i.e. build is platform dependent!rn[INFO] Copying 3 resourcesrn[INFO] rn[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ travel ---rn[INFO] Changes detected - recompiling the module!rn[INFO] Compiling 40 source files to C:\Users\Administrator\Desktop\travel - 副本\target\classesrn[WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 某些输入文件使用了未经检查或不安全的操作。rn[WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。rn[INFO] rn[INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) < process-classes @ travel << #write/* in servlet mappingrn at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3223)rn at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3198)rn at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1366)rn at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1353)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 6 morernrn七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternalrn严重: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]rn at java.util.concurrent.FutureTask.report(FutureTask.java:122)rn at java.util.concurrent.FutureTask.get(FutureTask.java:192)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.Tomcat.start(Tomcat.java:335)rn at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1091)rn at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:512)rn at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)rn at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)rn at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)rn at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)rn at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)rn at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)rn at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)rn at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)rn at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)rn at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)rn at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)rn at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)rn at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)rn at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)rn at org.codehaus.classworlds.Launcher.main(Launcher.java:47)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)rn at java.lang.Thread.run(Thread.java:748)rnCaused by: org.apache.catalina.LifecycleException: A child container failed during startrn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 6 morernrn[INFO] ------------------------------------------------------------------------rn[INFO] BUILD FAILURErn[INFO] ------------------------------------------------------------------------rn[INFO] Total time: 3.989 srn[INFO] Finished at: 2019-07-21T17:00:21+08:00rn[INFO] Final Memory: 32M/279Mrn[INFO] ------------------------------------------------------------------------rn[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:run (default-cli) on project travel: Could not start Tomcat: Failed to start component [StandardServer[-1]]: Failed to start component [StandardService[Tomcat]]: Failed to start component [StandardEngine[Tomcat]]: A child container failed during start -> [Help 1]rn[ERROR] rn[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.rn[ERROR] Re-run Maven using the -X switch to enable full debug logging.rn[ERROR] rn[ERROR] For more information about the errors and possible solutions, please read the following articles:rn[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptionrnrnProcess finished with exit code 1
mysql 不会查询,大佬帮忙
1、我先查询了两列数据(还有更多)。select id,date from tablern=========================rn id datern331 2018-10-15rn657 2018-11-27rn936 2018-10-19rn1121 2018-10-24rn1193 2018-10-15rn1318 2018-10-17rn1548 2018-10-15rn1569 2018-10-19rn1583 2018-10-23rn1639 2018-10-27rn1694 2018-10-17rn1701 2018-10-15rn1816 2018-10-29rn=========================rn2、查询的两列数据,在循环查询另一个SQL语句内容rn定义两个变量 @id=上面的id,@date = 上面查出的 daternrn查询说明:1中的 id=331 和 date=2018-10-15 ,要在2中查询一次,然后继续查询 id=657 和 date=2018-11-27rnrn<em>大佬</em>们如果还需要
我用PB11.5+SQL2008R2,请大佬帮忙
我用PB11.5+SQL2008R2做了一个进销存管理软件,最近发现一个问题,程序在使用时经常自动关闭,没有任何错误提示,也没有任何对话框出现,直接就关掉了,而且没有规律性,有时有,有时没有,请问这是怎么回事啊?rn如果有错误提示也好办了,最起码知道错在哪儿了,现在我是无从下手啊rn我想知道的是问题出在哪儿了?怎么解决?或者有什么方法能知道问题出在哪儿也行的!
数据库题,大佬们支援,谢谢
1,假定一个请<em>求</em>页式存储管理系统中,某作业J所涉及的页面依次为:2,5,1,4,3,5,1,3,4,3,2,1,5,并已知主存中有3个可供作业J使用的空闲物理快,试说明采用FIFO和LRU算法进行页面置换时,命中率各是多少?
大佬们解决一下,谢谢
eslipse在创建工程时,一直是JRE System Library在SRC上面,请问如何解决让jre在src下面谢谢,十分感谢           
大佬们支个招!!!
用相同的数据在php支付接口demo中测试签名通过,而根据demo改成.net版的接口测试签名总是报错,后来发现PHP中自带MD5加密函数,而asp.net中是在网上找的MD5加密方法,除了MD5加密方法不同,其他数据都是一样的,请问怎么解决这个问题?
大佬们,一个编程怎么打?
编写函数del(char str[])将字符串str中的除头部前导*和后导*以外的*。编写主函数,在主函数中定义字符数组s[80],从键盘输入一字符串给s,通过调用函数del,将字符数组s中的中部的*删除,并输出删除后的字符串, 并输出结果到屏幕上和文件bca5_4.out中。将源程序命名为bca5_4.c。rn测试数据与运行结果】rn第一组 输入:*****a1**2*34EF***G*H******* 输出:**** a1234EFGH*******rn【程序中使用的变量说明】
大佬们web后端框架的学习资料
现在在自习后端框架,急需Struts2,Spring和SpringMVC这些框架资料,谢谢<em>大佬</em>们啦
大佬们!个思路,万分感谢!
萌新一个,第一天上班,领导要<em>求</em>用python实现账号自动登录,有1000多个账号,需要利用cookies逐个登录这些账号进行操作(cookies需要自动提取出来再自动进行登录),可行吗?如果可行是否可以提高cookies的时效性,有<em>大佬</em>能提供个思路吗?
大佬个正则!
任意内容(长度任意)rn一般的正则我倒是会写,可是这样的一点都不晓得该如何,<em>求</em><em>大佬</em>们<em>帮忙</em>写个!谢谢了
大佬们用js写个正则
[img=https://img-bbs.csdn.net/upload/201809/10/1536569067_110158.png][/img]rnrn2.不允许出现3位或3位以上同样或连续数字(递增或递减);rnrn3.不允许出现3位或3位以上同样或连续字母(递增或递减);rnrn4.不允许出现3位或3位以上同一个特殊符号;
大神们帮忙
有个控件注册不上,在网上查找了很多办法,也没有成功,希望有大神<em>帮忙</em>解决这个问题。[img=https://img-bbs.csdn.net/upload/201401/19/1390097598_331882.png][/img]
大神们帮忙???
根据查询条件查询,并将查询结果在DBGridEh中显示,当显示结果为空时,DBGridEh不可操作,否则DBGridEh可操作,当显示结果不为空时,Excel表按钮可操作
大侠们帮忙
是这样的...有两个listCtrl控件..(插入的行比较多,系统自动生成滚动条)两个listCtrl控件中的行数是一样的,有没有办法实现 拖动第一个listCtrl 第二个也自动跟着拖动到相同的位置....
大大们帮忙
给了一任务,现有很多ppt和flash课件,想整合在一个网站上面,flash是加过壳的,但是我没做过这方面的东西,还请大家给点意见以及好的资料,先谢谢了
帮忙 大神们
学生党 有校友录成果 但是是SqlServer2000数据库的 但是要MySQL数据库的 苦逼我不会改 有大神<em>帮忙</em>改改么?很急 <em>求</em><em>帮忙</em> 对于你们大神应该很简单才对 大神们帮<em>帮忙</em>
高手们帮忙
rnpoi 实现中单元格的居中对齐且水平对齐,我写了下面的两句,怎么调用样式后不起作用? rnHSSFCellStyle style = wb.createCellStyle(); rnstyle.setAlignment(HSSFCellStyle.VERTICAL_CENTER); rnstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);
大佬们,望不吝赐教。
private void Form1_Load(object sender, EventArgs e)rn rn this.Text="动态控件使用示例";rn int num = 1;rn for ( int i=1;i;rn rn可以打开运行界面,但是点击生成的button时就会显示下面的东西。rn 发生了 System.IndexOutOfRangeExceptionrn HResult=0x80131508rn Message=索引超出了数组界限。rn Source=WindowsFormsApplication1rn
大佬们,Java代码
问题如下:rnrn有一个List< String>类型中有10万个字符串,请写一个Java程序将这些字符串尽量高效地合并成一个字符串。rnrn<em>求</em>问谁可以解决这个问题。
大佬们解析 一下
今天做了个练习:角色关联用户,用角色ID查询该角色是否关联有用户,如果关联该角色不可删除,否则可以删除。 错误如下: 严重: Servlet.service() for servlet [springmvc] in context with path [/MSSM] threw exception [Request processing failed; nested exception is ...
大佬们请教
最近写一个古诗匹配游戏,大致内容是,同时生成16个picturebox和label,用图片盖住label中显示的古诗,点击图片后图片不可见,若匹配不成功倒计时五秒后会自动可见,若成功,图片与label均不可见,rn [color=#FF0000] 但是,[/color]我在匹配成功一对、两对或几对之后,再点击其他未匹配的图片就可能不会显示label中的内容,但label中的内容确实存在,也能够配对成功,即使是在label内容不可见的情况下。 rn 代码很多行,不知道贴哪一段。
技术前沿的大佬们指点迷津
2年前学了1年Java Web  中间慢慢把java给放下了,想重新捡起来,有什么比较好的前沿技术学习路线啊
大佬们 速来
这是我的jsrn$(function() rn $('#a').on('click', function()rnrn );rn);rnrnrnrnrn这样的情况,怎么样才能让b和c执行同样的这个js呢
救,大佬
MJRTGCode LotCode MatCode2 MatCode MatName BatchCode revisionM revisionN cv1 cv1name cv2 cv2name cv3 cv3name cv4 cv4name cv5 cv5Namern429943 SS00083957 G00041-1800-003 G00041 G00041 0DVFW9 1 0 1800 1800 T 机 1 NULL 0 NULL rn429944 SS00083958 G00041-1800-003-G G00041 G00041 0HWOUK 1 0 1800 1800 T 机 1 NULL 0 NULL G 429943rn429945 SS00083959 G00041-1800-003-M G00041 G00041 0HWOUL 1 0 1800 1800 T 机 1 NULL 0 NULL M 429943rnrnrnrn在同一个表中,有公母(cv5:G,M)关系,如何只显示总的matcode2;cv5:G,M;例如上面的:只显示rnG00041-1800-003 Grn M
大佬们帮帮忙
如何使用遗传算法解决球面均匀分布的问题。
大佬
添加出错,排除配置问题,同一个项目下别的能运行,就这个不行。应该是代码问题!!!!
提问。大佬
oracle视图怎么提高查询速度?除了添加索引,和物化视图,并且不修改查询语句的情况下
IT大佬们简介
IT界<em>大佬</em>们20多人生平简介,国内外均有涉及,感兴趣的朋友不妨拿来看看
给点建议大佬
进了一家公司实训,待了二个月没人带没人教 全自学跟上课自习一样,转实习后也是没人带,项目出来直接当老手用,直接分模块功能写 全靠自己百度 怎么办,还能待吗?
大佬助~~
rn rn rn rn rn rn rn rn rn rnrnrn写了这个东西,现在我想让这个ItemTemplate只显示“XId”==1的内容,可以么?
请教一下大佬
2ˉ2^-23是什么意思,是怎么算出来是这个试子的?[img=https://img-bbs.csdn.net/upload/201904/29/1556516133_761816.jpg][/img]
大佬们的博客
地球物理:http://seisman.info/
救急救急大佬
用C语言编程将十进制转化为28位二进制不足补0,但是十进制数字十分大,比如将6466676转化为28位二进制
大佬们,新手
<em>大佬</em>们,<em>求</em>助,如何用esp8266传输温湿度,单片机用89c52
优化!大佬们帮帮忙
存储过程:rn[code=text]rntblName="(select jlls.*,jllsfb.CLH,jllsfb.CZCLH,jllsfb.CZJE,jllsfb.CZYID,case jym.XSFX when 0 then jfsu.name else dfsu.name end yhmc, case jym.XSFX when 0 then jfsu.user_no else dfsu.user_no end yhbh,case jym.XSFX when 0 then jfdept.name else dfdept.name end bmmc, case jym.XSFX when 0 then jlls.JFZHJE else jlls.DFZHJE end zhje,case jym.XSFX when 0 then jlls.JFKYE else jlls.DFKYE end kye, case jym.XSFX when 0 then jfzh.FHZZH else dfzh.FHZZH end khzh,case jym.XSFX when 0 then jfzhfb.ZHMC else dfzhfb.ZHMC end zhmc,supersu.user_no suno, supersu.name suname, jym.JYMMC,sbxx.SBMC from T_Z_JLLSTMP jlls inner join T_Z_JYM jym on jlls.JYMID = jym.id left join T_Z_JLLSFB jllsfb on jlls.id = jllsfb.CLH left join sys_user supersu on jllsfb.CZYID = supersu.id left join T_Z_ZH jfzh on jlls.JFKHZHID = jfzh.id left join sys_user jfsu on jfzh.YHID = jfsu.id left join sys_dept jfdept on jfsu.dept_id = jfdept.id left join T_Z_ZH dfzh on jlls.DFKHZHID = dfzh.id left join sys_user dfsu on dfzh.YHID = dfsu.id left join sys_dept dfdept on dfsu.dept_id = dfdept.id left join T_Z_ZHFB dfzhfb on dfzh.id=dfzhfb.ZHID left join T_Z_ZHFB jfzhfb on jfzh.id= jfzhfb.ZHID left join T_D_SBXX sbxx on sbxx.id =jlls.SBID) jl"rnrnfieldname="id,ZT,yhbh,yhmc,bmmc,zhmc,JYMMC,RQ_UINT,SJCZRQ_UINT,ZT,XKZT,FSJE,kye,zhje,LJJYXH_SHORT,TJJYXH_SHORT,suname,SBMC"rnrnOrderField=" id desc"rnrnPageSize=20rnrnstrWhere=" 1=1 and jl.org_id=70 "rnrn[/code]rn[code=sql]CREATE PROCEDURE [dbo].[UP_GetRecordByPageNewBB] rn @tblName varchar(2000), --表名rn @fieldName varchar(2000) = '*', --字段名(全部字段为*)rn @OrderField varchar(1000), --排序字段(必须!支持多字段)rn @PageSize int, --每页多少条记录rn @PageIndex int = 1 , --指定当前为第几页rn @strWhere varchar(2000) = Null, --条件语句(不用加where)rn @GroupField varchar(1000) --分组字段(必须!支持多字段)rnASrnBEGINrn rn Begin Tran --开始事务rn declare @TotalPage int;rn declare @totalRecord int;rn declare @totalMoney money;rn Declare @sql nvarchar(4000); rnrn --计算总页数rn if (@strWhere='' or @strWhere=NULL)rn set @sql = 'select @totalRecord = count(*),@totalMoney = sum(fsje) from ' + @tblNamern elsern set @sql = 'select @totalRecord = count(*),@totalMoney = sum(fsje) from ' + @tblName + ' where ' + @strWherernrn EXEC sp_executesql @sql,N'@totalRecord int OUTPUT,@totalMoney money OUTPUT',@totalRecord OUTPUT,@totalMoney OUTPUT--计算总记录数 rn select @TotalPage=CEILING((@totalRecord+0.0)/@PageSize)rnrn rn set @sql=' Select '+@fieldName+' FROM '+@tblName+' where id in ( 'rn rn if (@strWhere='' or @strWhere=NULL)rn set @sql+='select id from (select ROW_NUMBER() Over(order by '+@OrderField+') as rowId, jl.* from '+@tblName+' ) as t 'rn rn elsern set @sql+='select id from (select ROW_NUMBER() Over(order by '+@OrderField+') as rowId, jl.* from '+@tblName+' where '+@strWhere+') as t 'rn rn --处理页数超出范围情况rn if @PageIndex@TotalPagern Set @pageIndex = @TotalPagernrn --处理开始点和结束点rn Declare @StartRecord intrn Declare @EndRecord intrn rn set @StartRecord = (@pageIndex-1)*@PageSize + 1rn set @EndRecord = @StartRecord + @pageSize - 1rn --继续合成sql语句rn set @Sql = @Sql + ' where rowId between ' + Convert(varchar(50),@StartRecord) + ' and ' + Convert(varchar(50),@EndRecord)rn set @sql= @sql+' ) group by '+@GroupField+' order by '+@OrderField+''rn rn print @sql rn Exec(@Sql)rn ---------------------------------------------------rn --计算总记录数rn --if (@strWhere='' or @strWhere=NULL)rn --set @sql = 'select count(*) from ' + @tblNamern --elsern --set @sql = 'select count(*) from ' + @tblName + ' where ' + @strWherern --EXEC (@sql)rn select @totalRecord,@totalMoneyrnrn If @@Error <> 0rn Beginrn RollBack Tranrn Endrn Elsern Beginrn Commit Tranrn End rnEND[/code]rnrnsql语句执行计划rn[img=https://img-bbs.csdn.net/upload/201710/31/1509417677_347022.png][/img]rnrn索引:rn[img=https://img-bbs.csdn.net/upload/201710/31/1509417848_255786.png][/img]rnrn要怎么优化这个存储过程,首先要优化的是存储过程中计算总页数与计算总记录数 。然后要如何提升整体速率,已经做了分页处理。应该主要是计算总页数与记录数的耗时太久。
大佬们 来看看
[img=https://img-bbs.csdn.net/upload/201711/24/1511518108_452158.png][/img][img=https://img-bbs.csdn.net/upload/201711/24/1511518115_189166.png][/img]rn我想要用[Data_MoJiWeather]里的location查[Data_Area_Info]里的areaCode的数量rnrn实际上就是 查两个无关联的表里字段a是否包含个字段b rn并获得 字段b的id和符合条件的字段a的数量
大佬们!!!
程序运行出错了 <em>求</em>助… type Exception report message description The server encountered an internal error that prevented it from fulfilling this request. exception java.lang.NullPointerException com.db.DBUtil.up...
大佬帮忙,我用的2017
n 1数据处理系统nn 一、软件开发目的nn 该软件主要是使用C语言设计开发数据处理程序,实现对数据的排序、查找、插入、计算、输出等功能。二、数据结构nn 定义一个11*10的二维数组。三、软件功能说明1.生成100个随机数:nn 调用库函数rand()或random ()产生100个随机数,并存储在二维数组中的前十行。2.选择法排序:nn 用选择法将数据由小到大排序输出,保存在数组中,按行优先的原则存放(将小数先存满第一行,然后第二行...3.冒泡法排序:nn 用冒泡法将数据由小到大排序输出,保存在数组中,按行优先的原则存放(将小数先存满第-行,然后第二行...4.插入法排序:nn 用插入法将数据由小到大排序输出,保存在数组中,按行优先的原则存放(将小数先存满第一行,然后第二...)..5.查找数据:nn 输入待查找数据,在二维数组中逐个查找,若找到输出数据所在位置的行列号,若无该数值则输出”无此数”。6.转换二进制:nn 将数组中数据转换为二进制并转存到另-数组中输出。7.转换为素数之和:nn 对于原数组中的数进行判断:若为偶数,则表示成两个素数的和,并输出。8.插入数据:nn 输入一个数,将该数插入原数组中,使数组中的数仍然按从小到大排序,将数组中数据按从小到大顺序输出。9.删除数据nn 输入一个数,若原数组中存在该数,则删除该数,使数组中的数仍然按从小到大排序,将数组中数据按从小到大顺序输出。10. 退出系统,结束任务。
新人助,大佬帮忙解决
在用android studio生成app的时候总是闪退eventlog里也没有报错感觉是Mainactivity.java里的结构问题rnjava代码如下rn[code=java]package com.example.administrator.calculate;rnimport android.app.Activity;rnimport android.os.Bundle;rnimport android.view.View;rnimport android.widget.Button;rnimport android.widget.EditText;rnrnpublic class MainActivity extends Activity implements View.OnClickListener rnrn Button btn_0;rn Button btn_1;rn Button btn_2;rn Button btn_3 ;rn Button btn_4 ;rn Button btn_5 ;rn Button btn_6 ;rn Button btn_7 ;rn Button btn_8 ;rn Button btn_9 ;rn Button btn_point ;rn Button btn_clear ;rn Button btn_del ;rn Button btn_pluse ;rn Button btn_minus ;rn Button btn_multiply ;rn Button btn_divide ;rn Button btn_equle ;rn EditText et_input;rn boolean clear_flag;rn @Overridern protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState);rn setContentView(R.layout.activity_main);rn btn_1 = (Button) findViewById(R.id.button13);rn btn_2 = (Button) findViewById(R.id.button14);rn btn_3 = (Button) findViewById(R.id.button15);rn btn_4 = (Button) findViewById(R.id.button9);rn btn_5 = (Button) findViewById(R.id.button10);rn btn_6 = (Button) findViewById(R.id.button11);rn btn_7 = (Button) findViewById(R.id.button5);rn btn_8 = (Button) findViewById(R.id.button6);rn btn_9 = (Button) findViewById(R.id.button7);rn btn_point = (Button) findViewById(R.id.button19);rn btn_clear = (Button) findViewById(R.id.button1);rn btn_del = (Button) findViewById(R.id.button4);rn btn_pluse = (Button) findViewById(R.id.button12);rn btn_minus = (Button) findViewById(R.id.button8);rn btn_multiply = (Button) findViewById(R.id.button3);rn btn_divide = (Button) findViewById(R.id.button2);rn btn_equle = (Button) findViewById(R.id.button20);rn et_input = (EditText) findViewById(R.id.et_input);rnrn btn_0.setOnClickListener(this);rn btn_1.setOnClickListener(this);rn btn_2.setOnClickListener(this);rn btn_3.setOnClickListener(this);rn btn_4.setOnClickListener(this);rn btn_5.setOnClickListener(this);rn btn_6.setOnClickListener(this);rn btn_7.setOnClickListener(this);rn btn_8.setOnClickListener(this);rn btn_9.setOnClickListener(this);rn btn_point.setOnClickListener(this);rn btn_clear.setOnClickListener(this);rn btn_del.setOnClickListener(this);rn btn_pluse.setOnClickListener(this);rn btn_minus.setOnClickListener(this);rn btn_multiply.setOnClickListener(this);rn btn_divide.setOnClickListener(this);rn btn_equle.setOnClickListener(this);rnrn rnrn @Overridern public void onClick(View v) rn String str = et_input.getText().toString();rn switch (v.getId()) rn case R.id.button18:rn case R.id.button13:rn case R.id.button14:rn case R.id.button15:rn case R.id.button9:rn case R.id.button10:rn case R.id.button11:rn case R.id.button5:rn case R.id.button6:rn case R.id.button7:rn case R.id.button19:rn if (clear_flag) rn clear_flag = false;rn str = "";rn et_input.setText("");rn rn et_input.setText(str + ((Button) v).getText());rn break;rn case R.id.button12:rn case R.id.button8:rn case R.id.button3:rn case R.id.button2:rn if (clear_flag) rn clear_flag = false;rn str = "";rn et_input.setText("");rn rn if (str.contains("+") || str.contains("-") || str.contains("*") || str.contains("/")) rn str = str.substring(0, str.indexOf(" "));rn rn et_input.setText(str + " " + ((Button) v).getText() + " ");rn break;rn case R.id.button1:rn if (clear_flag)rn clear_flag = false;rn str = "";rn et_input.setText("");rn break;rn case R.id.button4: //判断是否为空,然后在进行删除rn if (clear_flag) rn clear_flag = false;rn str = "";rn et_input.setText("");rn else if (str != null && !str.equals("")) rn et_input.setText(str.substring(0, str.length() - 1));rn rn break;rn case R.id.button20: //单独运算最后结果rn getResult();//调用下面的方法rn break;rn rn rnrn private void getResult() rn String exp = et_input.getText().toString();rn if (exp == null || exp.equals("")) return;rn //因为没有运算符所以不用运算rn if (!exp.contains(" ")) rn return;rn rn if (clear_flag) rn clear_flag = false;rn return;rn rn clear_flag = true;rn //截取运算符前面的字符串rn String s1 = exp.substring(0, exp.indexOf(" "));rn //截取的运算符rn String op = exp.substring(exp.indexOf(" ") + 1, exp.indexOf(" ") + 2);rn //截取运算符后面的字符串rn String s2 = exp.substring(exp.indexOf(" ") + 3);rn double cnt = 0;rn if (!s1.equals("") && !s2.equals("")) rn double d1 = Double.parseDouble(s1);rn double d2 = Double.parseDouble(s2);rn if (op.equals("+")) rn cnt = d1 + d2;rn rn if (op.equals("-")) rn cnt = d1 - d2;rn rn if (op.equals("*")) rn cnt = d1 * d2;rn rn if (op.equals("/")) rn if (d2 == 0) cnt = 0;rn else cnt = d1 / d2;rn rn if (!s1.contains(".") && !s2.contains(".") && !op.equals("÷")) rn int res = (int) cnt;rn et_input.setText(res + "");rn else rn et_input.setText(cnt + "");rn rn rn //如果s1是空 s2不是空 就执行下一步rn else if (!s1.equals("") && s2.equals("")) rn double d1 = Double.parseDouble(s1);rn if (op.equals("+")) rn cnt = d1;rn rn if (op.equals("-")) rn cnt = d1;rn rn if (op.equals("*")) rn cnt = 0;rn rn if (op.equals("/")) rn cnt = 0;rn rn if (!s1.contains(".")) rn int res = (int) cnt;rn et_input.setText(res + "");rn else rn et_input.setText(cnt + "");rn rn rn //如果s1是空 s2不是空 就执行下一步rn else if (s1.equals("") && !s2.equals("")) rn double d2 = Double.parseDouble(s2);rn if (op.equals("+")) rn cnt = d2;rn rn if (op.equals("-")) rn cnt = 0 - d2;rn rn if (op.equals("*")) rn cnt = 0;rn rn if (op.equals("/")) rn cnt = 0;rn rn if (!s2.contains(".")) rn int res = (int) cnt;rn et_input.setText(res + "");rn else rn et_input.setText(cnt + "");rn rn else rn et_input.setText("");rn rn rnrn[/code]
大佬帮忙改个马踏棋盘程序啊
[b][color=#FF0000]]现在是输出指定初始位置的结果。我想让他一次输出64个所有初始位置的结果。rn自己加了两层循环 怎么也不行 <em>求</em><em>大佬</em>解答,本人小白一个 附上程序最好了 谢谢大家[/color][/b]rnrnrn#includern#includernrn#define STACK_INIT_SIZE 100rn#define STACKINCREMENT 10rnrntypedef struct //记录坐标位置rnrn int x;rn int y;rnPosType;rntypedef struct //骑士跳步rnrn PosType seat; rn int di; //标记探索的下一个方向rnSElemType;rntypedef struct//栈的结构体rn rn SElemType *base;rn SElemType *top;rn int stacksize;rnSqStack; rnrnint Init1[8][8] = 0 ;//此棋盘用以记录所走过的路rnint Init2[8][8] = rn 2,3,4,4,4,4,3,2,//初始化棋盘,并标记每个位置所能跳的方向rn 3,4,6,6,6,6,4,3,//例如当为2时,表示下一步只有两个方向可跳rn 4,6,8,8,8,8,6,4,//此棋盘用以记录跳棋步骤rn 4,6,8,8,8,8,6,4,rn 4,6,8,8,8,8,6,4,rn 4,6,8,8,8,8,6,4,rn 3,4,6,6,6,6,4,3,rn 2,3,4,4,4,4,3,2,;rnint HTry1[8] = -2, -1, 1, 2, 2, 1, -1, -2;//跳马的下一步的x位置rnint HTry2[8] = 1, 2, 2, 1, -1, -2, -2, -1;//跳马的下一步的y位置rnrnvoid MarkPrint(PosType pos);//此路不能通过,仍标记为0rnPosType NextPos(PosType curpos,int x);//按顺时针寻找下一个方向rnvoid FootPrint(PosType &curpos,int surstep);//此路能过标记相应的步数rnint Pass(PosType &curpos);//判断此路是否能通过rnint InitStack(SqStack &S);//初始化栈rnvoid DestroyStack(SqStack &S);//销毁栈rnint StackEmpty(SqStack &S);//判断栈是否为空rnint Push(SqStack &S,SElemType e);//入栈rnint Pop(SqStack &S,SElemType &e);//出栈rnvoid print(int curstep);//打印路线rnrnint main()rnrn SqStack S; //栈的结构体rn SElemType e; //标记探索的下一个方向rn PosType Mincurpos,curpos,start; //记录坐标位置rn int curstep; //记录步数rnrn InitStack(S); //初始化栈rn printf("请输入起始位置");rn scanf("%d%d",&start.x,&start.y); //请输入起始位置rn curpos = start; //记录初始坐标位置rn curstep = 1; //记录坐标顺序位置rn dorn if(Pass(curpos)) //判断此路是否能通过rn FootPrint(curpos,curstep); //此路能过标记相应的步数rn e.di = 0; //标记探索的下一个方向rn e.seat= curpos; //记录坐标位置rn Push(S,e); //入栈rn if(curstep == 64) //判断栈满rn print(curstep); //打印路线rn DestroyStack(S); //销毁栈rn return 1;rn rn curpos = NextPos(curpos,e.di); //按顺时针寻找下一个方向rn curstep ++; //步数加一rn rn else rn if(!StackEmpty(S)) //判断栈不为为空rn Pop(S,e); //退栈rn curstep --; //步数减一rn while(e.di == 7 && !StackEmpty(S)) rn MarkPrint(e.seat); //此路不能通过,仍标记为0rn Pop(S,e); //退栈rn curstep --; //步数减一rn rn if(e.di < 7) rn Mincurpos = curpos; //Mincurpos记录上次位置rn e.di ++; //方向加一rn curpos = NextPos(e.seat,e.di); //按顺时针寻找下一个方向rn while(Mincurpos.x == curpos.x && Mincurpos.y == curpos.y && e.di < 7) rn e.di ++; //判断此位置的下一个位置的八个方向的最小值是否相同,若相同则直接跳过rn curpos = NextPos(e.seat,e.di); //按顺时针寻找下一个方向rn rn Push(S,e); //出栈rn curstep ++; //步数加一rnrn rn rn rn while(!StackEmpty(S)); //栈不为空rn DestroyStack(S); //销毁栈rn return 0;rnrnrnvoid print(int curstep) //打印路线rnrn for(int i = 0; i < 8; i++) rn for(int j = 0; j < 8; j++) rn printf("%3d",Init1[i][j]); //打印路线rn printf("\n");rn rn printf("\n");printf("\n");rn getchar();rnrnrnvoid MarkPrint(PosType pos) //此路不能通过,仍标记为0rnrn Init1[pos.x][pos.y] = 0;rnrnrnPosType NextPos(PosType curpos,int x) //寻找下一个位置Init2[8][8]中最小的位置,并且此路没有走过rn //寻找下一个位置Init2[8][8]中最小的位置,并且此路没有走过rn PosType MinCurpos,temp;rnrn MinCurpos.x = -1;rn MinCurpos.y = -1;//置此为最小的方向rn for(;x < 8; x++) rn temp.x = curpos.x + HTry1[x]; //跳马的下一步的x位置rn temp.y = curpos.y + HTry2[x]; //跳马的下一步的y位置rn if(temp.x < 0 || temp.x > 7 || temp.y < 0 || temp.y > 7 || Init1[temp.x][temp.y]) continue;//保证此位置在棋盘中rn if(MinCurpos.x == -1 && MinCurpos.y == -1) //先找到下个位置第一个合法的位置 rn MinCurpos = temp;rn else if( Init2[MinCurpos.x][MinCurpos.y] > Init2[ temp.x][temp.y] )//比较找最小rn MinCurpos= temp;rn rn if(MinCurpos.x == -1 && MinCurpos.y == -1) //如果没有下个位置,返回原来位置rn return curpos;rn return MinCurpos; //如果有下个位置,返回位置rnrnrnvoid FootPrint(PosType &curpos,int curstep) //此路能过标记相应的步数rnrn Init1[curpos.x][curpos.y] = curstep; //此路能过标记相应的步数,将Init1存入步数rnrnrnint Pass(PosType &curpos) //判断此路是否能通过rnrn if(!Init1[curpos.x][curpos.y]) //此路不能通过,return 1,否则返回 0rn return 1;rn else return 0;rnrnrnvoid DestroyStack(SqStack &S) //销毁栈rnrn S.base = S.top; //base=toprn S.stacksize = 0; //size置为0rnrnrnint StackEmpty(SqStack &S) //判断栈满rnrn if(S.base == S.top) rn return 1;rn else return 0;rnrnrnint InitStack(SqStack &S) //初始化栈rn rn S.base = (SElemType*)malloc(STACK_INIT_SIZE * sizeof(SElemType));//将s.base申请跳步类型100个空间rn if(!S.base) return 0; rn S.top = S.base;rn S.stacksize = STACK_INIT_SIZE; //长度给100rn return 1;rnrnrnint Push(SqStack &S,SElemType e) //入栈rnrn if(S.top - S.base >= S.stacksize ) //顶减底等于现在的栈中元素个数rn S.base = (SElemType*)realloc(S.base,(STACK_INIT_SIZE+STACKINCREMENT )*sizeof(SElemType));//对malloc申请的内存进行大小的调整.调整为110 rn if(!S.base) return 0;rn S.top = S.base +S.stacksize; //顶为底加长度rn S.stacksize += STACKINCREMENT; //长度加10rn rn *S.top++ = e;rn return 1;rnrnrnint Pop(SqStack &S,SElemType &e) //出栈 rn rn if(S.top == S.base) return 0;rn e = *--S.top; //e=*--S.toprn return 1;rnrn
python编程题大佬帮忙
编写一个函数,计算1+1/3+1/5+...+1/99的和
排序问题各位大佬帮忙
数组中数字出现次数为主以从小到大为辅进行排序rn排序大小是按照0-9排列rnrn比如数组中有1,2,2,3,8,0,1rn1,2出现两次 ,0,3,8出现一次则为12038rn剩余未出现的数在之后进行从小到大排列rn实则排列后为1203845679
!!!!!紧急!!!大佬帮忙看看这是什么问题
[img=https://img-bbs.csdn.net/upload/201711/15/1510734544_687595.png][/img]rn别的文件都没报错就这个报错了!
阿里云服务器登陆问题,大佬帮忙解决
阿里云服务器登陆root 显示login incorrentn,用putty登陆root access denied,只有用putty私钥登陆不用密码才可以正常访问![![![图片说明](https://img-ask.csdn.net/upload/201711/09/1510234048_49901.png)图片说明](https://img-ask.csdn.net/upload/201711/09/1510234039_796667.png)图片说明](https://img-ask.csdn.net/upload/201711/09/1510234030_209891.png)
大佬帮忙看看sql优化问题
nnnnnnSELECT SUBSTRING(b.AreaCode,n 1,n 6) AS areaCode,n COUNT(*) AS countnFROM Data_MoJiWeather A JOINn (SELECTn AreaCode,n Lon,n Lat,n Shi,n Xian,n AreaTypen FROM Data_Area_Infon WHERE AreaCode NOT IN n (SELECT AreaCoden FROM Data_Area_Info an WHERE Xian LIKE '%区'n AND right(left(a.AreaCode,6),2)nORDER BY areaCode nn```n n```nn![图片说明](https://img-ask.csdn.net/upload/201712/05/1512437027_27779.png)n表扫描占了很大的开销
关于pip版本的问题 大佬帮忙
目前的版本号是19.0.3 为什么报错的时候说我是10.0.1
大佬帮忙解决一下问题
ajax请<em>求</em>的时候报这个get错误
各位大佬帮忙,谢谢了
登录系统的时候报这个错误,网上找了好多办法,说是服务未打开,打开试了还是不可以,<em>求</em>解rn[img=https://img-bbs.csdn.net/upload/201903/21/1553130943_551619.png][/img]rnrn[color=#FF0000]“由于目标计算机积极拒绝,无法连接”[/color]rnrnrn<em>求</em>解呀
mongodb报错,大佬帮忙,谢谢。
[img=https://img-bbs.csdn.net/upload/201907/31/1564549431_295735.png][/img][img=https://img-bbs.csdn.net/upload/201907/31/1564549439_235361.png][/img][img=https://img-bbs.csdn.net/upload/201907/31/1564549446_790951.png][/img][img=https://img-bbs.csdn.net/upload/201907/31/1564549571_42509.png][/img]rn
大佬帮忙QAQ,关于CHAR BIT
#includern void PrintBits(int x)rn rn int i;rn int n=sizeof(int) * CHAR_BIT;rn int mask=1<<<=1;rn if (!(i % (CHAR_BIT))&&i
大佬帮忙看下slice怎么定义
[img=https://img-bbs.csdn.net/upload/201907/22/1563770721_167689.jpg][/img]rnrn小白一个,不太懂是什么问题,这里是说slice未定义吗?那我该怎么定义它,<em>求</em>大神。我太菜了。rnrn rn rn rn 搜索过滤 rn rn rn rn rn 名字rn 年龄rn 性别rn rn rn item.名字 | bigrn item.年龄rn item.性别rn rn rn rn rnrn
面试遇到的算法问题大佬帮忙
1.编写一个函数,输入一个整数,输出如下图所示rn[img=https://img-bbs.csdn.net/upload/201804/11/1523460600_512999.png][/img]rnrnrn2.编写一个函数,计算m*n大小棋盘上门矩形的图案,如下图所示,高和宽相同(图画的不好见谅)rn[img=https://img-bbs.csdn.net/upload/201804/11/1523460965_218622.png][/img]rnrnrn
Tree树,大佬帮忙解决
刚上手这个项目,需要生成一个Tree树,父ID为数据库一列的前三个数,子ID为该列的其他的 比如: 父ID为:101 子ID为:10111,10112
大佬帮忙,段错误,自己运行没有问题
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=188rnrn#includern#includern#includern#includern#includernusing namespace std;rnint main()rnrn int a;rn vector nn;rn freopen("1.txt","r",stdin);rn cin>>a;rnrn int i,k,q;rn unsigned int j;rn multimapw;rn while(a--)rn rn string s[102];rn int n,m;rn scanf("%d %d\n",&n,&m);rn q=m;rn while(m--)rn rn cin>>s[i];rn i++;rn rn int b[100]=0;rn for(i=0;ib[j+1])rn rn int tmp = b[j];rn b[j] = b[j+1];rn b[j+1] = tmp;rn swap(s[j+1],s[j]);rn rn rn rn for(i=q-1;i>=0;i--)rn rn cout<
大佬帮忙,谢谢谢。。。。。题目在下面
/*输入字符串,内有数字和非字符数组,例如A123x456将其中连续的数字作为一个整数,依次存放到一个数组中,如123放到a[0],456放到a[1],并输出a这些数。为什么我这代码最后一个输出不对*/n#includen#includen#includen#includenchar *s_gets(char *st,int size);nint main()nn char str[30],str1[10][10],*end;n int t=0,m=0,i;long a[9];n printf("请输入一个字符串:");n s_gets(str,30);n for(i=0;i
助】 学习作业,大佬帮忙看看???
写个程序,来计算表达式的值。比如计算3+1*4、(7+4)*3、3^2+4等这些式子,显然它们等于7、33、13rnrn你需要处理+、-、*、/、^,分别代表加、减、乘、除、幂,都是双目运算符,同时表达式中还包含括号()。rnrn注意运算符的优先顺序,先计算括号里的式子,幂运算符优先级最高,其次乘除运算优先级相同,最后是加减运算。同一优先级的运算符按照从左到右顺序计算。rnrn川农牛觉得这还不简单嘛,分分钟用Java给他写了个出来。rnrnrnInputrn输入一个不带空格的字符串(长度不超过10000),代表需要计算值的表达式。表达式中只有正整数,除法也请参照正整数除法比如3/2应该等于1。rnrn输入的字符串保证是一个合法的表达式。rnrnrnOutputrn输出计算出的值,注意这个值有可能会非常非常大。如果表达式中出现了除0错误,直接输出ERROR
大佬帮忙HTTP status 500 问题
<em>求</em><em>大佬</em><em>帮忙</em><em>求</em><em>大佬</em><em>帮忙</em> 十万火急。。。。。。。 本人程序小白,从网上下载了一个程序,但是运行起来有问题,不知咋解,就<em>大佬</em><em>帮忙</em>。。。。。。。。 <em>求</em><em>大佬</em><em>帮忙</em>。。。。。。。。。 ...
大佬帮忙】关于listview的问题
目前想要实现的是:rn点击listview的某一行,然后点击button按钮,就会弹出一个相应窗体,窗体显示选中那行的详细信息rnrn不知道这个有没有可能实现呢?rn先谢谢了!!!
新人大佬帮忙看下
05-13 10:48:01.899 809-2349/? E/GCM: Missing checkin config filern05-13 10:48:01.909 809-2349/? E/GCM: Missing checkin config filern05-13 10:48:02.429 809-2354/? E/GCM: Missing checkin config filern05-13 10:48:02.429 809-2354/? E/GCM: Missing checkin config filern05-13 10:48:02.729 809-1374/? E/NetworkScheduler.ATC: Trying to release unacquired lock: com.google.android.gms/.clearcut.uploader.UploaderServicern05-13 10:48:02.759 809-1393/? E/GCM: Missing checkin config filern05-13 10:48:09.059 2365-2365/? E/memtrack: Couldn't load memtrack module (No such file or directory)rn05-13 10:48:09.059 2365-2365/? E/android.os.Debug: failed to load memtrack module: -2rn05-13 10:48:10.319 809-1393/? E/NetworkScheduler.SR: Invalid parameter apprn05-13 10:48:10.319 809-1393/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?rn05-13 10:48:10.379 1654-2401/? E/SA.SensorsDataAPI: The static method sharedInstance(context, serverURL, configureURL, vtrackServerURL, debugMode) should be called before calling sharedInstance()rn05-13 10:48:10.389 927-1396/? E/Drive.UninstallOperation: Package still installed com.example.weng.newsrn05-13 10:48:10.829 2365-2371/? E/cutils-trace: Error opening trace file: No such file or directory (2)rn05-13 10:48:11.729 2420-2420/? E/memtrack: Couldn't load memtrack module (No such file or directory)rn05-13 10:48:11.729 2420-2420/? E/android.os.Debug: failed to load memtrack module: -2rn05-13 10:48:11.779 2420-2441/? E/cutils-trace: Error opening trace file: No such file or directory (2)rn05-13 10:48:11.939 809-1393/? E/NetworkScheduler.SR: Invalid parameter apprn05-13 10:48:11.939 809-1393/? E/NetworkScheduler.SR: Invalid package name : Perhaps you didn't include a PendingIntent in the extras?rn05-13 10:48:12.439 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.449 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.449 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.449 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.449 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.449 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.449 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.469 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.469 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.469 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.469 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:12.469 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:12.469 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.469 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.509 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:12.509 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:12.529 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.529 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmp.tmprn05-13 10:48:12.529 1185-2483/? E/Cataloger: 重复删除命令rn05-13 10:48:12.529 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmprn05-13 10:48:12.529 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmprn05-13 10:48:12.529 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmprn05-13 10:48:12.529 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/Android/data/com.estrongs.android.pop/recomm/setting.download.tmprn05-13 10:48:12.959 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:12.959 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:13.119 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:13.119 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:14.369 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/__send_log_data_1494643694360rn05-13 10:48:14.369 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/__send_log_data_1494643694360rn05-13 10:48:14.369 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/__send_log_data_1494643694360rn05-13 10:48:14.369 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/__send_log_data_1494643694360rn05-13 10:48:14.749 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/__send_log_data_1494643694360rn05-13 10:48:14.759 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/__send_log_data_1494643694360rn05-13 10:48:15.029 1185-2483/? E/Cataloger: syncFile:/storage/emulated/0/backups/system/.timestamprn05-13 10:48:15.029 1185-2483/? E/Cataloger: need not sync path:/storage/emulated/0/backups/system/.timestamprn
各位大佬救救 我呀
请问一下<em>大佬</em>们 list> 获取到的数据 如何去重相同某几列数据 并保留原有行数据的其他数据 代码如下[img=https://img-bbs.csdn.net/upload/201809/18/1537236716_204535.png][/img] 实现的效果如下[img=https://img-bbs.csdn.net/upload/201809/18/1537236548_605263.png][/img] 一二的项目名称与合同编码rn相同 需只显示一条 怎么写呀 <em>求</em>大神们<em>帮忙</em> 小弟很是着急呀。。。
懂delphi的大佬帮忙翻译成Net
<em>求</em>懂delphi的<em>大佬</em><em>帮忙</em>翻译rn看了半天 很多关键字都不认识rnrnprocedure Encode6BitBuf(pSrc, PDest: PChar; nSrcLen, nDestLen: Integer);rnvarrn i: Integer;rn nRestCount: Integer;rn nDestPos: Integer;rn btMade: byte;rn btCh: byte;rn btRest: byte;rn btXor: Byte;rnbeginrn nRestCount := 0;rn btRest := 0;rn nDestPos := 0;rn for i := 0 to nSrcLen - 1 dorn beginrn if nDestPos >= nDestLen thenrn break;rn btCh := byte(pSrc[i]);rn$IF ENDECODEMODE = NEWMODErn btXor := BITMASKS;rn Inc(btXor, i);rn btCh := btCh xor btXor;rn$IFENDrn btMade := byte((btRest or (btCh shr (2 + nRestCount))) and $3F);rn btRest := byte(((btCh shl (8 - (2 + nRestCount))) shr 2) and $3F);rn Inc(nRestCount, 2);rnrn if nRestCount < 6 thenrn beginrn PDest[nDestPos] := Char(btMade + $3C);rn Inc(nDestPos);rn endrn elsern beginrn if nDestPos < nDestLen - 1 thenrn beginrn PDest[nDestPos] := Char(btMade + $3C);rn PDest[nDestPos + 1] := Char(btRest + $3C);rn Inc(nDestPos, 2);rn endrn elsern beginrn PDest[nDestPos] := Char(btMade + $3C);rn Inc(nDestPos);rn end;rn nRestCount := 0;rn btRest := 0;rn end;rn end;rn if nRestCount > 0 thenrn beginrn PDest[nDestPos] := Char(btRest + $3C);rn Inc(nDestPos);rn end;rn PDest[nDestPos] := #0;rnend;rnrnprocedure Decode6BitBuf(sSource: PChar; pbuf: PChar; nSrcLen, nBufLen: Integer);rnconstrn Masks: array[2..6] of byte = ($FC, $F8, $F0, $E0, $C0);rnvarrn i, nBitPos, nMadeBit, nBufPos: Integer;rn btCh, btTmp, btByte, btXor: byte;rnbeginrn nBitPos := 2;rn nMadeBit := 0;rn nBufPos := 0;rn btTmp := 0;rn btCh := 0;rn for i := 0 to nSrcLen - 1 dorn beginrn if Integer(sSource[i]) - $3C >= 0 thenrn btCh := byte(sSource[i]) - $3Crn elsern beginrn nBufPos := 0;rn break;rn end;rn if nBufPos >= nBufLen thenrn break;rn if (nMadeBit + 6) >= 8 thenrn beginrn btByte := byte(btTmp or ((btCh and $3F) shr (6 - nBitPos)));rn$IF ENDECODEMODE = NEWMODErn btXor := BITMASKS;rn Inc(btXor, nBufPos);rn btByte := btByte xor btXor;rn$IFENDrn pbuf[nBufPos] := Char(btByte);rn Inc(nBufPos);rn nMadeBit := 0;rn if nBitPos < 6 thenrn Inc(nBitPos, 2)rn elsern beginrn nBitPos := 2;rn continue;rn end;rn end;rn btTmp := byte(byte(btCh shl nBitPos) and Masks[nBitPos]);rn Inc(nMadeBit, 8 - nBitPos);rn end;rn pbuf[nBufPos] := #0;rnend;rn
springMvc+mybtis事务问题,大佬帮忙
今天给项目配置事务管理,因为是项目做的差不多了才想到加事务的,所以出了好多问题,自己又是新手,弄了一上午没有达到想要的效果,还请各位<em>大佬</em>指点一下 applicatgion.xml配置如下 spring-servlet配置 事务管理器配置: 操作的方法: 请大神帮我瞅瞅,哪里出了问题...
c语言 运行出错 大佬帮忙
#include n#includen#includen#includenn//定义全局变量nint isEmpty=0;//标志,判断链表是否为空 nn//!!!定义单链表结构体!!! ntypedef struct Noden int NUM;//类型总数 n char NAME[100];//各类型名称 n int num; //各类型下的货物总数n struct Node*next;nNode;nn//函数声明 nNode*create(int n,Node*L);nNode*input(Node*L);nNode*output(Node*L);nNode*outnum(Node*L);nNode*outname(Node*L);nNode*current(Node*L);nvoid search(Node*L);nvoid print(Node*L);nvoid searchnum(Node*L);nvoid searchname(Node*L);nvoid display(Node*L);n//========新增加的函数========nNode*append(Node*L); nn//主函数nvoid main()nn int x;n int n;//初次输入的大小 n Node *L;n if(!(L=(Node *)malloc(sizeof(Node)))) //分配空间n n printf("\n");n exit(1);n n n printf("欢迎使用我的仓库管理系统!\n"); n while(1);n n //主菜单开始 n printf("==========================\n");n printf("1.显示货物类型列表\n");n printf("2.增加货物类型\n");n printf("3.删除货物类型\n");n printf("4.货物入库\n");n printf("5.货物出库\n");n printf("6.库存显示\n");n printf("7.退出\n");n printf("==========================\n");n //主菜单结束n printf("选择1-7:");n scanf("%d",&x); n switch(x)n n case 1:;break;n case 2:create(n,L);break;n case 3:;break;n case 4:;break;n case 5:;break;n case 6:;break;n case 7:;break;n default:printf("input error!\nplaese input1-7");n n n nnnnnn//函数n//1.创建链表节点nNode*create(int n,Node*L)nn Node*pTail=L; n L->next=NULL;n Node*p;n p=(Node*)malloc(sizeof(Node));n if(p==NULL)n n printf("申请内存空间失败!\n");n n //利用尾插建立单链表 n int i;n for(i=1;iNUM);n printf("请输入第%d种类型名称:\n",i);n scanf("%s",&p->NAME);n printf("请输入第%d种类型库存:\n",i);n scanf("%d",&p->num);n pTail->next=p;n pTail=p;n n p->next=NULL;n return L; n n![图片说明](https://img-ask.csdn.net/upload/201805/28/1527489393_274380.png)n欢迎下面就运行不了了
sql大佬帮忙提供下思路
[img=https://img-bbs.csdn.net/upload/201901/21/1548067696_794265.png][/img]rn这是通过其他表查询出的一个区间对应的等级,rn现在通过另一些表统计出了用户的得分,rn问题:现在我需要把所有用户得分根据这个区间统计出每个阶级有多少个用户,只用粗暴的sql,不考虑过程这些。rn另外:如果能有不在区间范围内默认为某一个阶级。(脑子不够用了~)rn最后,<em>求</em><em>大佬</em>[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img]
大佬帮忙写个 小学算术题
跪<em>求</em><em>大佬</em><em>帮忙</em>写一下,应不会很难写。已上图
学籍管理信息系统vbsql下载
vb,sql2000学籍管理系统,希望对各位能有所帮助 相关下载链接:[url=//download.csdn.net/download/suncic1987/2398041?utm_source=bbsseo]//download.csdn.net/download/suncic1987/2398041?utm_source=bbsseo[/url]
麦咖啡 McAfee Internet Security 2008 官方简体中文版下载
说明:这是麦咖啡OEM简体中文7年授权版,授权至2015年5月12日,可以免费升级成Mcafee 2010简体中文版 相关下载链接:[url=//download.csdn.net/download/dell545s/2485763?utm_source=bbsseo]//download.csdn.net/download/dell545s/2485763?utm_source=bbsseo[/url]
网络浏览器-MFC制作下载
mfc制作的一个小浏览器 直接打开百度,不带url,想改变打开目的网址要在程序内部修改 相关下载链接:[url=//download.csdn.net/download/pzwjyxx12/2727661?utm_source=bbsseo]//download.csdn.net/download/pzwjyxx12/2727661?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的