求各位大神帮忙解答一下

wampserver怎么从离线状态转为在线状态?localhost打不开网页?求大神们帮忙解答一下

1个回答

左键点击图标,最下面就是切换到在线状态
左键点击后最上面就是localhost可以打开,如果打不开那只能是你安装有问题
即使离线状态也可以打开localhost

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求大神帮忙解答一下
[color=#FF0000]本人自学java,属于新手级别的。rn从网站下载了[b]jdk1.7.0-17[/b],之后按步骤安装到了d盘(在d盘新建了一个java文件夹,就安装在这个文件夹下了)。rn之后运行cmd,java命令可以执行,但是javac,java-version都显示的是“不是内部或外部命令,也不是可运行的程序或批处理文件”。rn然后按照书上的说明设置了环境变量,新建了classpath,java-home,path三个环境变量,值分别为:rn[b]classpath=.;%JAVA_HOME%/lib/toos.jar/;%JAVA_HOME%/lib/dt.jarrnjava-home=d:/java/jdk1.7.0_17rnpath=%JAVA_HOME%/bin[/b]rn然后cmd,还是不行,javac和版本信息都出不来,还是显示“不是内部或外部命令,也不是可运行的程序或批处理文件”。是怎么回事啊,请大神们帮忙一下啊[/color][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/83.gif][/img]
各位大神求解答
本人刚学软件的菜鸟,利用不安全代码unsafe使用指针对图像进行雾化,但是有的图像可以运行,rn有的老是出现下面的警告:rnrn“System.AccessViolationException”类型的未经处理的异常出现在 雾化效果.exe 中。rnrn其他信息: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。rnrnrn本人的源程序如下:rnusing System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Linq;rnusing System.Text;rnusing System.Windows.Forms;rnusing System.Drawing.Imaging;rnrnnamespace 雾化效果rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rn Bitmap bmp;rn private void button1_Click(object sender, EventArgs e)rn rn OpenFileDialog ofd = new OpenFileDialog();rn ofd.Filter = "JEPG文件(*.jpg)|*.jpg";rn ofd.ShowDialog();rn if (ofd.FileName != "")rn rn pictureBox1.Visible = true;rn bmp = new Bitmap(ofd.FileName);rn pictureBox1.Image = bmp;rn pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;rn rn elsern return;rn rnrn private void button2_Click(object sender, EventArgs e)rn rn Bitmap b = (Bitmap)bmp.Clone();rn BitmapData bmData = b.LockBits(new Rectangle(0,0,b.Width,b.Height)rn ,ImageLockMode.ReadWrite,PixelFormat.Format24bppRgb);rn int stride = bmData.Stride;rn System.IntPtr Scan0=bmData.Scan0;rn unsafern rn byte* p=(byte*)(void*)Scan0;rn int Offset=stride-3*b.Width;rn int red, green, blue;rn for (int j = 0; j < b.Height; ++j)rn rn for (int i = 0; i < b.Width; ++i)rn rn Random R = new Random();rn int r = R.Next(200000);rn int x = j + r % 8;rn int y = i + r % 8;rn if (x >= b.Width) x = b.Width - 1;rn if (y >= b.Height) y = b.Height - 1;rn red = (p +( 3 * (y-i) + (x-j) * (3 * (b.Width-1) + Offset)))[0];rn green = (p + (3 * (y-i) + (x-j) * (3 * (b.Width-1) + Offset)))[1];rn blue = (p + (3 * (y-i) + (x-j) * (3 * (b.Width-1) + Offset)))[2];rn p[0] = (byte)red;rn p[1] = (byte)green;rn p[2] = (byte)blue;rn p += 3;rn rn p += Offset;rn rn b.UnlockBits(bmData);rn pictureBox1.Image = b;rn rnrn rn rnrn求大神指导啊,灰常感谢。[/size]
求大神帮忙解答!!
大神,您好:rn 小弟遇到了下面的代码:rn [code=java]<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>rn<%rnString path = request.getContextPath();rnString basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";rnString errorMessage=(String)request.getAttribute("errorMessage");rn%>rn//七rnrnrnrn rn 远程医患交流平台-登陆rn rnrnrnrnrn rn rn rn rn rn rn 账 户:rn 密 码: rn 用户类型:医生用户患者用户管理员 rn <%rn if(errorMessage!=null) %>rn <%=errorMessage %>rn <% rn %>rnrnrn rn rn rn rn rn rn rn rn rnrnrnrn[/code]rn 下图为代码运行效果:rn [img=https://img-bbs.csdn.net/upload/201601/20/1453219648_447217.jpg][/img]rn 求高手点拨:rn 这个类型的 “表单提交 ”的机制,在哪行代码体现?rn 并且,这个类型的用户,单击图片中的“登陆”按钮后,应该触发了服务器验证用户是否合法的流程中。rn 上面:“单击图片中的登陆按钮后,登入系统。这一行 ”伪代码“, 要是换成对应的Java代码或者Jsp代码的话,应该分别走哪几行代码?rn 希望高手,能够指教!!rn 小弟,100分奉上!!rn [img=https://img-bbs.csdn.net/upload/201601/20/1453220877_494394.png][/img]
求大神帮忙解答
求大神帮忙改一下代码,多谢了(一个简单的药品管理) #includevoid delete client () { struct medicines message[N] ; struct medicines temp str ; struct medicines delete str; { char num[10]; //药品编号// char nam...
求大神帮忙解答!
[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一部分是这个
各位大神,求解答
项目用Tomcat运行时报错,但是我下面没有这个springMVC-servlet.xml,rnrn八月 14, 2017 6:30:15 下午 org.apache.catalina.core.ApplicationContext logrn严重: StandardWrapper.Throwablernorg.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/springMVC-servlet.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/springMVC-servlet.xml]rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:343)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:540)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4997)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/springMVC-servlet.xml]rn at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:141)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)rn ... 28 morernrn八月 14, 2017 6:30:15 下午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet [springMVC] in web application [/hh] threw load() exceptionrnjava.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/springMVC-servlet.xml]rn at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:141)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:329)rn at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:303)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:216)rn at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:187)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)rn at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)rn at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)rn at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:540)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:658)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:624)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:672)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:543)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:484)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1231)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1144)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1031)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4997)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5289)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:744)rnrn八月 14, 2017 6:30:15 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["http-nio-8080"]rn八月 14, 2017 6:30:15 下午 org.apache.coyote.AbstractProtocol startrn信息: Starting ProtocolHandler ["ajp-nio-8009"]rn八月 14, 2017 6:30:15 下午 org.apache.catalina.startup.Catalina startrn信息: Server startup in 8240 msrn
求大神帮忙解答~~~
大神们 帮我看下,为什么int类型超出最大值范围,输出最后会变成0, 而不是负数?[img=https://img-bbs.csdn.net/upload/201312/07/1386418079_613433.jpg][/img]
求大神帮忙解答一下这个问题
在第一个Activity A里启动的线程,然后接到消息了跳转到第二个Activity B,那么第一个Activity里启动的n线程还能继续接受消息吗?如果能的话。那么能向B传递消息更新UI吗?
求大神帮忙解答一下,谢谢
给定一组询问(l,r),若整数a,b同时满足以下三个条件:n   (1) b = a + 1n   (2) a + b的值是一个素数n   (3) l <= a, b <= rn  我们就称a, b是一个符合条件的数对。n  求出有多少符合条件的数对。nn【输入格式】n  仅一行,2个整数l,r。nn【输出格式】n  一行,一个整数ans,表示符合条件的数对的数量。nn【输入样例】n  0 13nn【输出样例】n  8nn【数据范围】n  0 <= l, r <= 500n
求大神帮忙解答一下这个程序
一道书上的习题,已经正确可以运行了。rnrn[code=c]#includernint count(double *a)rnrn double *p=a;rn while(*p!=0)rn p++;rn return(p-a);rnrnvoid main()rnrn double a[]=1.0,2.0,8.0,3.0,0.0,4.0,7.0;rn cout<
大神帮忙解答一下!!!!!!!java
 List与Set的区别。。。。。。。。。。。。。。。。。。
请各位大神帮忙解答。
假设有A表 B表rncode name code name rn1 a 1 aaa rn2 b 3 cccrn3 c 5 eeern4 drn5 ern现在我想参照B表将A表更新为rncode name rn1 aaa rn2 b rn3 ccc rn4 drn5 eeern请各位大神帮帮忙,用一条SQL语句搞定。
求大神解答一下,强制类型转换
我在网上找了一个inline hook的例子研究了一下rn红色代码部分是我把一句话分开的,我想知道为什么用这种方法获取地址,红色代码部分,就还有rnULONG temp2=(ULONG)MyMessageBoxA;这一句不明白rn[img=http://ntu.me/di/7PVI/QQ截图20130410115504.png][/img]rnMyMessageBoxA的地址是0x00231690//2299536,为什么强制类型转换后变为了2298096rnrn#include "StdAfx.h"rn#include rn#include rn#include rnusing namespace std; rnDWORD head;//保存API返回地址 rnint nRet;rnBYTE orig_code[5] = 0x90, 0x90, 0x90, 0x90, 0x90;//存放原始的指令 rnBYTE hook_code[5] = 0xe9, 0, 0, 0, 0;//存放跳转到MyMessageBoxA的指令 rnBYTE jmp_org_code[5] = 0xe9, 0, 0, 0, 0;//存放跳转到原起始地址后5字节的指令 rnint MyMessageBoxA( rn HWND hWnd, // handle to owner window rn LPCTSTR lpText, // text in message box rn LPCTSTR lpCaption, // message box title rn UINT uType // message box style rn ); rnint MyMessageBoxAA( HWND hWnd, // handle to owner window rn LPCTSTR lpText, // text in message box rn LPCTSTR lpCaption, // message box title rn UINT uType // message box style rn );rnint MyFunc(); rnvoid Hook(); rnint jmp_back();rnULONG OldFuncAddr; rnULONG MyFuncAddr;rnULONG jmp_backAddr; //在修改前几个字节时,注意:取出的指令为完整的 rnint main() rn rn Hook(); rn int rt = MessageBoxA(NULL, "Hello World", "Title", MB_OK); rn cout << rt << endl;//查看返回值是否已修改成功 rn // system("pause"); rn return 0; rn rnvoid Hook() rn rn DWORD dwOldProtect; rn OldFuncAddr = (ULONG)MessageBoxA; rn // MyFuncAddr = MyMessageBoxA的实际地址 rn [color=#FF0000]BYTE* temp=(BYTE *)MyMessageBoxA;rn BYTE* TEM=(BYTE *)MyMessageBoxA+1;rn ULONG* tem1=(ULONG *)(TEM);rn ULONG temp1=*tem1;rn ULONG temp2=(ULONG)MyMessageBoxA;rn MyFuncAddr=temp1+temp2+5;[/color]rn //[color=#0000FF]MyFuncAddr = *(ULONG *)((BYTE *)MyMessageBoxA+1) + (ULONG)MyMessageBoxA + 5[/color]; rn // jmp_backAddr = jmp_back的实际地址rn [color=#0000FF]jmp_backAddr = *(ULONG *)((BYTE *)jmp_back+1) + (ULONG)jmp_back + 5;[/color] //修改内存为PAGE_EXECUTE_READWRITE rn VirtualProtect((LPVOID)jmp_backAddr, 10, PAGE_EXECUTE_READWRITE, &dwOldProtect); rn VirtualProtect((LPVOID)OldFuncAddr, 5, PAGE_EXECUTE_READWRITE, &dwOldProtect); rn //计算跳转地址 rn *((ULONG*)(hook_code+1)) = (ULONG)MyFuncAddr - (ULONG)OldFuncAddr - 5; rn memcpy(orig_code,(BYTE *)OldFuncAddr, 5); rn memcpy((BYTE*)OldFuncAddr, hook_code, 5); rn //计算返回地址 rn *((ULONG*)(jmp_org_code+1)) = (ULONG)OldFuncAddr - (ULONG)jmp_backAddr - 5; rn memcpy((BYTE *)jmp_backAddr, orig_code, 5); rn memcpy((BYTE *)jmp_backAddr + 5, jmp_org_code, 5);rn rn__declspec(naked) int jmp_back()rn rn __asm rn rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn _emit 0x90 rn rn rn //MyMessageBoxA:在函数执行前进行自己的处理rn__declspec(naked) int MyMessageBoxA( rn HWND hWnd, // handle to owner window rn LPCTSTR lpText, // text in message box rn LPCTSTR lpCaption, // message box title rn UINT uType // message box style rn ) rn rn printf("MyMessageBoxA is called\r\n"); rn __asm rn rn pop head rn pop hWnd rn pop lpText rn pop lpCaption rn pop uType rn rn MyFunc();rn ////可以加入函数过程 rn __asm rn rn //压栈过程 rn push uType rn push lpCaption rn push lpText rn push hWnd rn push head rn //跳回MessageBoxA入口点 rn jmp jmp_back; rn ret; rn rn rn //MyMessageBoxA:在函数执行后进行自己的处理rn__declspec(naked) int MyMessageBoxAA( rn HWND hWnd, // handle to owner window rn LPCTSTR lpText, // text in message box rn LPCTSTR lpCaption, // message box title rn UINT uType // message box style rn ) rn rn printf("MyMessageBoxAA is called\r\n"); rn __asm rn rn pop head rn push offset s1;//返回地址为S1: rn //跳回MessageBoxA入口点 rn jmp jmp_back; rn s1: nop rn rn MyFunc(); rn __asm rn rn ;//将原返回地址压栈 rn mov eax, 0;rn ////演示:将返回结果改为0,也可由MyFunc返回 rn push head rn ret; rn rn rnint MyFunc()rn rn printf("Hello World\r\n"); rn return 1; 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]
求各位大神帮忙
[img=https://img-bbs.csdn.net/upload/201708/25/1503642933_277173.png][/img]rn请问各位大神我在使用xshell时经常出现如图的情况是怎么回事?
求各位大神。帮忙
#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() <<"/t矩形的周长:"<Peri()<< 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(138): error C2365: “Triangle::center”: 重定义;以前的定义是“数据成员”rn1> 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> 转换丢失限定符
各位大神,求帮忙????
小弟求一个将从数据库查询出来的数据集合导出到execl的代码,希望在点击弹出时有下载框提示。谢谢各位了。。。
求各位大神帮忙...
求各位大神帮忙...小弟要考试了,这个题还请大神的帮忙解答,多谢rn[code=text]rn读下面的程序回答问题:rn MOV AL,10rn MOV BL,ALrn SHL BL,1rn MOV CL,ALrn XOR AX,AXrn AGAIN:ADD AL,BLrn ADC AH,0rn DEC CLrn JNZ AGAINrn HLTrn[/code]rn问:rn(1)、改程序完成的功能是什么?rn(2)、(AX)= H?rnrn[code=text]rn22、源程序如下:rn MOV AX,8000Hrn NOT AXrn SUB AX,0FFFFHrn ADD AX,8000Hrn SUB AX,1rn AND AX,3A6BHrn ROR AX,1rn rn[/code]rn 问:j 程序执行完后,AX寄存器的内容是什么?(6分)rn k 程序执行完后,CF的内容是什么?(6分)rnrn下面这道题有点太难了,大神们能回答就回答,太麻烦各位就算了...rnrn设计有8K×4芯片组成16K×8的随机存储器,要求:rn(1) 画出连接图,包括地址线、数据线、 、 、译码电路等。rn(2) 求出每个芯片的地址范围rnrnrn非常感谢各位看帖....rn
crc-16 求大神帮忙解答
求大神帮忙计算 31323334353637383930535230314C303103 怎样算出等于1F81 的???试了各种都算得不对[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/001/face/9.gif][/img]
数据库问题,求大神帮忙解答
取出表A中第31到第40记录(SQLServer,以自动增长的ID作为主键,注意:ID可能不是连续的。rnrnselect top 10 * from T_number where id >(select max(id) from (select top 30 id from T_number)as T_number ) 为什么我取到的max(id)值是全表中最大的不是前30条最大的
帮忙解答一下,谢谢各位了。
.n个节点,k条边,非连同无向性图,是一个森林(n>k),则必有几棵树rna).krnb).nrnc).n-krnd).n+krnrn.将2个长度为n的递增有序表,归并成一个长度为2n的有序了标,最少需要,进行关键字比较多少次rna).1rnb).nrnc).n-1rnd).2nrnrn编程题:rn1 写插入函数void insert(char* s,char* t,int pos) 功能:将字符串在s的pos位置插入(不用标准库函数)rnrn2 写一个程序如果输入一个数n为偶数,则调用函数求1/2+1/4+...1/n;如果输入的为奇数,则调用函数求1/3+1/5+...+1/n(要求利用函数指针做)
各位请帮忙解答一下!
各位大哥:rn 小弟想问两个问题,单位生产线上的设备,电脑用的是windows xp系统,为了不使工人误操作,想把界面上的开始菜单屏蔽掉,只留一个设备用的操作程序,不知道该怎么屏蔽掉开始菜单啊?rn 还有一个就是想把dll文件的版本号提出,(因为设备上的dll文件总是会更新,有时不知道是什么版本的)然后在标题栏中显示,用的是vc++,不知道该怎么操作啊?rn 谢谢了,请帮忙解答一下,急!!
各位大神,帮忙回答一下
我刚刚装了VS2010,选择的是C++的环境设置,但是C#我也有用到,请问我能不能再C++的环境下开发C#,或者在C#的环境下从事C++,如果可以的话会不会有什么影响?如果每次打开重新选择环境的话感觉太麻烦了,网那位大神帮忙解答下,本人感激不尽!
求各位高手解答一下??
把flash文件传到数据库中,怎样才能将它显示出来呢??
求各位大神解决一下
public class ys25 rn String name;rn int age;rn String sex;rn int score1;rn int score2;rn public void show(String name,int age,String sex,int score1,int score2)rn System.out.println(name+"\t"+age+"\t"+sex+"\t"+score1+"\t"+score2+"\t");rn rn public static void main(String[] args) rn int n=0;rn System.out.println("姓名"+"\t"+"年龄"+"\t"+"性别"+"\t"+"C语言"+"\t"+"Java");rn new ys25().show("赵某",20,"男",70,80);rn new ys25().show("钱某",21,"男",59,60);rn new ys25().show("孙某",19,"女",42,53);rn new ys25().show("李某",21,"女",42,53);rn new ys25().show("周某",21,"男",78,36);rn new ys25().show("吴某",19,"男",56,46);rn System.out.println();rn for(int i=0;i<5;i++)rn if(new ys25().score1<60)rn rn n++;rn rn rn System.out.println("c语言补考的人数有"+n+"人");rn rnrnrn为什么输出的补考人数5啊,怎么改到正确的?
求大家帮忙解答一下
如何删除数据库中起始日期与截止日期之差大于四天的记录啊,还有就是sql语句中where后的条件字段的值是数组中的值怎么写?谢谢大家了
求大神帮忙教一下
我学的不是asp方面的 因为公司要求 做了这方面的网页 因为图片上传不了 我口头讲一下rnrn就是要做一个查询功能的网页 在html两个输入框 输入信息 可以用数据库查询语句查询... 但是我只会谢 2个都输入信息的语句 不会写1个输入 1个不输入的这种 求大神帮帮忙 指导下
求大神帮忙调试一下
贴代码, [code=c]#ifndef QUEUETP_Hrn#define QUEUETP_Hrnrntemplate< class Item >rnclass QueueTPrnrnprivate:rn enum Q_SIZE = 10 ;rn class Nodern rn public:rn Item item;rn Node *next;rn Node( const Item & i ) : item(i), next(0) rn ;rn Node * front;rn Node *rear;rn int items;rn const int qsize;rn QueueTP( const QueueTP & q ): qsize(0) rn QueueTP & operator=( const QueueTP & q ) return *this; rnrnpublic:rn QueueTP(int qs = Q_SIZE);rn ~QueueTP();rn bool isempty() constrn rn return items==0;rn rn bool isfull() constrn rn return items== qsize;rn rnrn int queuecount() constrn rn return items;rn rnrn bool enqueue(const Item &item);rn bool dequeue(Item & item);rn;rnrntemplate rnQueueTP::QueueTP(int qs): qsize(qs)rnrn front = rear = 0;rn items=0;rnrnrntemplaternQueueTP::~QueueTP()rnrn Node * temp;rn while( front != 0 )rn rn temp=front;rn front = front->next;rn delete temp;rn rnrnrntemplate rnbool QueueTP:: enqueue( const Item & item )rnrn if(isfull())rn return false;rn Node *add = new Node(item);rn items++;rn if(front == 0 )rn front = add;rn elsern rear->next =add;rn rear=add;rn return true;rnrntemplate < class Item>rnbool QueueTP::dequeue(Item & item)rnrn if(front == 0 )rn return false;rn item = front->item;rn item--;rn Node * temp = front;rn front = front->next;rn delete temp;rn if(items == 0 )rn rear = 0;rn return true;rnrn#endif[/code],rnrn[code=c]#include rn#include rn#include "queuetp.h"rnrnint main()rnrn using std::string;rn using std::cin;rn using std::cout;rnrn QueueTP cs(5);rn string temp;rnrn while(!cs.isfull())rn rn cout<<"Please enter your name. You will be "rn "served in the order of arrival. \n "rn "name: ";rn getline(cin, temp);rn cs.enqueue(temp);rn rnrn cout<<"The queue is full.Processing begins! \n";rnrn while(!cs.isempty())rn rn cs.dequeue(temp);rn cout<<"Now processing "<
求大神帮忙解决一下
[img=https://img-bbs.csdn.net/upload/201408/28/1409228843_418446.png][/img]rn请问这个是什么原因出现的提示:如何让它取消掉?求大神解决,
麻烦各位帮忙解答一下,谢谢各位了
设计一个实体类Student,属性包括:sid(学号),name(姓名),sex(性别),age(年龄),sclass(班级),一个方法可以返回”欢迎来到程序世界!”n n在上题的基础上添加构造方法可以在实例化的时候给所有的字段附上初始值。
求各位大侠帮忙解答
我用discuz配置了一个论坛,但是这个东西要上交给老师去运行,我要怎么样才能保证老师的运行?因为我发现一旦我脱离自己的电脑,我想到的就只有重新配置环境,再重新安装discuz。可是这样我那个网站的东西都无法存在了,相当于全部都没有了。怎么办?
求各位大神帮忙看看
Assembly asm = Assembly.LoadFrom(Config.DEFAULT_MODEL_LIB_PATH); List types = [color=#FF0000]asm.GetTypes()rn .Where(type => type.GetInterfaces().Any(i => i.Name == "IModel")[/color] && type.IsClassrn && type.IsVisiblern && !type.IsAbstractrn && !type.IsNotPublic).ToList();
求各位大神帮忙搞定
BaseID SiteID Date_Time Base rn366018 1003 2012-01-10 12:58:39.000 09C2rn366018 1003 2012-01-10 12:58:53.000 09C2rn366018 1004 2012-01-10 12:59:06.000 rn16100103EC80350000000[color=#FF0000]9C2[/color]0000000000000000000000000002000000030002001A000[color=#FF0000]2BD[/color]0001000000000000010101000025C3000C0305040E191003rn366018 1002 2012-01-10 12:59:19.000 09C2rn366018 1002 2012-01-10 12:59:32.000 09C2rn366018 1004 2012-01-10 12:59:45.000 16100103EC80350000000[color=#FF0000]9C2[/color]0000000000000000000000000002000000030002001C000[color=#FF0000]2ED[/color]0001000000000000010101000025C3000C0305040E191003rn现有一个名为BaseData的表,表内容如上,其中16100那段很长的字符串是Base列的,现在要将这段很长的字符串中的9C22BD(每个数据都是不一样的)提取出来,然后将其转换成10进制数值,再在前面加上EBEB06存储到另一个表中。求各位大神帮忙搞定啊!rn本人小菜鸟一枚!
matlab代码的问题,请大神帮忙解答一下
matlab环境中n```n [a,b] = find(image>=0.15&image<=1);n B = [a,b];n mean1 = mean(B,1); n meany = mean1(1,1);n meanx = mean1(1,2);nn```n这里的meany和meanX分别是什么n
求各位大神们帮忙
this.EnterType.DataSource = new TblEnter_BaseBLL().GetHqlTblEnter_BaseList(" select tbl.EnterType from TblEnter_Base tbl where tbl.tblEnter_BaseID= '"+this.tblEnter_BaseID1.Text.ToString()+"'");rn this.EnterType.DataTextField="招标单位";rn this.EnterType.DataValueField = "1";rn this.EnterType.DataTextField = "投标单位";rn this.EnterType.DataValueField = "2";rn this.EnterType.DataBind();
请大神帮忙解答一下trustzone
最近有一个选题涉及到trsutzone的安全技术,但是网上关于这方面的资料非常少,好不容易看到一篇博客写的关于这个,结果发现基本要学很多硬件,要学arm,要自己弄开发板。总体对这个了解很少,请大神帮忙讲讲关于trustzone的知识,rn或者帮忙推荐几个好的论坛社区什么的,这04年出来的技术11年了资料才这么点,难道硬件方向都是这样的吗?
哪位大神能帮忙解答一下?
问题:rnvoid SwitchData(void* SourceData,void* TargetData,int size) rnrn unsigned char* src = (unsigned char*) SourceData;rn unsigned char* dest = (unsigned char*) TargetData; rn for (int i = 0; i < size; i++) rn *(dest++) = (*src++) ^ 0xDE; rnrnrn这里代码的意思是数据转化,*(dest++) = (*src++) ^ 0xDE;这句代码的意思是将src和OxDE做与运算么?这里既然是数据转化,但怎么才能给逆向转过来呢?rnrn
请大神帮忙解答一下,小白
[img=https://img-bbs.csdn.net/upload/201712/24/1514083448_919100.png][/img]问题一:为什么这个代码第11和第12行会报错(错误描述:案例重复),而第9和第10行没问题rn问题二:为什么这里只能用"|"不能用"||",否则也会报错rnps:如果把第11和12行中的某个数字改成大于50的数,则这两行代码不报错[img=https://img-bbs.csdn.net/upload/201712/24/151408
打印图形,求各位大神帮忙
1n 2 1 2n 3 2 1 2 3n 4 3 2 1 2 3 4n 5 4 3 2 1 2 3 4 5n6 5 4 3 2 1 2 3 4 5 6
求各位大神帮忙(java)
我遇到一个问题,就是:rn下拉框里共有10个元素,第一个下拉框选中其中一个元素 ,第二个下拉框就会剔除掉这个元素,也就是只有9个元素,依次类推rn请问大神,我js或者jquery该怎么写,跪求了rnrn还有就是点击一个按钮自动创建一个select下拉
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法