小白求大神帮忙分析!!!! [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:22
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:5
Bbs2
本版专家分:174
大神帮忙分析。。
题目 ;利用正则和鼠标事件,写一个过滤HTML标签的文本域控件,如果在文本域中输入html标签,当光标一旦离开文本域,则其中所有html会自动消失。
大神帮忙小白入门
这个是C和指针63页的一个题 题目是这样的rn假定一个“程序”由你来控制, 而且这个程序包含两个函数, eat_hamberger()用于让你吃汉堡, hungry()函数根据你是否感到饥饿返回真值或者假值, 请编写一些语句, 允许你在感到饥饿的时候满足之前爱吃多少吃多少rnrn我写的程序不知道为什么只能运行一次就停止了 我是想着可以一直在输入为Y时输出 humberger的 求解rnrnrn# include rnrnbool hungry(void);rnvoid eat_hamberger(void);rnrnint main()rnrn while ( hungry() )rn rn eat_hamberger();rn rnrn return 0;rnrnrnbool hungry(void)rnrn printf("你是否感到饥饿?请输入Y/N\n");rn char ch = getchar();rn rn if( ch == 'Y' || ch == 'y' )rn rn return true;rn rn elsern rn return false;rn rnrnrnvoid eat_hamberger(void)rnrn printf("hamberger!\n");rn
小白大神帮忙,存款利息问题
刚学C#没多久,有道题要用控制台写。rn输入 本金,时间,和利率,最后显示 总金额。rn公式 总金额=本金+本金 * (1+利率)时间的次方rnrn有没有<em>大神</em>能帮我解答一下怎么作。。。感激不尽
大神帮忙,高手赐教,小白感激不尽
题目:nn绘制金字塔(4分)n题目内容:n要求用户从键盘输入一个大写字母,使用嵌套循环产生像下面这样的金字塔图案:n    An   ABAn  ABCBAn ABCDCBAnn程序运行结果示例1:nPlease input a capital:nD↙n____An___ABAn__ABCBAn_ABCDCBAn程序运行结果示例2:nPlease input a capital:nF↙n______An_____ABAn____ABCBAn___ABCDCBAn__ABCDEDCBAn_ABCDEFEDCBAn(说明:上面运行结果示例中,每行字母前面的下划线"_"代表屏幕上实际输出的是空格,最后一行前面有一个空格,倒数第二行有两个空格,以此类推。)nn输入提示信息:"Please input a capital:\n"n输入格式: "%c"n输出格式:"%c"n为避免出现格式错误,请直接拷贝粘贴题目中给的格式字符串和提示信息到你的程序中。n<em>小白</em>的程序:n#includenint main()nn char m,n;n n='A';n int i,k;n printf("Please input a capital:\n");n scanf("%c",&m);n for(i=1;i);nnn为什么运行的时候乱码了?n求<em>大神</em>赐教。
小白的新问题又来了~求大神帮忙~!!!!!!
[img=https://img-bbs.csdn.net/upload/201501/22/1421893888_688108.png][/img][img=https://img-bbs.csdn.net/upload/201501/22/1421893898_16463.png][/img]rn我在打开上传的Excel文档时会报第一张图的错误,不知道是什么原因
小白大神帮忙 在线等
1.2.1.设计一个Student类,该类中包括学生的姓名和成绩。创建Student类的5个对象,如下所示:nn姓名 成绩n刘德华 85n张学友 100n刘杰 65n章子怡 58n周迅 76nnn将以上5个对象放入LinkedList中,n完成如下操作和统计: n 1、输出LinkedList中的对象个数。 n 2、删除姓名为“刘杰”的学生信息,并输出LinkedList中现有学生信息。 n3、将姓名为“刘德华”的学生成绩改为95。 n4、输出成绩不及格的学生姓名n
小白大神教育
我今天刚买了一个无线路由,放在学校宿舍里当无线交换机用,设置的是动态IP,每台电脑都要设置自己的IP地址,但为什么连接以后一卡一卡的,但是我改为无线路由以后,只设置一个路由IP以后就非常流畅,请问一下这是为什么,因为我们要用IPv6,所以必须用第一种方法上网,应该怎么设置啊
小白,求大神不吝赐教
public void addOne(User user) throws Exception rn FileWriter fw=null;rn String path=UserDaoImpl.class.getResource("/users.properties").getPath(); rn File file=new File(path);rn //true 参数制定从文件的末尾开始写数据rn fw=new FileWriter(file,true);rn String data=user.getName()+"="+user.getPsw();rn //写入数据rn fw.write(data);rn //释放资源rn fw.close();rn rnjava.io.FileNotFoundException: E:\Tomcat%206.0\webapps\6\WEB-INF\classes\users.properties (系统找不到指定的路径。)rn改成这样:rn //String path=UserDaoImpl.class.getResource("/users.properties").getPath(); rn File file=new File("E:\\Tomcat 6.0\\webapps\\6\\WEB-INF\\classes\\users.properties");rn 就没问题了,求解为什么?已经看了3个小时没看出来了,跪求
小白大神
运行pycharm时发现import本地库出现错误rn import urllibrnImportError: No module named 'urllib'[img=https://img-bbs.csdn.net/upload/201801/31/1517389340_232113.png][/img]rn以前可以运行 cmd上没问题 [img=https://img-bbs.csdn.net/upload/201801/31/1517389019_534316.png][/img]
小白求助,求大神
现在有一个控件,对应若干事件。我想在某一事件触发时,获取事件函数的参数。在vs里面添加完控件后,双击控件事件,自动生成了对应的事件函数,如下:rn[code=c]rnthis->CooMonitor->ArmReport += gcnew AxIPModuleLib::_ICooMonitorEvents_ArmReportEventHandler(this, &TjtyAlmIPM::CooMonitor_ArmReport);//声明rnprivate: System::Void CooMonitor_ArmReport(System::Object^ sender, AxIPModuleLib::_ICooMonitorEvents_ArmReportEvent^ e) rn //函数体rn[/code]rnrnAxIPModuleLib::_ICooMonitorEvents_ArmReportEvent这是一个事件函数,我该怎么调用这函数里面的参数呢??例如strMacrn[img=http://img.my.csdn.net/uploads/201211/13/1352794962_2099.GIF][/img]rnrnrn先谢谢了[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/13.gif][/img]rnrn
汇编小白大神
求<em>大神</em>给下面的代码给个注释啊 关于大数乘法 看不懂 也不知道怎么调 怎么用rnvoid AsmMulL(unsigned long *pL, unsigned long pR, unsigned long *pA, unsigned long t)rnrn if (t == 0) return; rn __asmrn rn mov ecx, t rn lea esi, dword ptr pL rn lea edi, dword ptr pA rn mov ebx, 0 rn clc rn cld rn rnAsmMulL1:rn __asmrn rn mov eax, dword ptr[esi] rn lea esi,[esi + 4] rn mul dword ptr pR rn add eax, ebx rn adc edx, 0 rn mov ebx, edx rn mov dword ptr[edi], eax rn lea edi,[edi + 4] rn loop AsmMulL1 rn mov[edi], ebxrn rn
小白大神指点
rnrnrnrn rn rn rn Documentrn rn rnrnrnrn rn rn rn rnrnrnrnrnrnrn求<em>大神</em>指点为什么去掉window.onload后js无法运行,会失效,急急
小白一枚,求大神
求一个二进制转八进制,八进制再转十六进制的方程式。用C语言编写。多谢了。
导航原理小白帮忙分析
http://huil.com.cn/ rnrnrn今天浏览网站看到的这个想问下各位<em>大神</em>这个网页的导航的原理是什么?rn我用fullpage那个插件只能把ul li那个做出来 但是我看这个网站上面还动态加载了个标签rn这个标签的实现原理是什么[img=https://img-bbs.csdn.net/upload/201607/29/1469792846_142432.png][/img][img=https://img-bbs.csdn.net/upload/201607/29/1469792858_711735.png][/img]rn[img=https://img-bbs.csdn.net/upload/201607/29/1469792927_952965.png][/img]rnrn截图不全 以防万一说是打广告嫌疑了- -。[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/17.gif][/img]rnrn
大神帮忙分析实体关系图
一道美国的ER图题 求<em>大神</em><em>帮忙</em><em>分析</em>各个实体关系rnSA flies between 75 airports in the US. Each airport is known by a unique 3-letter code, and the city and state where it is located. All SA flights are direct, i.e. from one airport to another with no stops. For each departure date SA assigns a unique flight number for every flight. The flight schedule is updated monthly for the next 6 months. Each flight has a scheduled departure date and time, and an arrival date and time. (Assume that departure and arrival dates and times are based on the time zone of the departure and arrival location.) A specific SA airplane is assigned to each flight for each departure date.rnEach SA airplane is assigned a unique ID number, in addition to the manufacturer, model number and the number of seats. For the airplanes owned by SA, they know the date it was put into service and whether it was new or used when purchased. For the airplanes that are leased by SA, they know the date the lease began and the length of the lease, e.g. 24 months. SA currently leases planes from 8 different companies, each known by a unique ID number and name.rnSA compiles a list of available routes for each departure date. Each route, known by a unique route number, is from one airport to another and involves one or more flights, e.g. to fly from PDX (Portland, OR) to DAL (Dallas, TX) on Wednesday, November 12, 2014: Route 1 is Flight 123 from PDX to DAL, Route 2 is Flight 456 from PDX to SFO and Flight 789 from SFO to DAL, with all flights departing on the same date.rnSA offers two fare classes – Class 1 is refundable and Class 2 is non-refundable. Each fare class on each route/departure date has a fare (cost for flying the route) and the number of Frequent Flyer points earned by each passenger who belongs to SA’s Frequent Flyer program. To join the Frequent Flyer program, passengers must provide their name and address (street, city, state, ZIP).rnAnyone can make a reservation using SA’s web site. Each reservation is assigned a unique ID number, the date it was made and the total cost for the reservation. Each reservation is for one or more legs, with each leg for a specific route, departure date and fare class. The SA web site only shows the routes for each leg that have the required number of seats available. The number of seats available for each flight is updated once a reservation is made. It is possible for one reservation to include 2 or more legs on the same date e.g. PDX to DAL in the morning and DAL to PDX in the evening. Each reservation is for one or more passengers provided that the itinerary is identical for each passenger, i.e. each passenger has the same route/departure date and fare class for each leg of their trip.rnEach passenger has a name, gender and birthdate, and a Frequent Flyer ID # if they belong to SA’s Frequent Flyer program. The cost for each leg is based on the route/date and the fare class times the number of passengers. The cost for the reservation is the sum of the cost for each leg. A passenger’s number of available Frequent Flyer points is updated when all of the legs of the reservation have been completed.rn求<em>大神</em><em>帮忙</em> 在下感激不尽
大神帮忙分析以下代码的效率
代码1:rn[code=c]#includern#includernusing namespace std;rnint main()rnrn string A,B;rn getline(cin,A);rn getline(cin,B); rn for(int i=0;irn#includernusing namespace std;rnint main()rnrn string A,B;rn int t,index=0;rn getline(cin,A);rn getline(cin,B); rn for(int i=0;i
大神帮忙分析怎么创建
有三个功能是这样的rn 第一个是 创建功能rn 有可用电话号码,已有电话号码,群名字,群描述rn 第二个rn 编辑群rn 和上面的一样rn 但是第三个功能是发送功能rn 选择群名字,旁边还有个发送信息功能,但是只有一个群名字,发进去要群名字里面的所有人能接收到我发的消息,不知道这个表怎么创建,<em>大神</em>们帮<em>帮忙</em>。
哪位大神帮忙分析
select AKB020,AKC190,AKC220,AAE072,AKC515,AKA135,AAC001,AKC516,AKC221,AAE040,AKC222,AKC223,AKA063,AKA065,AKC224,AKA113,AKC225,AKC226,AKC227,AKC228,AKC334,AKA068,AKC253,AKA069,AAE073,AKA064,AKA070,AKA097,AKC229,AKA071,AKA072,AKC202,AKA073,AKA076,AKC201,AKC325,AKC125,AAE100,AKC301,AKC127,AKC347,AKC384,AKC378,AKC379,AKC380,AKC381,AKC382,AKC383,AAE011,AAE036,OAE001,OAE300,OAE301,AKA609,AKC319,AKC163,AKA231,BKC228,AKA163 from kc22 where akb020 = :"SYS_B_0"and akc190 = :"SYS_B_1" and aae100 = :"SYS_B_2"rnrnrn在pl/sql中秒出结果,在程序中死活通不过。
求助大神帮忙分析
本人刚入行php。最近公司要求做一个后台页面,也就增删改查的任务。所有功能在本地电脑上都可以实现使用。发布到外网上后发现删除和修改功能有问题。本地差不出错在哪里。有<em>大神</em>能帮我<em>分析</em>下原因吗。数据库看过了,字段名都相同。
根据请求接口求json 小白大神帮忙
请求接口就是这个http://ip.taobao.com/service/getIpInfo.php?ip=IP地址, 但是我不知道怎么用啊 输入IP地址后返回的是一个json数据, 不知道怎样去解析json,用ajax?? 自己百度了好多的方法 都不行 求<em>大神</em>们指导 , 怎样利用他的请求接口的到json数据.
大神指教,小白感激不尽
#include n#include nusing namespace std;nint main()nn ofstream outf("test.dat");n char p[]="I am a student";n outf<>p;n cout<
小白大神解答,java????
.split()可以解析用*分割开的吗?nn例String cc =01*kkk*999;nString [] vv=cc.split(*);n对不对?n若不对为什么
java小白,求大神指教
按照书上的自己用txt写了一个,然后改了后缀存到C盘了,为毛在命令里面输入以后是这个情况?[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/3.gif][/img][img=https://img-bbs.csdn.net/upload/201411/24/1416798995_531516.jpg][/img][img=https://img-bbs.csdn.net/upload/201411/24/1416799008_929305.jpg][/img]
小白提问求大神解答!
本人大专生 大数据专业 想学习一下mapreduce的工作原理 但是不清楚 map和reduce的两个模块的工作分别是什么 看了百度感觉还是很模糊 希望<em>大神</em>解答一下
asp小白一枚,求大神
本人对asp真心不懂,但无奈有一个项目是asp做的。现在问题试运行不起来。用iis部署后提示rnrnInternet Information Services 7.5rn错误摘要rnHTTP 错误 401.0 - Unauthorizedrn您无权查看此目录或页面。 详细错误信息rn模块 WebDAVModule rn通知 ExecuteRequestHandler rn处理程序 WebDAV rn错误代码 0x80070005 rn请求的 URL http://127.0.0.1:80/ rn物理路径 D:\ct995\www rn登录方法 匿名 rn登录用户 匿名 rn 最可能的原因:rn•通过身份验证的用户无权访问处理请求所需的资源。rn 可尝试的操作:rn•创建跟踪规则以跟踪此 HTTP 状态代码的失败请求。有关为失败的请求创建跟踪规则的详细信息,请单击此处。rn rnrn运行不起来啊,求<em>大神</em>指点啊
c的小白大神解答!
#includernmain()rnrn short c;rn c = 378657884;rn printf("%d", c);rnrnrnrnrn运行的结果竟然是 -9124 我表示无语 不知道为什么 rn我知道他溢出了 但为何不报错呢? 还有再加长的话他就会报错 我用的是c freern什么时候会错呢? 又如何才能无限制的输入一个数呢? 很大很大的情况下rn希望各位<em>大神</em>能详细解答啊!
新手小白大神指导
WebService地址:http://112.18.189.254:8010/CSWebService.asmxrnrn界面说明:界面2个输入框,一个按钮。输入框用户输入登录名账号和密码,点击按钮进行身份验证。rnrn1.checkLogin(username,password)rn方法说明:用于用户登陆rn参数说明rnrn参数名称 参数类型 参数说明rnusername String 登录名rnpassword String 登录密码rnrn返回示例rn返回参数 返回类型 返回值说明rnresult boolean 返回的结果,登陆成功返回true失败返回falsernmsg String 返回登陆信息rnrnrn登陆账号为username 密码为password
maven小白,求大神解答
[ERROR] Failed to execute goal on project xx-manager-web: Could not resolve dependencies for project com.nun:xx-manager-web:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.nun:xx-common:jar:0.0.1-SNAPSHOT, com.nun:xx-manager-interface:jar:0.0.1-SNAPSHOT: Could not find artifact com.nun:xx-common:jar:0.0.1-SNAPSHOT -> [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/DependencyResolutionExceptionrnrn![图片说明](https://img-ask.csdn.net/upload/201709/02/1504345052_803099.png)![图片说明](https://img-ask.csdn.net/upload/201709/02/1504345059_974576.png)
新手小白大神帮助
最近和学长一起做stm32f429zgt6开发板,做完了,求<em>大神</em>给一个stm32F429驱动2.8寸spi触摸屏的测试例程,屏幕如下 ,控制芯片是Xpt2046,求有玩f429的<em>大神</em>带飞
虚拟化小白大神指点!
本人刚学习虚拟化,从网上了解到虚拟化分为半虚拟化跟全虚拟化。rn 我在服务器windows server 2012 R2 上用Hyper-v创建了一个win7系统,然后用一个软件将这个win7系统作为模板,镜像出多个相同的虚拟系统,请问一下这种架构是属于半虚拟化还是全虚拟化?rn 还有Hypervisor在我这个例子这里具体指的是什么?求<em>大神</em>们解答,多谢[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/54.gif][/img]
小白大神拯救啊
我用循环new了一组PictureBox控件 用的数组标记,然后写了事件rn void 查找_MouseEnter(object sender, EventArgs e)rn rn //throw new NotImplementedException();rn for (int i = 0; i < lb2.Length; i++)rn rn lb2[i].Image = Image.FromFile("image2\tj1.jpg");rn rn rn我里面有6个PictureBox 当我鼠标移动到哪个PictureBox控件上时,哪个控件的背景图就改变,目前我鼠标只要移动到PictureBox控件上时所有的PictureBox控件的背景图都改变了,求<em>大神</em><em>帮忙</em>解决下
VB小白。求大神普渡
[size=24px][b][color=#FF000[size=12px]0]Dim mutex As System.Threading.Mutex[/color] rn[color=#00FF00]=[/color] rn[color=#FF0000]New System.Threading.Mutex(True, "YourAppName", createdNew)[/color][/b][/size]
小白大神解答线程,,,,
线程安全和线程不安全指的是什么。。。。。。。。。。。。。。。
小白一只,求大神支援
#include rn#include rnmain()rnrnShellExecute(NULL, _T("open"), _T("explorer.exe"), _T("http://www.baidu.com"), NULL, SW_SHOW);rnrn我想用VC编写一个访问网页的程序,以上是根据各贴吧论坛人们说的写出来的,求教大家还要怎么写,才能实现?就是用默认浏览器访问百度,最好能有完整的代码,在此谢过大家了!rn
寒假作业,求大神指教。。。小白
1:做一个简单的彩票中奖号码抽取程序,要求:中奖号码一个接一个的出来,中间时隔十五秒.rn2:编写程序.通过用户输入的年龄判断是哪个年龄段的人(儿童:年龄<14;青少年: 14<=年龄<24;青年:24=60),并在页面上输出判断结果。rn3:设计一个程序,它(使用一个数组)接收用户输入的7门课程的成绩,然后在页面 上显示其总成绩和平均分,并列出小于60的成绩。rn4:做一个网页版万年历:运行显示当前时间,并还可以通过按钮显示上下两个月的时间。rn5:制作时钟特效,并在进入界面时设置弹出框,显示,今天是xxxx年xx月xx日上午8:00;根据情况变化,(12点以后显示下午,晚上六点以后显示晚上,晚上12点以后显示凌晨,早上六点显示上午).rn6:用js做一个登陆界面(提示:如果用户名和密码正确,登录到index.html页面。否则,给出提示用
js小白帮忙
用ajax在jsp页面上实现动态的插入和删除表格行,就类似于评论。
小白帮忙
大佬们如何赋给一个结构体变量或double变量取值范围?
大神们,求分析
2012-3-27 8:40:45 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\Program Files\Genuitec\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;G:\Program Files\Genuitec\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_8.5.0.me201003121946\tomcat\binrn2012-3-27 8:40:45 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-3-27 8:40:45 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 389 msrn2012-3-27 8:40:45 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-3-27 8:40:45 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2012-3-27 8:40:46 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2012-3-27 8:40:47 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.sql.Integer, at table: U_groupMessage, for columns: [org.hibernate.mapping.Column(groupFenzId)]rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:545)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.hibernate.MappingException: Could not determine type for: java.sql.Integer, at table: U_groupMessage, for columns: [org.hibernate.mapping.Column(groupFenzId)]rn at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:292)rn at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:276)rn at org.hibernate.mapping.Property.isValid(Property.java:207)rn at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:458)rn at org.hibernate.mapping.RootClass.validate(RootClass.java:215)rn at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)rn ... 36 morern2012-3-27 8:40:47 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2012-3-27 8:40:47 org.apache.catalina.core.StandardContext startrn严重: Context [/Webschool] startup failed due to previous errorsrn2012-3-27 8:40:47 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2012-3-27 8:40:47 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-3-27 8:40:47 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-3-27 8:40:47 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/78 config=nullrn2012-3-27 8:40:47 org.apache.catalina.startup.Catalina startrn信息: Server startup in 2240 msrn 这个是什么错误啊
分析大神调教
//寻找半素数rnrn#pragma warning(disable :4786)rn#include rn#include rn#include rn#include rn#include rnusing namespace std; rnvector primer;rn void pr(int lower,int upper)rn rn for(int i=lower;i seprimer;rn pr(2,500000); rn for(int i=0;i>n)rnrn if( seprimer.find(n)!=seprimer.end())rn cout<<
新人小白分析代码
rn#include "volume.h"rn#include "stdio.h"rnrnint inp_buffer[BUF_SIZE]; rnint out_buffer[BUF_SIZE]; rn // BUF_SIZE的定义见volume.h rnint *input;rnint *output;rnrnint volume = 2;rnrnstruct PARMS str = rnrn 2934,9432,213,9432,&strrn;rnrnrnint read_signals(int *input);rnint write_buffer(int *input,int *output,int count);rnint output_signals(int *output);rnrnrnmain()rn rn int num = BUF_SIZE;rn int i;rnrn i=0;rn input=inp_buffer;rn output=out_buffer;rnrn while ( TRUE ) rn rn read_signals(input); rn write_buffer(input, output, num);rn output_signals(output);rn i++; printf("Number: %d\n",i);rn rnrnrnint read_signals(int *input)rnrnrn return(TRUE);rnrnrnrnint write_buffer(int *input,int *output,int count)rnrn int i;rn rn for ( i=0;i
小白小白小白,求!求!求!大神关于VS2013多线程!求!求!求!大神关于VS2013多线程!求!求!求!大神关于VS2013多线程!
<em>大神</em><em>帮忙</em>,我在百度也好,反正找变了,MFC多线程怎么也不成功rnrn例程10 MultiThread10rnrn建立一个基于对话框的工程MultiThread10,在对话框IDD_MULTITHREAD10_DIALOG中加入一个按钮和三个编辑框控件,按钮的ID为IDC_START,标题为“同时写‘A’、‘B’、‘C’”;三个编辑框的ID分别为IDC_A、IDC_B和IDC_C,属性都选中Read-only;rn在MultiThread10Dlg.h文件中声明两个线程函数:rn[code=c]UINT WriteA(LPVOID pParam);rnUINT WriteB(LPVOID pParam);rnUINT WriteC(LPVOID pParam);[/code] rn使用ClassWizard分别给IDC_A、IDC_B和IDC_C添加CEdit类变量m_ctrlA、m_ctrlB和m_ctrlC;rn在MultiThread10Dlg.cpp文件中添加如下内容:rn为了文件中能够正确使用同步类,在文件开头添加:rn[code=c]rn#include "afxmt.h"[/code]rn定义信号量对象和一个字符数组,为了能够在不同线程间使用,定义为全局变量:rn[code=c]CSemaphore semaphoreWrite(2,2); //资源最多访问线程2个,当前可访问线程数2个 rnchar g_Array[10];[/code] rn添加三个线程函数:rnrn[code=c]UINT WriteA(LPVOID pParam)rnrn CEdit *pEdit=(CEdit*)pParam;rn pEdit->SetWindowText("");rn WaitForSingleObject(semaphoreWrite.m_hObject,INFINITE);rn CString str;rn for(int i=0;iGetWindowText(str);rn g_Array[i]=''A'';rn str=str+g_Array[i];rn pEdit->SetWindowText(str);rn Sleep(1000);rn rn ReleaseSemaphore(semaphoreWrite.m_hObject,1,NULL);rn return 0;rnrnrnUINT WriteB(LPVOID pParam)rnrn CEdit *pEdit=(CEdit*)pParam;rn pEdit->SetWindowText("");rn WaitForSingleObject(semaphoreWrite.m_hObject,INFINITE);rn CString str;rn for(int i=0;iGetWindowText(str);rn g_Array[i]=''B'';rn str=str+g_Array[i];rn pEdit->SetWindowText(str);rn Sleep(1000);rn rn ReleaseSemaphore(semaphoreWrite.m_hObject,1,NULL);rn return 0;rnrnrnUINT WriteC(LPVOID pParam)rnrn CEdit *pEdit=(CEdit*)pParam;rn pEdit->SetWindowText("");rn WaitForSingleObject(semaphoreWrite.m_hObject,INFINITE);rn for(int i=0;iSetWindowText(g_Array);rn Sleep(1000);rn rn ReleaseSemaphore(semaphoreWrite.m_hObject,1,NULL);rn return 0;rnrn[/code]rn这三个线程函数不再多说。在信号量对象有信号的状态下,线程执行到WaitForSingleObject语句处继续执行,同时可用线程数减1;若线程执行到WaitForSingleObject语句时信号量对象无信号,线程就在这里等待,直到信号量对象有信号线程才往下执行。rn双击按钮IDC_START,添加其响应函数:rn[code=c]void CMultiThread10Dlg::OnStart() rnrn CWinThread *pWriteA=AfxBeginThread(WriteA,rn &m_ctrlA,rn THREAD_PRIORITY_NORMAL,rn 0,rn CREATE_SUSPENDED);rn pWriteA->ResumeThread();rnrn CWinThread *pWriteB=AfxBeginThread(WriteB,rn &m_ctrlB,rn THREAD_PRIORITY_NORMAL,rn 0,rn CREATE_SUSPENDED);rn pWriteB->ResumeThread();rnrn CWinThread *pWriteC=AfxBeginThread(WriteC,rn &m_ctrlC,rn THREAD_PRIORITY_NORMAL,rn 0,rn CREATE_SUSPENDED);rn pWriteC->ResumeThread();rnrn rnrnrn[/code]rn<em>大神</em><em>帮忙</em>给详细的改一下呗!rnrn我的是这样的rn[img=https://img-bbs.csdn.net/upload/201610/12/1476242917_818818.png][/img][img=https://img-bbs.csdn.net/upload/201610/12/1476242932_856187.png][/img][img=https://img-bbs.csdn.net/upload/201610/12/1476242959_799984.png][/img][img=https://img-bbs.csdn.net/upload/201610/12/1476242973_277508.png][/img][img=https://img-bbs.csdn.net/upload/201610/12/1476242984_358139.png][/img]rnrnrnrn
大神帮忙啊!!!!
Map&amp;lt;String,Map&amp;lt;String,Integer&amp;gt;&amp;gt; 里面的Map遍历出来Key重复 怎么解决
求操作系统大神帮忙
A、B两个人用QQ聊天。rnA打了一行字点击发送,B接收到后回复,然后A接收到这行回复。这期间A机器的操作系统做了什么?rn麻烦说的稍详细一点。涉及进程管理、设备管理、文件管理等,谢谢!
数据结构的,求大神帮忙
对任意输入的一段英文,为每个字符编制其相应的赫夫曼编码;并利用该编码为任意输入的0、1序列进行解码. rn基本要求:一个完整的系统应具有以下功能:rn(1)初始化 从终端读入一段英文字符,统计每个字符出现的频率,建立赫夫曼树,并将该树存入某文件;rn(2)编码 利用建好的赫夫曼树对各字符进行编码,用列表的形式显示在屏幕上,并将编码结果存入另一文件中; rn(3)解码 利用保存的赫夫曼编码,对任意输入的0,1序列能正确解码; rn 感觉好难[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/9.gif][/img]
大神帮忙。。
请用java获取rar压缩包详细文件列表 rn功能要求:rn 用户单击“浏览”按钮,程序自动打开文件选择器(如图2),让用户选择ARA压缩包文件,程序自动实现ARA压缩包文件列表的读取和解析,并将详细信息显示在表格控件中(如图1)。实现的图形用户界面如下:rn[img=https://img-bbs.csdn.net/upload/201506/12/1434095458_100162.png][/img][img=https://img-bbs.csdn.net/upload/201506/12/1434095468_537351.png][/img]rn跪求详细源代码和流程图 rn请发到287398048@qq,com 这个邮箱当中
菜鸟求大神帮忙~~~
C# winform中输入文本框对每行【有内容的】开头 插入一句相同的话;【没内容的】不插入;rn点确定实现如图:rn[img=https://img-bbs.csdn.net/upload/201310/10/1381416060_922794.jpg][/img]rnrn
新手,求大神帮忙
需要做一个视频上传,下载功能的网页...但是我看不懂网上那些代码..55555...有没哪位大虾耐心教下我
大神们求帮忙???
根据查询条件查询,并将查询结果在DBGridEh中显示,当显示结果为空时,DBGridEh不可操作,否则DBGridEh可操作,当显示结果不为空时,Excel表按钮可操作
大神帮忙~
下面这个程序编译时通过的,但是在组建的时候却是不通过的。请<em>大神</em>们看看是为什么~最好连原因也说一下~先谢谢了。rn程序:rn#includernusing namespace std;rn#includernclass Xrnpublic:rn X(int x1,char *x2,float x3):a(x1),c(x3)rn b=new char[sizeof(x2)+1];rn strcpy(b,x2);rn rn X():a(0),b("X::X()"),c(10) rn X(int x1,char *x2="X::X(....)",int x3=10):a(x1),b(x2),c(x3)rn X(const X&other)rn a=other.a;rn b="X::X(const X &other)";rn c=other.c;rn rn void print()rn cout<<
大神帮忙 看看!!
Fatal error: Call to a member function recordcount() on a non-object in C:\Users\Administrator\Desktop\oecsm\Apache2\htdocs\classes\user.class.php on line 34rnrnrn项目更改数据库之后就报这个错!
webservice求大神帮忙
经理给了一个http://192.168.10.13/ythd_2013/inc/duanxin_zq/server.php?wsdlrn然后在我这台机器上写一个类websetvice来访问这里面的方法rnrn怎么做?
大神帮忙
#includern#includernvoid ps(char b[][20],int n);rnint main(void)rnrn char p[10][20]="Aafhghk","Bbgjfjghkkh","Ccdfggkgdfhff","Dfdhj","Egdfhd","Fsrb","Jdfghhk","Hfggkghhfrthfj","Gdfghkhfdgh","Wfdhfhjhg";rn int i;rn for(i=0;i,p+i);rn rnrnvoid ps(char b[][20],int n)rnrn char s[20];rn int r,i;rn while(n!=0)rn rn n--;rn for(i=0;i=1)rn rn strcpy(s,b[i]);rn strcpy(b[i],b[i+1]);rn strcpy(b[i+1],s);rn rn rn rn
大神帮忙!!!
电脑(win7系统)中了驱动木马,把drivers和drivers store给删除了,忘了修复驱动,直接重启,结果开不了机,也没法重装系统。之前也没设置cd启动,现在无法进入BIOS。该怎么办?rn开机后图片如下:[img=https://img-bbs.csdn.net/upload/201502/03/1422969808_893823.jpg][/img]rn [img=https://img-bbs.csdn.net/upload/201502/03/1422969831_706563.jpg][/img]
大神帮忙解决
import java.io.*;rnpublic class Calculator rn // 定义相关变量rn private String sum = null;rn private String qbrc = null;rn private double qbr1 = 1;rn private double qbr2 = 1;rn String abr1;rn String abr2;rn public Calculator()rn rn rn public void sumT()rn /*rn * 接口功能:进行相关的输入和类型转换 rn * 接口输入:空 rn * 接口输出:空 rn */rn tryrn System.out.println("欢迎使用!!!/n此计算器除可以进行数字各种相关运算还可以进行字符串的相加");rn System.out.print("请您输入您的第一次输入:");rn BufferedReader br1 = new BufferedReader(new InputStreamReader(System.in));rn System.out.print("请输入您的第二次输入:");rn BufferedReader br2 = new BufferedReader(new InputStreamReader(System.in));rn System.out.print("请选择符号(+、—、*、/):");rn BufferedReader brc = new BufferedReader(new InputStreamReader(System.in));rn qbrc = brc.toString();rn abr1 = br1.toString();rn abr2 = br2.toString();rn catch(Exception e)rn e.printStackTrace();rn System.err.println("操作有误,请重新操作!!!");rn rn tryrn qbr1 = Double.parseDouble(abr1);rn qbr2 = Double.parseDouble(abr2);rn rn rn catch(Exception e)rn e.printStackTrace();rn System.err.println("***"+abr1+abr2+"***");rn rn /*rn * 接口功能:进行相关运算并输出结果 rn * 接口输入:空 rn * 接口输出:空 rn */rn tryrn if(qbrc=="+")rn double resultOf = qbr1+qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="-")rn double resultOf = qbr1-qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="*")rn double resultOf = qbr1*qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn if(qbrc=="/")rn double resultOf = qbr1/qbr2;rn System.out.println("第一个数:"+abr1+"\n第二个数:"+abr2+"\n结果为:"+resultOf);rn rn catch(Exception e)rn e.printStackTrace();rn System.err.println("**********\n您的除数不能为零!!!\n**********");rn rn rn rn rn /**rn * @param argsrn */rn public static void main(String[] args) rn Calculator calculator = new Calculator();rn calculator.sumT();rn rnrnrn
大神帮忙。。。。
With these components, web deployed user interfaces can be developed with a level of functionality and interactivity rnpreviously reserved for thick-client applications.rnrnrnrn谁可以帮我翻译一下这句话,我已经有道,百度,谷歌翻译都试过了,还是看不懂这句话的意思,求不吝赐教,感谢!
大神帮忙,很急
我们现在正在自己开发学校考勤系统,现在的遇到点问题。rn.net中我们要求导入excel文件,导入是导进数据库中,需要每一个人Demorn求<em>大神</em><em>帮忙</em>!!!!!
大神帮忙,!看看
/* 题目:一球从100米高度自由落下,rn * 每次落地后反跳回原高度的一半;rn * 再落下,求它在 第N次落地时,共经过多少米?rn * 第N次反弹多高?(将处理写到方法中,rn * 并且方法需要带一个参数,该参数表示第N次落地)rn */import java.util.Scanner;rnpublic class Test3 rnrn rn public static double method(int k)rn rn double sum=100;rn double h=100;rn for(int i=1;i);rn int n=scanner.nextInt();rn double y=method(n);rn System.out.println(y);rnrn rn rn rn rn rn rnrn我的方案不行!求<em>大神</em><em>帮忙</em>!rn
大神帮忙啊!!
编写一段计算货物剩余时间的函数,利用单链表,已经获取系统时间,但是在编写计算函数时总是无法达到预计效果 ,下面是我的代码:一定要用c语言,不能用其他的,或许<em>大神</em>能够<em>帮忙</em>写出这段代码,急需!!rn/*保质期换为天数*/rnint getday(linklist *p)rnrn int day;rn day=30*(p->month);rn return day;rnrn/*计算现在时间与商品生产日期相差的天数*/rnint calcu_day(linklist *p)rnrn int day1,day2,month;rn time_t t;rn struct tm*mytm;rn time(&t);rn mytm=localtime(&t);rn day1=mytm->tm_mday;rn day2=p->day;rn for(month=1;monthtm_mon+1);month++)rn rn if(month==4||month==6||month==9||month==11)rn day1+=30;rn else if(month==2)rn rn if(mytm->tm_year%4==0&&mytm->tm_year%100!=0||mytm->tm_year%400==0)rn day1+=29;rn elsern day1+=28;rnrn rn elsern day1+=31;rn rn for(month==1;monthmonth;month++)rn rn if(month==4||month==6||month==9||month==11)rn day2+=30;rn else if(month==2)rn rn if(p->year%4==0&&p->year%100!=0||p->year%400==0)rn day2+=29;rn elsern day2+=28;rn rn elsern day2+=31;rn rn day1+=365*(mytm->tm_year-(p->year));rn return day1-day2-1;rnrnvoid isoutdata(linklist *p)rnrn int day1,day2,a,b,c;rn if(p->month=365&&(day1-day2)=180&&(day1-day2)next;rn while(p->next!=NULL)rn rn isoutdata(p);rn p=p->next;rn rn
求各位大神帮忙。。。
去从text文件中读取数据并且存他们进入array.然后从大到小print出来。rnprint出来的还有格式要求一行八个,靠左对齐。rnrn[code=java]import java.io.*;rnimport java.util.*;rnrnpublic class gradeprintrn public static void main(String[] args)throws IOExceptionrn Scanner in = new Scanner (new FileReader("data.txt"));rn for () rnrn rnrn for () rnrnrnrn [/code]rnrnrn这个是格式rnrnrn[code=text]90rn80rn76rn95rn87rn36rn95rn95rn56rn68rn78rn87rn98rn87rn45rn67rn95rn34rn92rn80rn95rn90rn76rn95rn95rn48rn95rn64rn68rn45[/code]
大神帮忙
这是我的控制器的代码rn ///操作上线下线rn ///state 0 1 rn [HttpPost]rn public ActionResult _CompassionsUpdate(biz_Compassions biz_Compassions,string btnType) rn if (btnType == "上线")rn rn db.biz_Compassions.Single(m => m.CompassionID==biz_Compassions.CompassionID).State =1; rn db.SaveChanges();rn return PartialView("_CompassionsGrid");rn rn else rn db.biz_Compassions.Single(m => m.CompassionID == biz_Compassions.CompassionID).State =0; rn return PartialView("_CompassionsGrid");rn rn rn rn rn这是我页面的代码、rn rn @using (Html.BeginForm("_CompassionsUpdate", "CompassionsController", FormMethod.Get)) rn if (item.State == 0)rn rn rn rn rn elsern rn rn rn rn rn rn rn我要点击button后调用控制器的方法 修改数据库的字段rn可是方法没有调用到
大神帮忙
小弟的Eclipse 出现了问题了rn用Eclipse 建立了 web项目 ——里面的class 文件 都不能 使用 system.out.printlnI()输入东西了。。。rnsystem . 协助不出来 如下图:rn[img=https://img-bbs.csdn.net/upload/201407/30/1406734987_850516.jpg][/img]rnrn但是如果是生成的java项目 就能够正常的使用 system。out。println()rnalt+/ 也会正常的提示生成rnrnjre是7rnjdk是1.7的rn求<em>大神</em>们帮帮 小弟啊!!
大神帮忙解答
求<em>大神</em><em>帮忙</em>改一下代码,多谢了(一个简单的药品管理) #includevoid delete client () { struct medicines message[N] ; struct medicines temp str ; struct medicines delete str; { char num[10]; //药品编号// char nam...
大神帮忙!!!!!!!!
使用String完成StringBuffer中那6个方法的功能(append,insert,setCharAt,replace,deleteCharAt,delete)
分页求大神帮忙
只有vo servcie action 不写Dao怎么写分页呢[img=https://img-bbs.csdn.net/upload/201308/09/1376048037_409109.jpg][/img]有哪个<em>大神</em><em>帮忙</em>解决一下噻[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/11.gif][/img]
大神帮忙
新建Android,layout下出现两个XML文件,fragment_main是干什么用的?
大神帮忙解答!
[img=https://img-bbs.csdn.net/upload/201607/09/1468029033_463634.png][/img]rn这种效果怎么做rn[img=https://img-bbs.csdn.net/upload/201607/09/1468029164_749260.png][/img]rn一部分是这个
大神帮忙啊!!!
我在写宝石连连看这个游戏的代码的时候,里面一个包有一个主界面,我在这个包中,复制了这个主界面的内容,同时把类名也改了,然后我在main函数中new该类,界面是可以出来啊,但是里面的宝石没有出来,而且确实游戏在运行啊,可是为什么宝石的图片没出来啊!!但是我在原来的那个主类是完好的,相通的代码,且都在同一个包中为什么会这样呢??求<em>帮忙</em>啊!!谢谢大牛啊!!
大神帮忙!急!
用C++语言编写程序,判断一个点与三角形的关系,是在三角形内还是在三角形上或是在三角形外。
求各位大神帮忙
[img=https://img-bbs.csdn.net/upload/201708/25/1503642933_277173.png][/img]rn请问各位<em>大神</em>我在使用xshell时经常出现如图的情况是怎么回事?
eclipse问题,求大神帮忙
在分层模式下,父包不建一个java文件就不能建子包,没有文件的情况下,就直接覆盖父包
大神帮忙!
我刚进公司,第一天就叫我把pic12f519的代码要改成能在pic12f508上面跑起来,以前这两个都没接触过,这是关于图像处理的测试代码,我查了关于这两个单片机的资料,508上面没有kbytes和eeprom,我该把读出的数据写到哪里去,头都快炸了!
大神帮忙看看
public static void main(String[] args)rn System.out.println(getFormatNum("0.000",1.2224));rn System.out.println(getFormatNum("0.000",1.2225));rn System.out.println(getFormatNum("0.000",1.2226));rn System.out.println(getFormatNum("0.000",0.2224));rn System.out.println(getFormatNum("0.000",0.2225));rn System.out.println(getFormatNum("0.000",0.2226));rn System.out.println(getFormatNum("0.000",2.4924));rn System.out.println(getFormatNum("0.000",2.4925));rn System.out.println(getFormatNum("0.000",2.4926));rn rn rn public static Double getFormatNum(String pattren,Double data)rn String reStr = "";rn reStr = new java.text.DecimalFormat(pattren).format(data); rn return Double.parseDouble(reStr);rn rn为什么执行结果会是rn1.222rn1.222rn1.223rn0.222rn0.223rn0.223rn2.492rn2.493rn2.493rn当个位为1时并没有按照四舍五入的规则执行
求各位大神帮忙
#includern#include rnusing namespace std;rnrnconst double PI = 3.14159;rnclass Pointrnrnprivate:rndouble x, y;rnpublic:rnPoint(double xx=0, double yy=0)rnx = xx;rny = yy;rnrnvoid set(double xx = 0, double yy = 0)rnrnx = xx;rny = yy;rnrnrnvoid display()rnrncout << "(" << x << "," << y << ")" << endl;rnrndouble getX()rnrnreturn x;rnrndouble getY()rnreturn y;rnrndouble distance(Point n)rndouble dx = x - n.x;rndouble dy = y - n.y;rnreturn sqrt(dx*dx + dy*dy);rnrnrn;rnrnclass Rectangle :public Point //矩形 rnrnprotected:rndouble length, width;rnPoint center;rnpublic:rnRectangle(double l=1, double w=1, double xx=0, double yy=0) :Point(xx, yy), length(l), width(w)rnvoid set(double l = 0, double w = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx,yy);rnlength = l;rnwidth = w;rnrnrndouble Area()rnrnreturn length*width;rnrnrndouble Peri()rnrnreturn (length + width) * 2;rnrnPoint getcenter()rnreturn center;rnrnrnvoid display()rnrncout << "矩形的中心坐标:";rnPoint::display();rncout << "矩形的长度: " << length << endl;rncout << "矩形的宽度: " << width << endl;rnrn;rnrnclass Circle : public Point //圆形 rnrnprotected:rndouble radius;rnPoint center;rnpublic:rnCircle(double R=1, double xx=0, double yy=0) :Point(xx, yy), radius(R)rnvoid set(double R = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx, yy);rnradius = R;rnrnrndouble Area()rnrnreturn PI*radius*radius;rnrnrndouble Peri()rnrnreturn 2 * PI*radius;rnrnPoint getcenter()rnreturn center;rnrnvoid display()rnrncout << "圆形的中心坐标::" ;rnPoint::display();rncout << "圆形的半径: " << radius << endl;rnrnrn;rnrnclass Triangle : public Point // 三角形 rnrnrnprotected:rndouble SideA, SideB, SideC;rndouble l;rnPoint center;rnrnpublic:rnTriangle(double sa=3, double sb=4, double sc=5, double xx=0, double yy=0) :Point(xx, yy), SideA(sa), SideB(sb), SideC(sc)rnvoid set(double sa = 0, double sb = 0, double sc = 0, double xx = 0, double yy = 0)rnrnPoint::set(xx, yy);rnSideA = sa;rnSideB = sb;rnSideC = sc;rnrnrndouble Area()rnrnl = (SideA + SideB + SideC) / 2;rnreturn sqrt(l*(l - SideA)*(l - SideB)*(l - SideC));rnrnrndouble Peri()rnrnreturn SideA + SideB + SideC;rnrnPoint center()rnreturn center;rnrnvoid display()rnrncout << "三角形的中心坐标:" ;rnPoint::display();rncout << "三角形的三条边:" << SideA << " " << SideB << " " << SideC << endl;rnrn;rnrnclass RecCuboid :public Rectangle //长方体 rnrnprivate:rndouble high;rnpublic:rnRecCuboid(double h=1, double l=1, double w=1, double xx=0, double yy=0) :Rectangle(l, w, xx, yy), high(h)rnvoid set(double h = 0, double l = 0, double w = 0, double xx = 0, double yy = 0)rnrnRectangle::set(l, w, xx, yy);rnhigh = h;rnrnrndouble Volume()rnrncout << "长方体的体积 :" << length*width*high << endl;rnreturn 0;rnrnvoid display()rnRectangle::display();rncout << "长方体的高度:" << high << endl;rnrnrn;rnrnclass CirCuboid :public Circle //圆柱 rnrnprivate:rndouble high;rnpublic:rnCirCuboid(double h=1, double r=1, double xx=0, double yy=0) :Circle(r, xx, yy), high(h)rnvoid set(double h = 0, double r = 0, double xx = 0, double yy = 0)rnrnCircle::set(r, xx, yy);rnhigh = h;rnrnrndouble Volume()rnrncout << "圆柱的体积 :" << PI*radius*radius*high << endl;rnreturn 0;rnrnvoid display()rnCircle::display();rncout << "圆柱的高度:" << high << endl;rn rnrn;rnrnclass TriCuboid :public Triangle //三菱住 rnrnprivate:rndouble high;rnpublic:rnTriCuboid(double h=1, double sa=3, double sb=4, double sc=5, double xx=0, double yy=0) :Triangle(sa, sb, sc, xx, yy), high(h)rnvoid set(double h = 1, double sa = 0, double sb = 0, double sc = 0, double xx = 0, double yy = 0)rnrnTriangle::set(sa, sb, sc, xx, yy);rnhigh = h;rnrnrn double Volume()rnrncout << "三菱住的体积 :" << sqrt(0.33*l*(l - SideA)*(l - SideB)*(l - SideC))*high << endl;rnreturn 0;rnrnvoid display()rnTriangle::display();rncout << "三菱柱的高度:" << high << endl;rnrnrn;rn void display(Point &pp,int type)rnRectangle *pr;rnCircle *pc;rnTriangle *pt;rnCirCuboid *pcu;//长方体、rnRecCuboid *pcy;//圆柱rnTriCuboid *ptr; //三菱柱rnswitch (type)rn case 1:rnpr = reinterpret_cast(&pp);rncout << "矩形的面积;" << pr->Area() <<< endl;rnbreak;rncase 2:rnpc = reinterpret_cast(&pp);rncout << "圆形的面积;" << pc->Area() << "/t圆形的周长:" << pc->Peri() << endl;rnbreak;rncase 3:rnpt = reinterpret_cast(&pp);rncout << "三角形的面积;" << pt->Area() << "/t三角形的周长:" << pt->Peri() << endl;rnbreak;rncase 11:rnpcu = reinterpret_cast(&pp);rncout << "长方体的体积:" << pcu->Volume() << endl;rnbreak;rncase 12:rnpcy = reinterpret_cast(&pp);rncout << "圆柱的体积:" << pcy->Volume() << endl;rnbreak;rncase 13:rnptr = reinterpret_cast(&pp);rncout << "三菱柱的体积:" << ptr->Volume() << endl;rnbreak;rnrnrnrnrnrnrnrnrn double distance(const Point &rp1,const Point &rp2)rn double dx = rp1.getX() - rp2.getX();rn double dy = rp1.getY() - rp2.getY();rn return sqrt(dx*dx + dy*dy);rn rnint main()rn rnPoint objPoint;rnobjPoint.set(5.10);rncout << "点的坐标为:";rnobjPoint.display();rncout << " " << endl;rnrnRectangle objRectangle;rnobjRectangle.set(10, 15, 20, 40);rnobjRectangle.display();rncout << "矩形的面积:" << objRectangle.Area() << endl;rncout << "矩形的周长:" << objRectangle.Peri() g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(116) : 参见“Triangle::center”的声明rn1>g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(261): error C2662: “double Point::getX(void)”: 不能将“this”指针从“const Point”转换为“Point &”rn1> 转换丢失限定符rn1>g:\用vs编程的acm\派生类的继承,兼容类型\派生类的继承,兼容类型\派生类的继承和兼容类型.cpp(262): error C2662: “double Point::getY(void)”: 不能将“this”指针从“const Point”转换为“Point &”rn1> 转换丢失限定符
IOS 小白大神帮忙,为什么返回按钮会报exc_bad_access
如题,之前学过ios, 很久没用都忘了QAQ.rnrn一个很简单的程序,可是跳转后不可以回去了,rnrn跳转的代码rn- (IBAction)YukiBanButtonPress:(id)sender rn [[[UIApplication sharedApplication] keyWindow] endEditing:YES];rn AboutUs*AboutusController= [[[AboutUs alloc] initWithNibName:@"AboutUs" bundle:nil] autorelease];rn [AboutusController setModalTransitionStyle:UIModalTransitionStyleCoverVertical];rn [self.view addSubview:AboutusController.view];rn [self.navigationController pushViewController:AboutusController animated:YES];rn [AboutusController.view setFrame:self.view.bounds];rn [AboutusController setYukiBan];rn [AboutusController.navigationItem setTitle:@"YUKI BAN"];rnrnrn返回按钮的代码rnrnUINavigationItem*item= [NavigationBar.items objectAtIndex:0];rn UINavigationItem *back = [[UINavigationItem alloc] initWithTitle:@"Back"];rn NSArray *items = [[NSArray alloc] initWithObjects:back,item,nil];rn [NavigationBar setItems:items];rn [back release];rn [items release];rn [NavigationBar setDelegate:self];rnrn我用僵尸测试了,显示是之前跳转的方法有问题,可是怎么也看不出到底哪里出问题的rn用的是ios7,难道是特殊功能么TAT。rnrn谢谢各位,<em>小白</em>谢谢大家了rn
求计算机大神帮忙
欢迎使用Markdown编辑器 你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。 新的改变 我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客: 全新的界面设计 ,将会带来全新的写作...
大神帮忙 fb0
抓到fb0 数据 ,通过[code=java]for (int m = 0; m < pixs.length; m++)rn rn if (m % 4 == 0)rn rn int r = (pixs[m] & 0xFF);rn int g = (pixs[m + 1] & 0xFF);rn int b = (pixs[m + 2] & 0xFF);rn int a = (pixs[m + 3] & 0xFF);rn colors[m / 4] = (a << 24) + (b << 16) + (g << 8) + r;rn rn rn Bitmap bitmap = Bitmap.createBitmap(colors, width, height, Bitmap.Config.ARGB_8888);[/code]rn解不出图片。。。是不是错了? 机型是小米2s。
大神帮忙解决!!!
学习到jsp内置对象的时候,发现内置对象调用的都是抽象方法,查看源码也没看见被什么方法给实现,为什么它还可以调用这些方法???(查看源码的时候还发现一个问题:public abstract interface ServletResponse 这是什么???)请哪位<em>大神</em>讲解清楚!!!
求VB大神帮忙
求一个用玫瑰花写“郑婷婷 三个字的EXE桌面特效 有的发邮箱735763656@qq.com
大神帮忙解答~~~
<em>大神</em>们 帮我看下,为什么int类型超出最大值范围,输出最后会变成0, 而不是负数?[img=https://img-bbs.csdn.net/upload/201312/07/1386418079_613433.jpg][/img]
大神帮忙
[img=https://img-bbs.csdn.net/upload/201709/11/1505110429_717492.png][/img]这是批量数据,请问<em>大神</em>如何用SQL得到rn城市年鉴rn城市年鉴>城市年鉴rn城市年鉴>二、地级以上城市统计资料>(一)人口、劳动力及土地资源>rn城市年鉴>二、地级以上城市统计资料>(一)人口、劳动力及土地资源>2-1人口状况rn城市年鉴>二、地级以上城市统计资料>(一)人口、劳动力及土地资源>2-1人口状况>年平均人口rn城市年鉴>二、地级以上城市统计资料>(一)人口、劳动力及土地资源>2-3按产业划分的年末城镇单位从业人员rn(等等等......)rn小弟是实习生,求<em>大神</em><em>帮忙</em>,急用,谢谢
求手机开发大神帮忙
最近在弄手机上的东东,基于jquery的延时加载 jquery mobile lazyloader 这个东东怎么用?rn看开发文档看了半天也没弄明白,希望<em>大神</em>可以给弄个例子,灰常感谢!!!
菜鸟 求大神帮忙
package helloworld;rnrnimport java.awt.*;rnimport javax.swing.*;rnimport java.util.Date;rnimport java.text.SimpleDateFormat;rnrnpublic class MyDate rnrn String str = null;rn JFrame f = new JFrame("MyDate!");rn Container c = f.getContentPane();rn JLabel L = new JLabel("现在时间:");rn JLabel dat = new JLabel();rnrn public static void main(String[] args) rnrn new MyDate();rn rnrn public MyDate() rnrn new ThreadDate().start();rnrn rnrn class ThreadDate extends Thread rnrn public void run() rn f.setBounds(150, 150, 260, 180);rnrn while (true) rn Date dd = new Date();rn SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");rn str = sdf.format(dd);rn try rn sleep(1000);rn catch (Exception e) rn e.printStackTrace();rn rnrn f.setLayout(null);rn c.add(L);rn c.add(dat);rn dat.setText(str);rn L.setBounds(5, 5, 80, 20);rn dat.setBounds(100, 60, 200, 30);rn f.setVisible(true);rn f.setDefaultCloseOperation(f.EXIT_ON_CLOSE);rn rn rnrn rnrnrnrnrn怎样将时间(str)变大并且变成绿色显示
关于MSCOMM控件的一些说明下载
MSComm 一、关于MSCOMM控件的一些说明... 1 二、MSComm 属性..... 8 1、CDHolding 属性.... 8 2、CommEvent 属性.... 9 3、CommPort 属性.... 11 4、Handshaking 属性.... 12 三、串行口初始化.... 13 四、SetOutput()发送字节型数组。... 13 相关下载链接:[url=//download.csdn.net/download/haoqhao/3148714?utm_source=bbsseo]//download.csdn.net/download/haoqhao/3148714?utm_source=bbsseo[/url]
SPY++中文版下载
SPY++中文版 相关下载链接:[url=//download.csdn.net/download/z080815/3574503?utm_source=bbsseo]//download.csdn.net/download/z080815/3574503?utm_source=bbsseo[/url]
Win7中国日历-桌面小工具.rar下载
一个非常好用的桌面日历,有农历显示,适合于Windows7系统。 相关下载链接:[url=//download.csdn.net/download/u012030095/7192345?utm_source=bbsseo]//download.csdn.net/download/u012030095/7192345?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的