求帮助,电脑出现的小问题 [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
电脑出现了一点小问题
我<em>电脑</em>的键盘乱了,按下去的键和上面显示的不一样,比如说我按的是K显示出来的确实T,那位知道是什么原因。在线等,这帖子都是用同事机子发的。
小问题帮助
[img=https://img-bbs.csdn.net/upload/201505/11/1431333016_361995.png][/img]rn如上图,最近用QT打开项目以后,所有的文件图标上都有个蓝色的问号,不知道是什么原因,也不影响使用,就是看着不舒服,在网上也没有找到原因,不知道有没有人和我一样遇到过这种情况的
连接数据库的小问题。求帮助。。
前台代码↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓rnrnrnrnrnrn 无标题页rn rnrnrn rn rn rn rn 用户名rn 密码 rn rn rn rn rn rnrnrnrnrn后台代码。。。rnrnImports System.Data.SqlClientrnImports System.DatarnPartial Class _Defaultrn Inherits System.Web.UI.Pagernrn Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)rn '创建数据库连接↓rn Dim conn As SqlConnectionrn Dim comd As SqlCommandrn Dim datar As SqlDataReaderrn conn = New SqlConnection("Server=local;user id=sa;pwd=123321;database=liu")rn comd = New SqlCommand("Select * form 用户 where 用户名='" & username.text & "' and 密码='" & userpass.text & "'", conn)rn conn.Open()rn datar = comd.ExecuteReader()rnrn If datar.Read() Thenrn Session("curruser") = datar("code").ToString()rn Session("dispuser") = datar("useridspname").ToString()rn Session("logintime") = New()rn Response.Redirect("index.aspx")rn Elsern Label1.text = "对不起密码或名称错误~!"rn End Ifrnrn End SubrnrnEnd Classrn提示的是未声明username 和未声明userpass 还有未声明 label1...之类的。。还求解释下rnrnrnIf datar.Read() Thenrn Session("curruser") = datar("code").ToString()rn Session("dispuser") = datar("useridspname").ToString()rn Session("logintime") = New()rn Response.Redirect("index.aspx")rn这段代码意思~~~谢谢了~~!!
小问题!求帮助
HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSPrn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:97)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:346)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnUnable to find a javac compiler;rncom.sun.tools.javac.Main is not on the classpath.rnPerhaps JAVA_HOME does not point to the JDKrn org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:106)rn org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)rn org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)rn org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn----------------------------------------------rn我的path=C:\Program Files\Java\jdk1.5.0_04\bin;C:\Program Files\Microsoft SQL Server\80\Tools\BINNrn classpath=.;C:\Program Files\Java\jdk1.5.0_04\lib\tools.jar;C:\Program Files\Java\jdk1.5.0_04\lib\dt.jarrn 我能运行和编译helloword文件!rn 但运行JSP文件就<em>出现</em>上面这个问题!!rn  这个jsp文件是朋友做好了的!我只是配置出来看能不能运行!web.xml也应该没的问题!!不怎么怎么起的!!求<em>帮助</em>!!谢谢
小问题,关于继承,求帮助
要求rn1. 如下是已有的一个复数类,x,y分别代表实部和虚部。该类只支持加法(add)和乘法(multiply)计算,要求创建一个MyComplexNumber类,扩充该类的功能如下:rn 增加求虚数的模(magnitude)的功能rn 复数的减法(minus)计算rn 原来的toString方法得到的复数表示是3.5,12.81的形式,要求在新的类里面修改为3.5+12.81i的形式。rn2. 使用MyComplexNumber(注意,不是ComplexNumber)类完成几个复数的不同计算,并在屏幕输出结果。rnrnclass ComplexNumber rn public double x, y;rn public ComplexNumber(double real, double imaginary) rn this.x = real;rn this.y = imaginary;rn rn rn public String toString() return "" + x + "," + y + ""; rn rn public void add(ComplexNumber a) rn this.x=this.x+a.x;rn this.y=this.y+a.y;rn rn rn public void multiply(ComplexNumber a) rn x=x*a.x - y*a.y;rn y=x*a.y + y*a.x;rn rnrn1. 设计提示rnMyComplexNumber继承ComplexNumber类,并追加两个方法minus和magnitude方法即可。另外,需要覆盖toString方法,生成a+bi的复数表示字符串。rn2. 编写程序代码rnpublic double magnitude();//求模定义 rnpublic MyComplexNumber minus(MyComplexNumber a) ;//减法定义rnrnrn我尝试了下rnpublic class ComplexNumber rn public double x, y;rnrn public ComplexNumber(double real, double imaginary) rn this.x = real;rn this.y = imaginary;rn rnrn public String toString() rn return "" + x + "," + y + "";rn rnrn public void add(ComplexNumber a) rn this.x = this.x + a.x;rn this.y = this.y + a.y;rn rnrn public void multiply(ComplexNumber a) rn double m;rn m = x;rn x = x * a.x - y * a.y;rn y = m * a.y + y * a.x;rn rnrnrnpublic class MyComplexNumber extends ComplexNumber rn public MyComplexNumber (double real, double imaginary) rn super(real,imaginary);rn rn public void minus(ComplexNumber a) rn this.x=this.x-a.x;rn this.y=this.y-a.y;rn rn public void magnitude(ComplexNumber a) rn double m = Math.sqrt(a.x*a.x+a.y*a.y);rn System.out.println("magnitude is:"+ m);rn rn public String toString() return x + "+" + y + "i"; rnrnrnrnrnpublic class calaculate rnpublic static void main(String[] args) rn double x1=1.0;rn double y1=2.0;rn double x2=3;rn double y2=2;rn MyComplexNumber num1=new MyComplexNumber(x1,y1);rn MyComplexNumber num2=new MyComplexNumber(x2,y2);rn rn num1.toString();rn rnrn rnrnrnrn最后一个没写完,但是tostring没有输出,一直搞不明白,请哪位帮忙解释一下,先谢了
编程小问题求解,求帮助!!
内容如图![图片](https://img-ask.csdn.net/upload/201705/31/1496190762_11098.jpg)
jsp登录小问题,求帮助
![图片说明](https://img-ask.csdn.net/upload/201507/30/1438265711_716771.png)n我弄了半天,用户名和密码都是“a”但是每次都转到“fail.jsp”
求大侠帮助,一个小问题
rn rnrnrnrnrn rn rnrnrnrn错误 2 类、结构或接口成员声明中的标记“void”无效 rnrn红色字体的部分,很诧异,这个也能出问题?头一次,VOID怎么能无效呢?求解释,谢谢大家了。rn
遇到一点小问题帮助
怎么样把 int[] usersId 数组里面的值 全部插入PostLevel 这张表中rnrn新手头大rnrn[code=C#]rn//往岗位等级表中添加新员工IDrn public static int AddUsers() rnrn int[] usersId = GetUsersNo();//得到新增的员工IDrnrn string strSql = "insert PostLevel (usersID )values(@usersID)";rnrn int result = 0; //定义变量rnrn tryrn rn SqlParameter[] parameters = new SqlParameter[]rn rn new SqlParameter("@UsersID",usersId[0])rn rn ;rnrn object obj = DBHelper.ExecuteCommand(strSql, parameters);rnrn //如果执行的结果不为空,则强转为int类型rn if (obj != null)rn rn result = Convert.ToInt32(obj);rn rn rn catch (Exception e)rn rn HcLog.Log.Write(e); //异常写入到错误日志中rn rn return result;rn rn rn [/code]rnrnrn
一个小问题、新手求帮助
private void setNewFont() rn // Determine a font stylern int fontStyle = Font.PLAIN;rn fontStyle += (jchkBold.isSelected() ? Font.BOLD : Font.PLAIN);rn fontStyle += (jchkItalic.isSelected() ? Font.ITALIC : Font.PLAIN);rnrn Font font = messagePanel.getFont();rn messagePanel.setFont(rn new Font(font.getName(), fontStyle, font.getSize()));rn rn这个程序中的rnfontStyle += (jchkBold.isSelected() ? Font.BOLD : Font.PLAIN);rnfontStyle += (jchkItalic.isSelected() ? Font.ITALIC : Font.PLAIN);rn这两句为什么要用+=而不是=?
小问题 新手不会 求帮助
1、php怎么给button传值(我有一个table他是从数据库的出来的值,每行后面有个修改button按钮,当我点击button按钮时候怎么传值,找到我要处理修改的方法,即控制器里面的方法)。rn 2、cakephp怎么操作多表(主外键关系)增加,修改,删除,查询。rn 我是新手 希望给一定思路加上源码!!!
调试出现错误,求帮助
int temp1,temp2;rnfor(j=0;j
出现野指针,求大神帮助
以下是我从《c语言入门经典》第五版中敲在<em>电脑</em>上的一段代码:rn#include rn#include rn#define _STDC_WANT_LIB_EXT1_rnrnint main ()rnrn long num1=234567L;rn long num2=345123L;rn long num3=789234L;rn long num4=0L;rn long num5=0L;rn long num6=0L;rn float fnum=0.0f;rn int ival[6]=0;rn FILE *pfile=NULL;rn char *filename ="myfile.txt";rnrn if(fopen(&pfile,filename,"w"))rn rn printf("Failed to open the file.\n");rn exit (1);rn rn setvbuf(pfile,NULL,_IOFBF,BUFSIZ);rn fprintf(pfile,"%6ld%6ld%6ld",num1,num2,num3);rn fclose(pfile);rn if(fopen(&pfile,filename,"r"))rn rn printf("Failed to open the file");rn rn rewind(pfile);rn fscanf(pfile,"%6l%6l%6l",&num4,&num5,&num6);rn printf("%6l%6l%6l",num4,num5,num6);rn rn fclose (pfile);rn putchar (10);rn system ("pause");rn return 0;rnrn编译无错误,但是运行结果如下:rn[img=https://img-bbs.csdn.net/upload/201404/12/1397284574_423027.png][/img]rnrn求大神帮着,为什么会<em>出现</em>这个结果。rn《c语言程序设计》第五版推荐使用GNU编译器,我使用的编译器是visual studio 2010rn rnrn
出现未知问题,求帮助
为什么始终不能输入zi字符,每次到该输入zi字符的时候总是莫名其妙的跳过,明明很简单的代码。。。rn[code=c]#includernint main()rnrn int a,b;rn char zi;rn scanf("%d",&a);rn scanf("%d",&b);rn scanf("%c",&zi);rn printf("%c",zi);rn return 0;rn[/code]
出现ClassNotFoundException异常,求帮助
![图片说明](https://img-ask.csdn.net/upload/201705/09/1494267729_49837.jpg)rn![图片说明](https://img-ask.csdn.net/upload/201705/09/1494267755_817691.jpg)rn![图片说明](https://img-ask.csdn.net/upload/201705/09/1494267787_98789.jpg)rn![图片说明](https://img-ask.csdn.net/upload/201705/09/1494267971_888267.jpg)rn我在用http://localhost:8080/LoginFilter/servlet/LoginServlet登录浏览器时候,页面<em>出现</em>了HTTP Status 500 - Error instantiating servlet class com.imooc.serlvet.LoginServlet对于这个错误,我认真检查了web.xml文件中的,还有HttpServlet继承类,seivce()方法,都没发现原因,求大家<em>帮助</em>!
帮助。求帮助
接收一串字符串,格式像这样的(key=value|key=value||||)key 代表Field的name,value代表set进Object中的值,将他装换成一个Object对象,调用setter方法为其赋值,我用下面的方法调用method.invoke(obj, obj..);测试的时候用的其中一个Bean类Student。Student里面有很多Filed,怎么把value(String)转换invoke方法的第2个参数的类型啊,是像我下面那样一个一个判断吗,还是有别的方法啊。大家帮帮忙=。= 谢谢……^^rnrn[code=java]rnpackage com.ytbysj.util;rnrnimport java.lang.reflect.InvocationTargetException;rnimport java.lang.reflect.Method;rnimport java.util.HashMap;rnimport java.util.Iterator;rnimport java.util.Map;rnimport java.util.StringTokenizer;rnimport java.util.Map.Entry;rnrnimport com.ytbysj.beans.Student;rnimport com.ytbysj.exception.FooException;rnrn/**rn * Message Handler类rn * @author haniyaseyorn *rn */rnpublic class MessageHandler rn rn /**rn * 将message转换成Map对象rn * @param message like:key=value|key=value||||rn * @return 通过message转换成的MAP key=valuern */ rn public static Map messageHandler(String message)rn //如果message=null则抛出异常rn if(message == null) throw new FooException("MessageHandler messageHandler(String message) message=null");rn //简单判断message的格式rn if(message.indexOf("|") == -1) throw new FooException("MessageHandler messageHandler(String message) message do not contains \"|\"");rn if(message.indexOf("=") == -1) throw new FooException("MessageHandler messageHandler(String message) message do not contains \"=\"");rn rn //定义Map对象rn Map map = new HashMap();rn rn //定义StringTokenizer对象 并指定"|"为分隔符rn StringTokenizer stken = new StringTokenizer(message, "|");rn rn /*rn * 循环StringTokenizer中的对象 并复制到Map中rn */rn while (stken.hasMoreTokens()) rn String[] temp = stken.nextToken().split("=");rn map.put(temp[0], temp[1]);rn rn return map;rn rn rn /**rn * 根据给定的message和Class构造一个?对象rn * @param message like:key=value|key=value||||||rn * @param clazz ?的Class对象rn * @return clazz.newInstance()rn */rn public static Object getObject(String message, Class clazz)rn //获取Maprn Map map = messageHandler(message);rn //判断Map是否为空rn if(map.isEmpty()) throw new FooException("MessageHandler getObject(String message, Class clazz) map is empty");rn rn Object obj = null;rn try rn obj = clazz.newInstance();rn Iterator> ite = map.entrySet().iterator();rn while(ite.hasNext())rn Entry entry = ite.next();rn //取出每一个key valuern String item_name = entry.getKey().trim();rn String value = entry.getValue().trim();rn //构造方法名rn String methodName = "set" + String.valueOf(item_name.charAt(0)).toUpperCase() + item_name.substring(1);rn //获取Field的类型rn Class type = clazz.getDeclaredField(item_name).getType();rnSystem.out.println(methodName + "," + value + "," +type.getName());rn //获取Method对象rn Method method = clazz.getDeclaredMethod(methodName, type);rn rn //判断Field类型rn if(type == value.getClass())rn method.invoke(obj, value);rn else if(type == int.class)rn method.invoke(obj, Integer.parseInt(value));rn //..如果在这里接着判断有很多不方便的地方-。-rn rn catch (InstantiationException e) rn e.printStackTrace();rn catch (IllegalAccessException e) rn e.printStackTrace();rn catch (SecurityException e) rn e.printStackTrace();rn catch (NoSuchFieldException e) rn e.printStackTrace();rn catch (NoSuchMethodException e) rn e.printStackTrace();rn catch (IllegalArgumentException e) rn e.printStackTrace();rn catch (InvocationTargetException e) rn e.printStackTrace();rn rn return obj;rn rn rn public static void main(String[] args) rn String message = "student_no=0810024103|password= |username=叶婷|sex=男" +rn "|moblie=12296736137|native_place=重庆|college= |tie=软件工程|stuclass=09级2班|limits=3";rn System.out.println(getObject(message,Student.class));rn rnrn[/code]
帮助!!!求帮助!!!
小弟用的是BCB 6.0,最近要开发SFTP,不知道有没 sftp的控件。小弟刚用bcb.忘大家说的详细点。谢谢!!rn
小问题!!帮助!!
我是初学java的 写了个小程序 编译也通过了 没有错误 不过就是不显示结果不rn知是为什么 我的程序如下:rnpublic class Abcrn int i=o; rnvoid ste()rn while(i==47)rn System.out.println(i++);rn i+=1;rn rn rnpulic static woid main (String[] args)rn Abc t=new Abc();rn t.ste()rnrnrn不知是为什么 不显示1 2 3等 请指点
小问题!!帮助!!!
我刚学java 地一次用jdk1.3 在写字板写了个小程序取名abc.java放在bin下rnrn可是我在 javac abc.java出视rneorro:canno read abc.javarn不只是什么原因
电脑小问题
我的<em>电脑</em>配置是:rnrnCPU 类型 Intel Celeron-S, 1200 MHz (12 x 100)rnCPU 别名 Tualatin, A80530rnCPU 分级 tA1rn原始时钟 1200 MHzrnL1 代码缓存 16 KBrnL1 数据缓存 16 KBrnL2 缓存 256 KB (On-Die, ATC, Full-Speed)rnrnrnrn主板: rn前端总线属性 rn总线类型 Intel GTL+rn总线宽度 64 位rn真实时钟 100 MHzrn有效时钟 100 MHzrn带宽 800 MB/秒rn rn芯片组总线属性 rn总线类型 Intel Hub Interfacern总线宽度 8 位rnrn是顶新的牌子rnrnrnrn现在的内存是128M的rnrn那么,我可以加到256M或者512M的内存吗??rnrnrn因为在这之前,给我配置的人说,不能提升内存了,是不是真的?rnrnrn rnrn rnrn
电脑小问题?????
我的<em>电脑</em>开机都要按两次才能进去,第一次进不了?为什么呢????
电脑小问题
突然ipconfig等命令不能用了,说不是内部或外部命令原来是我在配置path的时候把一些东西删除掉了。解决办法:我的<em>电脑</em>右键属性-高级-环境变量-第二个列表中找到path变量,双击,在变量值一栏中最前面加入%SystemRoot%/system32; 确定。
关于GDI+的一个小问题..求帮助!!
我想写一个函数..传递给函数一个HDC,函数会在这个HDC上显示一个JPG图像.rn可是一直出错..rnrn[code=C/C++]#pragma oncernrn#include rn#pragma comment(lib,"Gdiplus.lib")rnrnusing namespace Gdiplus; //命名空间rnrnclass CQQImagernrnpublic:rn CQQImage();rn ~CQQImage();rn static void Show(HDC hdc ); rnrnprivate:rn GdiplusStartupInput m_gdiPlusInPut;rn ULONG_PTR m_gdiPlusToken;rnrn;rnCQQImage::CQQImage()rnrn GdiplusStartup(&m_gdiPlusToken, &m_gdiPlusInPut, NULL );rnrnrnCQQImage::~CQQImage()rnrn GdiplusShutdown(m_gdiPlusToken);rnrnrnvoid CQQImage::Show( HDC hdc )rnrn Graphics Gdi(hdc);rn Image img(L"C:\\1.jpg",true); //这里提示访问异常..但catch不到这个异常..rnrn Gdi.DrawImage(&img,0,0,img.GetWidth(),img.GetHeight());rnrn[/code]rnrnrn然后再一个对话框程序里.传递给show()一个HDC,在img那里就会异常..求高手<em>帮助</em>!!!
sql语句的一点小问题,求帮助
[img=https://img-bbs.csdn.net/upload/201609/25/1474794177_349967.jpg][/img]rn当表A和表B的配方id,原料id相同时,用A的ratio减去B的ratio,即得到后面那个图的结果rnSQL语句应该怎么写?
每行输出十个元素的小问题、、、求帮助、、、
一个每行输出十个元素的小程序,弄成这样弄不出来了,老是输出他的ASCII码,还有怎么可以不规定数组大小?想输入好多就打好多。rn#includern#define N 100rnvoid main()rnint a[N],i,c;rnif ((c=getchar())!=EOF)rn for (i=0;i
遇到一个小问题帮助
我做了一个分页显示数据,做了几个条件查询。rn其他的条件查询也都可以正常显示,唯独名称的条件查询在页面上无法显示。rndebug时看总的条数以及数据都是对的。但是就是在页面上无法显示,全部变成空白的了。这是为什么呀!!rn没有报错。。。rn我在想是不是我做的级联查询有问题。。。rnCriteria c = getSession().createCriteria(Product.class);rnc=c.createAlias("user", "user").add(Restrictions.eq("user.name", name));rn求大神解惑
一个紧急的小问题求高手帮助
我在vb的窗体中设置了一张位图 就是(picture属性)我现在想取消这一属性的设定 还原到无位图状态 可是不行,请问各位高手 该如何做?
xp简单的小问题,求帮助,高分相赠
当我的图片采用缩略图显示的时候为什么图片至显示图标,不显示预览,我的操作系统是xp
一个小问题求大家帮助-------在线等.
我定意了一个 DropDownListrnrn 1rn 2rnrn想用onchange 调用服务器的ddl1(),这样写出错.求大家<em>帮助</em>.rnrn
关于Java的一个小问题帮助
public void caretUpdate(CaretEvent e) rn if(e.getSource()==tname)rn if(tname.getText().length()>6)rn sname=tname.getText();rn tname.setText(sname.substring(0, 5));//当文本长度大于6时 运行到此处时为什么有异常?rn rn rn if(e.getSource()==tphone)rn if(tphone.getText().length()>14)rn tphone.setText(tphone.getText().substring(0,14));rn rn rn rn if(e.getSource()==tqq)rn if(tqq.getText().length()>10)rn tqq.setText(tqq.getText().substring(0, 10));rn rn rn if(e.getSource()==temall)rn if(temall.getText().length()>20)rn temall.setText(temall.getText().substring(0, 20));rn rn rn if(e.getSource()==taddress)rn if(taddress.getText().length()>20)rn taddress.setText(taddress.getText().substring(0, 20));rn rn rn if(e.getSource()==tremark)rn if(tremark.getText().length()>100)rn tremark.setText(temall.getText().substring(0, 100));rn rn
求各大高手前来帮助!~~~~!!!~~小问题
[code=C#]rn/// rnrn /// 是否存在该记录 rnrn /// rnrn public bool Exists(int SID) rnrn rnrn StringBuilder strSql = new StringBuilder(); rnrn strSql.Append("select count(1) from PJ_Project"); rnrn strSql.Append(" where SID=@SID "); rnrn rnrn SqlParameter[] parameters = rnrn new SqlParameter("@SID", SqlDbType.Int,4); rnrn parameters[0].Value = SID; rnrn rnrn [color=#FF0000]return ... //这里应该返回一个什么才不会报错啊???[/color] rnrnrnrn[/code]
帮助,热心帮助,初学者的小问题
怎么区分模块,
bom计算有点小问题,求帮助
结果应该是:rn[img=https://img-bbs.csdn.net/upload/201703/30/1490857927_968689.png][/img]rnrn代码:rnrn[code=sql]use TempdbrnGOrnSET NOCOUNT ON;rn rn rnif not object_id(N'Tempdb..#XSDD') is nullrn drop table #XSDDrnGornCreate table #XSDD([XSDDID] NVARCHAR(22),[P] nvarchar(22),[DQTY] int)rnInsert #XSDDrnselect N'XS01',N'aa',200 UNION ALLrnSELECT N'XS02',N'bb',100 UNION ALLrnSELECT N'XS03',N'cc',100rnrnGorn rnif not object_id(N'Tempdb..#KC') is nullrn drop table #KCrnGornCreate table #KC([C] nvarchar(22),[CQTY] int)rnInsert #KCrnselect N'aa',0 UNION ALL rnselect N'c',0 UNION ALL rnselect N'b',0 UNION ALL rnselect N'e',0 UNION ALL rnselect N'bb',0 UNION ALL rnselect N'd',0 UNION ALL rnselect N'a1',250rnGornif not object_id(N'Tempdb..#BOM') is nullrn drop table #BOMrnGornCreate table #BOM([Nr] nvarchar(22),[P] nvarchar(22),[C] nvarchar(22),[qty] decimal(18,3))rnInsert #BOMrnselect N'01',N'aa',N'b',1.000 union ALLrnselect N'01',N'aa',N'a1',1.000 UNION allrnselect N'01',N'b',N'c',1.000 union allrnselect N'01',N'bb',N'd',1.000 union allrnselect N'01',N'd',N'c',1.000 union allrnselect N'01',N'cc',N'e',1.000 union ALLrnselect N'02',N'cc',N'a1',1.000 union allrnselect N'01',N'e',N'c',1.000 rnGOrnrnIF OBJECT_ID('Tempdb..#KC2') IS NOT NULLrn DROP TABLE #KC2;rnSELECT * ,rn [CQTY2] = CAST([CQTY] AS DECIMAL(18, 3))rnINTO #KC2rnFROM #KC;rnSET NOCOUNT OFF;rnDECLARE @i INT= 0 ,rn @j INT= 0;rnIF OBJECT_ID('Tempdb..#1') IS NOT NULLrn DROP TABLE #1;rnSELECT a.XSDDID ,rn [Nr] = CAST(RIGHT(100 + ROW_NUMBER() OVER ( ORDER BY a.[P] ), 2) AS VARCHAR(50)) ,rn lev = 0 ,rn PID = a.[P] ,rn a.[P] ,rn a.[P] AS C ,rn a.[DQTY] ,rn [CQTY] = ISNULL(b.[CQTY], 0) ,rn CAST(a.[DQTY] - ISNULL(b.[CQTY], 0) AS DECIMAL(18, 3)) AS DiffQty ,rn BOMQty = CAST(0 AS DECIMAL(18, 3))rnINTO #1rnFROM #XSDD AS arn LEFT JOIN #KC AS b ON a.[P] = b.C;rnSET @j = @@ROWCOUNT;rnUPDATE arnSET [CQTY2] = a.[CQTY2] - b.[CQTY]rnFROM #KC2 AS arn INNER JOIN ( SELECT C ,rn SUM([CQTY]) AS [CQTY]rn FROM #1rn GROUP BY Crn ) AS b ON a.C = b.C;rnrn rnWHILE @j > 0rn BEGINrn rn SET @i = @i + 1;rn WITH Cte1rn AS ( SELECT b.XSDDID ,rn [Nr] = CAST(b.Nr + RIGHT(100rn + ROW_NUMBER() OVER ( PARTITION BY a.[P] ORDER BY a.[P] ),rn 2) AS VARCHAR(50)) ,rn lev = b.lev + 1 ,rn PID = b.PID ,rn a.[P] ,rn a.[C] ,rn [DiffQty] = CAST(b.[DiffQty] * a.[qty] AS DECIMAL(18,rn 3)) ,rn BOMQty = a.qty ,rn RN = ROW_NUMBER() OVER ( PARTITION BY a.[C] ORDER BY a.[Nr] )rn FROM #BOM AS arn INNER JOIN #1 AS b ON b.C = a.Prn WHERE b.lev = @i - 1 --AND b.DiffQty>0rn ),rn Cte2rn AS ( SELECT * ,rn sumDiffQty = ( SELECT SUM([DiffQty])rn FROM Cte1rn WHERE [C] = a.[C]rn AND RN < ISNULL(c.[CQTY2],rn 0) + a.[DiffQty]rn THEN ISNULL(c.[CQTY2], 0)rn - ( a.sumDiffQty - a.[DiffQty] )rn ELSE 0rn END ,rn DiffQty = a.[DiffQty]rn - CASE WHEN a.sumDiffQty < ISNULL(c.[CQTY2], 0)rn + a.[DiffQty]rn THEN ISNULL(c.[CQTY2], 0) - ( a.sumDiffQtyrn - a.[DiffQty] )rn ELSE 0rn END ,rn a.BOMQtyrn FROM Cte2 AS arn LEFT JOIN #KC2 AS c ON c.C = a.C; rn SET @j = @@ROWCOUNT;rnrn UPDATE arn SET [CQTY2] = a.[CQTY2] - b.[DQTY]rn FROM #KC2 AS arn INNER JOIN ( SELECT C ,rn SUM(CQTY) AS [DQTY]rn FROM #1rn WHERE lev = @irn GROUP BY Crn ) AS b ON a.C = b.C;rn END;rn--过滤中间件rnSELECT a.XSDDID ,rn Nr ,rn lev ,rn PID ,rn P ,rn a.C ,rn a.BOMQty ,rn DQTY ,rn CQTY ,rn DiffQty ,rn a.CQTY AS 库存 ,rn a.DiffQty AS 需求rnFROM #1 AS arn OUTER APPLY ( SELECT TOP 1rn Crn FROM #BOMrn WHERE P = a.Crn ) AS crnWHERE DiffQty < DQTYrn OR a.lev = 0rn OR NOT EXISTS ( SELECT 1rn FROM #1rn WHERE P = a.Crn AND PID = a.PIDrn AND lev = a.lev + 1 )rnORDER BY a.Nr;rn/*rn--全件rnSELECT a.XSDDID ,rn Nr ,rn lev ,rn PID ,rn P ,rn a.C ,rn a.BOMQty ,rn DQTY ,rn CQTY ,rn DiffQty ,rn a.CQTY AS 库存 ,rn a.DiffQty AS 需求rnFROM #1 AS arnORDER BY a.Nr;rn*/[/code]
非阻塞套接字的几个小问题,求帮助
我学习网络变成有段时间了,但是有些问题还是没搞懂过。rn在非阻赛套接字中:rn第一:用setsockopt设置发送超时的作用是什么 ?rn第二:用setsockopt设置接收超时的作用是什么?rn第三:用select设置连接超时的作用是什么?rn求大老们帮忙解惑。希望能讲详细点 。小弟在这里谢过 。rn
C语言字符串小问题....求帮助
/*去除一个字符串中的多余空格(多个空格变成一个空格)rn*例如,输入"it's is a good day,rig ht?"rn*则输出,"it's is a good day,rig ht?"rn*但我运行时总是<em>出现</em>问题,就停止工作了。不知道是什么原因,求解释....谢谢!rn*/rnrn#includernrnvoid deblank(char string[] )rnrn char flag_blank = 0; rn int j = 0;rnrn for(int i = 0; string[i] != '\n'; i++)rn rn if(string[i] == ' ') rn rn if(flag_blank == 0)rn rn string[j++] = ' ';rn flag_blank = 1;rn rn rn elsern rn string[j++] = string[i++];rn flag_blank = 0;rn rn rn rn string[j] = '\n';rnrnrnvoid main(void)rnrn char txt[] = "it's is a good day,rig ht?";rn rn deblank(txt);rn puts(txt);rn
新手小问题 得分容易 求帮助
CControlBar::SetBordersrn rnvoid SetBorder( int cxLeft, int cyTop, int cxRight, int cyBottom );rnvoid SetBorder( LPCRECT lpRect );rn rn参数: cxLeft 控件条左边界的宽度(以像素为单位)。 rncyTop 控件条上边界的高度。 rncxRight 控件条右边界的宽度。 rncyBottom 控件条下边界的高度。 rnlpRect CRect对象的指针。该对象中记录了控件条对象每边的宽度(以像素为单位)。 rn rn说明:rn本函数用于设置控件条边界的大小。例如,下面的例子把控件条的上边框和下边框分别设为5个像素点,把左边框和右边框设为2个像素点。rnm_myControlBar.SetBorders(2, 5, 2, 5);rn rn关于这一段代码我想提两个<em>小问题</em>:rn1.setborder这个函数的参数是以像素为单位,那么一个像素到底是多大呢?如果说单位是厘米,那我心中有一个概念可以很好的设置这些参数的宽度和高度,但是像素完全没有概念,如下面例子的使用2个像素点到底是多大? 这些是不是只能在我们编程的过程当中自己去试?rn2.我一直搞不懂,这个控件上面界的高度到底指的是什么高度,控件条的高度?还是控件条到窗口的高度?如例子,我的CYTOP为2,也就是控件条上面界的高度为2个像素。这个高度到底是什么样的一个概念。 谢谢!
qt 信号与槽的小问题,求解!求帮助
两个类,一个定义信号,一个接收,接收信号的类中对信号所在的类进行了实例化(类 *p);为啥信号发出去了,但是槽那边接收不到呢;rnrnrn代码: rn GsysUserDefineCalculate *p_usercalculate;---------这个是对信号所在类的实例化。 void slotCalculateIsOnchanged(int);这个是我的槽函数。 connect(p_usercalculate, SIGNAL(sigCalculateIsOnchanged(int)),this, SLOT(slotCalculateIsOnchanged(int))); 这个是我绑定的信号跟槽。rnrnrn emit sigCalculateIsOnchanged(index);这个信号的发出。rnsignals:rn void sigCalculateIsOnchanged(int index); 这个是我定义的信号;rnrnrn求解------问题出在哪儿啊????
遇到小问题,求修改,求解答,求帮助····
两个BUTTON,第一个BUTTON实现查询出某表的列,并创建出与列数对应的TEXTBOX(这段代码没问题):rn[code=delphi]public void Button1_Click(object sender, EventArgs e)rn rn SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["con"].ConnectionString);rn con.Open();rn SqlCommand cmd = new SqlCommand();rn cmd.Connection = con;rn SqlDataAdapter da = new SqlDataAdapter("select COLUMN_NAME from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME = '" + DropDownList1.Text + "'", con);rn DataTable tb = new DataTable();rn da.Fill(tb);rn con.Close();rn for (int i = 1; i , tb.ToString()));rn SqlCommand cmd = new SqlCommand(sql, con);rn cmd.ExecuteNonQuery();rn rn[/code]rn我断点调试发现panel.findcontrol无法获得动态创建的TEXTBOX,t的值一直为NULL,还有SQL语句构造也有点问题。。。求解答。。。求修改。。。求<em>帮助</em>[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/15.gif][/img]
电脑BIOS进不去了,急求帮助
最近我突然发现<em>电脑</em>的BIOS进不去了,不用说DEL,开机的时候我尝试了几乎所有的按键,还是直接启动系统了。rn关键是我没有设置软盘启动或者光盘启动,现在极需重装系统(系统Win98启动极其缓慢,需要4分钟),希望各位大哥提供<em>帮助</em>!rnrn对主要<em>帮助</em>的朋友,给分50以上,帮忙顶的朋友一样送分.
单片机和电脑的通信出问题了。求帮助,谢谢!
我在<em>电脑</em>用VB建了一个界面。单片机是主机,每次上位机收到单片机的数据后,上位机就给它返回一包指令。可是,单片机会把收到的指令原封不动的又返回来。不知是什么原因?
电脑无法开机,求大侠帮助
之前<em>电脑</em>一开机显示:rn因一下文件的损坏或者丢失,windows无法启动rn\system32\ntoskrnl.exern请重新安装以上文件。rnrn我听取一个朋友提到重新插拔内存条,rn重新插拔后开机后没有任何显示了,一直在滴滴的响。rn(附注:2005年台式机)rnrn不知道怎么解决?rn寻求大侠的<em>帮助</em>!rnrn因我只有20分,rn如果问题能解决,分数全部给大侠!
帮助啊求帮助
我在A页面有个控件,它有个方法可以添加标签,同时A页面还有个iframe,现在iframe中有个B页面,如何在Brn页面控制A页面那个控件的方法?谢谢!
帮助,求帮助,急~~~!!!
能帮我改正下面C语言中的错误吗?麻烦了~~rn#include rn#include rn#define null 0rn#define len sizeof(struct ticket)rnstruct ticketrn int num;rn int num1;rn int time;rn struct ticket *next;rn struct station *down;rn rnstruct station /*公共变量声明*/rn int name;rn int time;rn int money;rn int mark;rn struct station *next;rn rnstruct yourn int name;rn int num; rn int num1;rn int time;rn int time1;rn struct you *next;rn rnstruct ticket *in() /*一个返回指针形的函数*/rn struct ticket *head; /*头结点*/rn struct ticket *p1,*p2;rn struct station *s1,*s2;rn int m,n;rn int i;rn p1=p2=(struct ticket *)malloc(len); /*建立横向链表的头结点*/rn scanf("%d",&m); /*输入一共所需的车票信息总数*/rn scanf("%d",&n); /*输入从始发站到终点站共有几站*/rn head=null;rn for(i=0;inext=p1;rn p2=p1;rn p1=(struct ticket )*malloc(len); rn s1=s2=(struct ticket )*malloc(len); /*建立纵向链表的头结点*/rn head1=s1=s2;rn p1->down=s1=s2; /*指向纵向链表的头结点*/rn scanf("%d","%d","%d",&p1->num,&p1->num2, &p1->time); /*输入横向链表的数据*/rn for(i=0;inext=s2;rn s2=s1;rn s1=(struct ticket )*malloc(len); /*建立纵向链表*/rn scanf("%s","%d","%d","%d","%d",s1->name,&s1->time,&s1->money,&s1->seat,&s1->mark); /*输入纵向链表的数据*/rn s1->next=head1; /*纵向链表为循环链表*/rn rn p2->next=null;rn return(head); /*返回头指针*/rn goto first; /*返回头指针*/rn rn rnvoid book() rn struct ticket *p;rn struct station *q;rn int t;rn int *o,*s;rn printf("please enter the number:");rn scanf("%d",&f); /*输入需要的车次*/rn printf("please enter the station:"); rn scanf("%d",&h); /*输入需要到达的车站名*/rn p=t; /*初始化p的值*/rn while(p=!null)rn if(p->number==t)rn q=p->down;rn o=p; /*把符合条件的横向链表结点的数据给o*/rn while(q->next=!head1)rn if(q->name==h)rn if (q->mark=1)rn printf("your ticket is unused");rn elsern q->mark=1; /*修改mark标记*/rn s=q; /*把符合条件的纵向链表的数据给s*/rn rn q=q->next; /*纵向链表移针*/rn rn rnrn p=p->next; /*横向链表移针*/ rn rn printf("your ticket has already booked!");rn printf("%d","%d","%d",o->num,o->num2, o->time); /*输出横向链表的数据*/rn printf("%s","%d","%d","%d","%d",s->name,&s->time,&s->money,&s->seat,&s->mark); rn /*输出纵向链表的数据*/rn goto first;rn rn rnvoid inquire()rn struct ticket *p;rn struct station *q;rn int t;rn int *o,*s;rn printf("please enter the number:");rn scanf("%d",&f); /*输入需要的车次*/rn printf("please enter the station:"); rn scanf("%d",&h); /*输入需要到达的车站名*/rn p=t; /*初始化p的值*/rn while(p=!null)rn if(p->number==t)rn q=p->down;rn o=p; /*把符合条件的横向链表结点的数据给o*/rn while(q->next=!head1)rn if(q->name==h)rn s=q; /*把符合条件的纵向链表的数据给s*/rn rn q=q->next; /*纵向链表移针*/rn rn rn p=p->next; /*横向链表移针*/ rn rn printf("%d","%d","%d",o->num,o->num2, o->time); /*输出横向链表的数据*/rn printf("%s","%d","%d","%d","%d",s->name,&s->time,&s->money,&s->seat,&s->mark); rn /*输出纵向链表的数据*/rn goto first;rn rnrnvoid cancel()rn struct ticket *p;rn struct station *q;rn int t;rn int *o,*s;rn printf("please enter the number:");rn scanf("%d",&f); /*输入需要的车次*/rn printf("please enter the station:");rn scanf("%d",&h); /*输入需要到达的车站名*/rn p=t; /*初始化p的值*/rn while(p=!null)rn if(p->number=t)rn q=p->down;rn o=p; /*把符合条件的横向链表结点的数据给o*/rn while(q->next=!head1)rn if(q->name=h)rn q->mark=0; /*修改mark标记*/rn s=q; /*把符合条件的纵向链表的数据给s*/rn rn q=q->next; /*纵向链表移针*/rn rn rn p=p->next; /*横向链表移针*/rn rn printf("your ticket has already cancel!");rn printf("%d","%d","%d",o->num,o->num2, o->time); /*输出横向链表的数据*/rn printf("%s","%d","%d","%d","%d",s->name,&s->time,&s->money,&s->seat,&s->mark); rn /*输出纵向链表的数据*/rn goto first;rn rnrnvoid you()rn struct you *head;rn struct you *p;rn p=(struct you *)malloc(len);rn scanf("%d",&p->name,&p->num,&p->num1,&p->time,&p->time1);rn goto First;rn rnrnvoid find()rn struct you *head;rn struct you *p;rn int u;rn scanf("%d",&u);rn while(p=!null)rn if(p->num=u)rn s=p;rn rn p=p->next;rn rn printf("%s","%d","%d","%d","%d",p->name,p->num,p->num1,p->time,p->time1);rn rnrnvoid total()rn int *p,*q;rn int n;rn p=t;rn while(p=!null)rn while(q->next=!head1)rn if (mark=1)rn n=n+1;rn rn q=q->next;rn rn p=p->next;rn rn printf("the number of the booked ticket are :");rn printf("%d",n);rn rnrnMain()rn int *t;rn int c;rn First:printf("welcome to our ticket system!\n");rn printf("1.intput the data.\n"); /*按1键输入数据*/rn printf("2.book the ticket.\n"); /*按2键订车票*/rn printf("3.inquire the ticket.\n"); /*按3键查询车票*/rn printf("4.cancel the ticket.\n"); /*按4键退车票*/rn printf("5.input your own data.\n"); /*按5键输入个人信息*/rn scanf("%d",&c);rn switch(c)rn case '1': t=in(); break;rn case '2': book(); break;rn case '3': inquire(); break;rn case '4': cancel(); break;rn case '5': you() ; break;rn default : printf("you enter an error number\n");rn rn rn
帮助帮助
我窗体设计的左边是TREEVIEW 右边是面板...然后在选中TVW中的NODE的时候,每一项代表一个窗体,选中就会把窗体显示在右边的PLANE中...rnrn 怎么样才可以选中TVW另外一项的时候关闭当前正在面板中的窗体啊..rn[img=http://img.my.csdn.net/uploads/201303/26/1364257930_9800.jpg][/img]
JSP小问题,本人电脑小白,求指教。
rnrnrnrnrn rn dologinrnrnrnrnrnrnrnrn请问以上这段代码是否有错,为什么在登陆页面输入用户名和密码点击确定之后会<em>出现</em>404错误?
SQL 分组查询,出现错误,求帮助!!
以下是我编写的代码:rnuse db_mydatarnselect 仓库号,max(工资) as 最大工资,min(工资) as 最小工资,sum(工资) as 工资总和,avg(工资)as 平均工资,rncount(*) as 职工人数 from 职工 group by 仓库号rnrn执行时<em>出现</em>错误:rn消息 102,级别 15,状态 1,第 3 行rn' ' 附近有语法错误。rn这到底是哪里出错误了???!!
帮助,用datalist的DataList_CancelCommand出现的问题
编译出错如下:rn编译器错误信息: CS0122: 不可访问“WebApplication1.WebForm1.DataList_CancelCommand(object, System.Web.UI.WebControls.DataListCommandEventArgs)”,因为它受保护级别限制rnrn源错误:rnrn rnrn行 13: rn行 14: rn行 15: rn行 16: rn行 17: rnrnrn源代码如下:rnvoid DataList_EditCommand(Object sender, DataListCommandEventArgs e) rn rn rn rn void DataList_CancelCommand(Object sender, DataListCommandEventArgs e) rn rn DataList1.EditItemIndex=-1;rn rn rn void DataList_DeleteCommand(Object sender, DataListCommandEventArgs e) rn rn rn void DataList_UpdateCommand(Object sender, DataListCommandEventArgs e) rn rn rn rn
.NET读取mysql数据库出现乱码求帮助
读取代码是这样的rn MySQLConnection DBConn;rn DBConn = new MySQLConnection(new MySQLConnectionString("localhost", "w218art", "root", "root", 3306).AsString);rnrnrn DBConn.Open();rnrnrn // 读取数据rn MySQLDataAdapter adapter = new MySQLDataAdapter("select * from cdb_crons LIMIT 5 ", DBConn);rn DataSet ds = new DataSet();rn adapter.Fill(ds);rnrn string title = "";rn string id = "";rn string ss = "";rn for (int i = 0; i < ds.Tables[0].Rows.Count; i++)rn rn rnrn rnrn //Response.Write(gb.GetString(GBYTES));rn title = ds.Tables[0].Rows[0]["name"].ToString();rnrn ss += " " + title + "";rnrn rn lt.InnerHtml = ss;rn //Response.Write(ds.Tables[0].Rows[0]["name"].ToString());rn DBConn.Close();rn网上很多地方都说的很模糊不知道改那个地方,数据库编码和我页面的编码是一致的参考页面http://youhua.caa.edu.cn/右下角论坛新帖那里,希望大家帮帮忙
帮助!ListView滑动出现删除
就是模仿QQ那种往左滑一下ListView的Item后面<em>出现</em>个删除按钮!
Python快排出现错误求帮助
[code=python]def qsort(a, bgn, end):rn lp=bgnrn rp=endrn key=a[lp]rn if lp >= rp:returnrn while 1:rn while (a[rp]>=key) and (rp>lp):rn rp-=1rn while (a[lp]lp):rn lp+=1rn a[lp], a[rp] = a[rp], a[lp]rn if lp>=rp :breakrn a[bgn], a[lp] = a[lp], a[bgn]rn if bgn
dll调用后出现死锁,求帮助
我的代码连续调用3个dll,rn操作过程,有时正常运行,有时<em>出现</em>死锁,就是不动了.rn代码如下:rnRTX_addnewuser(add_name,RTX_ip);//创建用户rn第一次调用dllrnrnQQpwd = etUserPassword->Text;rnif(QQpwd!="")rn RTX_updatepwd(add_name,QQpwd,RTX_ip);//创建密码rn第二次调用dllrnrnRTX_adduser_to_dept(add_name,RTX_begindept,RTX_enddept,RTX_ip);//用户添加到部门rn第三次调用dllrnrndll的调用如下......rnhandledel=LoadLibrary("RTX_deldept.dll"); //获取dll RTX_deldept的句柄rn if(handledel)rn rn lpFarProcdel = GetProcAddress(handledel,"DelDept"); //通过句柄回去函数DelDept的接口rn rn tryrn rn if(lpFarProcdel)rn rn lpdeldept = (void(_cdecl *)(char *,char *))lpFarProcdel; //指针类型转换rn lpdeldept(del_deptname.c_str(),RTX_ip.c_str());//参数1-删除的部门,2-iprn rn rn __finallyrn rn FreeLibrary(handledel);rn rnrn后面有freelibrary了.rn请问为什么会偶尔<em>出现</em>死锁.rnrn有什么好的方法来解决dll的调用么??rn
出现bug,求大牛帮助解决
linux安装mysql和rabbitmq的过程当中,系统弹出对话框,然后我写入yes linux系统就开始在屏幕上无限的<em>出现</em>y,一直到我按ctrl+c,才停止,请问有人经历过这个bug么,要怎么解决? ...
出现“用户代码未处理”,求帮助
[img=http://img.my.csdn.net/uploads/201301/25/1359090481_9653.jpg][/img]rn代码如下:[code=csharp]rn private void hiredRoomInfoDataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)rn rn rn if (hiredRoomInfoDataGridView.Columns[e.ColumnIndex].Name.Equals("ReceiveStatus"))rn rn if (int.Parse(e.Value.ToString()) == 1)rn e.Value = "已收租";rn elsern e.Value = "未收租";rn rn [/code]
安装pip出现了问题,求帮助
Ubuntu 16.04,这是终端的命令,显示域名错误该怎么办 dawn@dawn-virtual-machine:~$ sudo apt-get install python-pip python-dev [sudo] dawn 的密码: 正在读取软件包列表… 完成 正在分析软件包的依赖关系树 正在读取状态信息… 完成 将会同时安装下列软件: libexpat1 libexpat1-dev li...
创建外部表出现错误,求帮助。。。
1. 在E:\external下创建了一个EXCEL 文件book.csvrn[img=https://img-bbs.csdn.net/upload/201410/26/1414292474_739649.jpg][/img]rn2. 使用system用户连接数据库,创建目录对象test_data,同时授权给bookstore用户rnSQL>CREATE DIRECTORY test_data AS 'E:\external';rnSQL>GRANT READ,WRITE ON DIRECTORY test_date TO bookstore;rn3.使用bookstore连接数据库,创建外表rn[img=https://img-bbs.csdn.net/upload/201410/26/1414292706_996331.jpg][/img]rn4. SELECT 语句检索该表:SELECT * FROM test_book;提示“未选定行”rn 查看错误日志文件,里面全是乱码rn 查看日志文件如下:rn LOG file opened at 10/26/14 10:21:19rnrnField Definitions for table TEST_BOOKrn Record format DELIMITED BY NEWLINErn Data in file has same endianness as the platformrn Rows with all null fields are acceptedrnrn Fields in Data Source: rnrn BID CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn BOOKNUMBER CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn BOOKNAME CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn BOOKPRESS CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn BOOKPRICE CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn TYPEID CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn BOOKDATE CHAR (255)rn Terminated by ","rn Trim whitespace same as SQL Loaderrn[color=#FF0000]KUP-04021: field formatting error for field BIDrnKUP-04026: field too long for datatypernKUP-04101: record 1 rejected in file E:\external\book1.csv[/color]rn 请问这是什么问题啊?求<em>帮助</em>!!!
编译emacs时出现的错误信息,求帮助
在CentOS6.2里,顺利通过./configure,libtiff库都已经安装了,但到make<em>出现</em>下面的错误信息rn//下面是编译时make<em>出现</em>的错误rnrnmake[2]: Entering directory `/home/jason/emacs-24.1/lisp'rncd /home/jason/emacs-24.1/lisp; subdirs=`(find . -type d -print)`; for file in $subdirs; do case $file in */.* | */.*/* | */=* | */cedet* ) ;; *) wins="$wins $file" ;; esac; done; \rn for file in $wins; do \rn /home/jason/emacs-24.1/update-subdirs $file; \rn done;rnmake[2]: Leaving directory `/home/jason/emacs-24.1/lisp'rnif test "no" = "yes"; then \rn ln -f temacs bootstrap-emacs; \rn else \rn `/bin/pwd`/temacs --batch --load loadup bootstrap || exit 1; \rn mv -f emacs bootstrap-emacs; \rn firn/home/jason/emacs-24.1/src/temacs: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directoryrnmake[1]: *** [bootstrap-emacs] 错误 1rnmake[1]: Leaving directory `/home/jason/emacs-24.1/src'rnmake: *** [src] 错误 2rn[root@Jason emacs-24.1]#
一个小问题,请求帮助!!!!!!!!
package stonejspexample.Example.JavaBean.Database;rnrnpublic class SqlServerDatabase rn rn public SqlServerDatabase() rnrn rn public String aa1()rn return "aacc";rn rnrnrnrn////////////////////////////////////////////////rnrnpackage stonejspexample.Example.JavaBean.Database.Example_001;rnrnimport stonejspexample.Example.JavaBean.Database.*;rnrnrnpublic class result rnrn public result() rn rnrn String runHTML;rn public String getRunHTML()rn rn /* 我想在这里面真接引用上面类包中的aa1();方面,请问如何实现,越详细越好,谢谢了 */rn return runHTML;rn rnrn rnrn
小问题,急切寻求帮助
string TempName=TB1.Text;rn string TempPwd=TB2.Text;rn string str = "Data Source=2642A6705BA0444;Initial Catalog=luntan;Integrated Security=True";rn SqlConnection Conn = new SqlConnection(str);rn string selectr = "select top 1 * from users where userID ='"+TB1.Text+"'and pwd ='"+TB2.Text+"'";rn SqlCommand cmd = new SqlCommand(selectr, Conn);rn SqlDataReader odr = null;rn Conn.Open();rn tryrn rn odr = cmd.ExecuteReader();rn if (odr.Read())rn rn string UserName = odr["userID"].ToString();rn string UserPwd = odr["pwd"].ToString();rn Label2.Text = UserName;rn Label3.Text = UserPwd;rn Label4.Text = TempName;rn Label5.Text = TempPwd;rn if ((UserName == TempName) && (UserPwd == TempPwd))rn //这个地方怎么没法判断,是格式不对吗?该怎么改
小问题,请求帮助
比如有两个窗体,form1,form2。form1是身份验证窗体,通过验证后进入form2窗体rn但是我进入了form2窗体后,form1窗体并未关闭,现在我想进入form2后form1能自动关闭,有什么办法吗?
小问题,请帮助。急。
我在C#里引用。rnusing System.IO.时,为何只有一个属性呢?rnSystem.IO下面应该有很多才是呀,这是什么原因呢/rn我要用System.IO.File类。
帮助...一个小问题
一个表.. 内有三个字段..rnID Num Directionrn 1 10 1rn 1 5 1rn 2 8 -1rn 1 5 -1rn 2 10 1rnrnID表示一个商品的ID号..NUM为这一次进/出账的数量..Direction为方向,,1就表示进账.-1表示出账..rn我现在要账记每一种商品的进账.和出长数量.. rn如何写出来?rn输出要是rnID INNuM OUTNumrn 1 15 5rn 2 10 8rnrnInNum为进账 OutNum为出账rn谢谢了rn
servlet的小问题,请帮助!!
String idcard = request.getParameter("idcard");rnrn但是我怎么才能判断这个idcard的输入是有效的呢?rn(就是说我想判断合理的身份证号码输入)rnrn我想在servlet里面判断,rn包括:rn1.需要判断都是数字的输入(关键就是这个我不知道:S)rn2.还有18或者15位的输入(这个我好像知道的)rnrn或者还有什么更好的方法吗?rnrnrn谢谢了:)
创建帮助时的小问题
我新建了一个fist基于对话框的工程,在WinHelp方法里面加了句代码:ShellExecute(NULL,"open","hh.exe","MS-its:c:\\22.chm::7.html",NULL,SW_SHOW);按F1会弹出一个提示:找不到e:\first\debug\first.HLP。是否亲自查找文件? 是什么地方出错?谢谢我第一使用。
小问题,请高手帮助
在存储过程中,我想rnSELECT * FROM @AArnrn也就是说我想把这个表名传过来,不知道行不行呀!谢rnrn如果行,不知道语法是怎样的
小问题急需帮助
在JAVA中把一个String的数据转换成int型的数据,那个方法不记得了 ,好像是那个interger(单词不记得是怎么写的了)rn请教!!!!!怎么实现
一个小问题帮助~!!!
以前一直在用PreparedStatement这个类(接口),然后调用里面的函数,对数据库进行查询和更新操作,是没有问题的,后来一查,这个是一个接口,后来找了找,也没有找到在java.sql那个包里没有这个接口的实现,怎么我们在调用的时候没有问题,请问哪位高手帮我解释一下~!!!!!!!!!!!!!!!!!!rn 本人感激不尽~~!!!
小问题请求帮助!
1.在javascript 中怎样解决字符串(路径)原形的问题? rn例如:rs("path")="d:\name\file" 传递到javascript为:"d:name.."rn2.在vbscript 中怎样引用另一网页的com对象?rn多谢!
两个小问题,请求帮助
在WINFROM 中,问题一,提示:未将对象引用设置到对象的实例rnprivate void Bindstate()rn rn List items = new List();rn items.Add(new ListItem("0", "所有状态"));rn items.Add(new ListItem("1", "审核"));rn items.Add(new ListItem("2", "结算"));rn ddlstate.DisplayMember = "Text"; //显示rn ddlstate.ValueMember = "Value"; //值rn ddlstate.DataSource = items;rn rn private void listFrm_Load(object sender, EventArgs e)rn rn Bindstate();rn BindData();rnrn rn private void BindData()rn rn string dd = ddlstate.SelectedValue.ToString();//提示:未将对象引用设置到对象的实例rn rn--------------------------------------------rn-------------------------------------------rn问题2:rn以下主要用于组合查询rn DataTable dt = new DataTable();rn if (ddlnetwork.SelectedValue.ToString() != "0")rn rn string network=ddlnetwork.SelectedValue.ToString();rn sql2 = sql2 + "and a.chitty_network='"+network+"'";rn rn if (txtkey.Text != "")rn rn string key = txtkey.Text.Trim();rn sql2 = sql2 + "and ((select corp_name from p_corp where corp_id=a.chitty_corp) like '%"+key+"%' or (select corp_name from p_corp where corp_id=a.chitty_corp2) like '%"+key+"%')";rn rn rn string sql = "select a.* from p_sale a where 1=1" + sql2;rn MessageBox.Show(sql);rn 为什么输出的是相当长的一字符串:select a.* from p_sale a where 1=1and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%select a.* from p_sale a where 1=1and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%select a.* from p_sale a where 1=1and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%select a.* from p_sale a where 1=1and a.sale_network='1'and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%select a.* from p_sale a where 1=1and a.sale_network='System.Data.DataRowView'and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%select a.* from p_sale a where 1=1and a.sale_network='System.Data.DataRowView'and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%输入单号/发货方/收货方/装车号/备注查询%' or (select corp_name from p_corp where corp_id=a.sale_corp2) like '%输入单号/发货方/收货方/装车号/备注查询%')%' or (select corp_name from p_corp where corp_id=a.sale_corp2) like '%select a.* from p_sale a where 1=1and a.sale_network='System.Data.DataRowView'and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%输入单号/发货方/收货方/装车号/备注查询%' or (select corp_name from p_corp where corp_id=a.sale_corp2) like '%输入单号/发货方/收货方/装车号/备注查询%')%')%' or (select corp_name from p_corp where corp_id=a.sale_corp2) like '%select a.* from p_sale a where 1=1and a.sale_network='System.Data.DataRowView'and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%select a.* from p_sale a where 1=1and a.sale_network='System.Data.DataRowView'and ((select corp_name from p_corp where corp_id=a.sale_corp) like '%输入单号/发货方/收货方/装车号/备注查询%' or (select corp_name from p_corp where corp_id=a.sale_corp2) like '%输入单号/发货方/收货方/装车号/备注查询%')%'。。。。。。。。。。。。。。。。。。。。。
Servlet小问题,企求帮助!
我用Servlet接受来自表单里的内容后,在调用javabean里的set方法把信息保存在一个对象里,在通过request对象保存在起来,再跳转另一个jsp页面里,同时把数据也传了过来.结果<em>出现</em>了如下错误:rnrnmessage HTTP method GET is not supported by this URLrnrndescription The request sent by the client was syntactically incorrect (HTTP method GET is not supported by this URL).rnrnrn--------------------------------------------------------------------------------rn我懂是什么意思,还各位指点下,谢谢!
小问题需要大家的帮助
以下是我写的一段代吗!不知那里错了,提交不到数据库!rnrnPrivate Sub ok_Click()rnrnrnrnOn Error GoTo ErrHandlerrnrnIf id.Text <> "" Thenrn txtSQL = "insert into [ywll] (id,quyu,xiaoqu,address,newadd,card,name,job,"rn txtSQL = txtSQL & "xueli,mobil,tel,email,dddate,azday,rhday,hei1,clman,clweigui,"rn txtSQL = txtSQL & "other1,cc1,ch1,w1,dw1,s1,d1,j1,cc2,ch2,w2,dw2,s2,d2,"rn txtSQL = txtSQL & "j2,cc3,ch3,w3,dw3,s3,d3,j3,cc4,ch4,w4,dw4,s4,d4,j4,cc5,ch5,"rn txtSQL = txtSQL & "w5,dw5,s5,d5,j6,cc6,ch6,w6,dw6,s6,d6,j6,cc7,ch7,w7,dw7,s7,d7,"rn txtSQL = txtSQL & "j7,cc8,ch8,w8,dw8,s8,d8,j8,zhekou,ywje,heji,yufu,shiji,sunyi,"rn txtSQL = txtSQL & "manyi,wgman,weigui,dengji,heiman,zxco,tsman,tousu,other2) "rn txtSQL = txtSQL & " values (" & id.Text & "," & quyu.Text & "," & xiaoqu.Text & "," & address.Text & "," & newadd.Value & "," & card.Text & "," & name1.Text & "," & job.Text & "," & xueli.Text & "," & mobil.Text & "," & tel.Text & "," & email.Text & "," & dddate.Text & "," & azday.Text & "," & rhday.Text & "," & hei1.Text & "," & clman.Text & "," & clweigui.Text & "," & other1.Text & "," & cc1.Text & "," & ch1.Text & "," & w1.Text & "," & dw1.Text & "," & s1.Text & "," & d1.Text & "," & j1.Text & "," & cc2.Text & "," & ch2.Text & "," & w2.Text & "," & dw2.Text & "," & s2.Text & "," & d2.Text & "," & j2.Text & "," & cc3.Text & "," & ch3.Text & "," & w3.Text & "," & dw3.Text & "," & s3.Text & "," & d3.Text & "," & j3.Text & "," & cc4.Text & "," & ch4.Text & "," & w4.Text & "," & dw4.Text & "," & s4.Text & "," & d4.Text & "," & j4.Text & ","rn txtSQL = txtSQL & "" & cc5.Text & "," & ch5.Text & "," & w5.Text & "," & dw5.Text & "," & s5.Text & "," & d5.Text & "," & j5.Text & "," & cc6.Text & "," & ch6.Text & "," & w6.Text & "," & dw6.Text & "," & s6.Text & "," & d6.Text & "," & j6.Text & "," & cc7.Text & "," & ch7.Text & "," & w7.Text & "," & dw7.Text & "," & s7.Text & "," & d7.Text & "," & j7.Text & "," & cc8.Text & "," & ch8.Text & "," & w8.Text & "," & dw8.Text & "," & s8.Text & "," & d8.Text & "," & j8.Text & "," & z.Text & "," & f.Text & "," & j0.Text & "," & yufu.Text & "," & shiji.Text & "," & sunyi.Text & "," & manyi.Text & "," & wgman.Text & "," & weigui.Text & "," & dengji.Text & "," & heiman.Text & "," & zxco.Value & "," & tsman.Text & "," & tousu.Text & "," & other2.Text & ")"rnrn' txtSQL = txtSQL & "' where id='" & Trim(number.Text) & "'"rn Set mrc = ExecuteSQL(txtSQL, MsgText)rn success = Truern If MsgText = "insert query successful" Thenrn' MsgBox txtSQL, , "恭喜!"rn MsgBox "录入成功!", , "恭喜!"rn Elsern MsgBox txtSQL, , "错误"rn End IfrnElsern MsgBox "请填入单号!", , "错误"rnEnd IfrnrnExit SubrnrnErrHandler:rn rnMsgBox txtSQLrn' MsgBox "数据库连接失败,请修复后重试!", , "失败!"rnrnEnd Subrnrnrn请大家帮帮我,检查一下是哪里错了!谢谢~~rn
小问题,高手帮助!谢了
在“话框条”中用了一个“CButton”,怎么使它“可用”,总是无效状态。用”CWnd::EnableWindow()“是不能的使它可用的,使它有效。
一个小问题,请求帮助
我在vc6中编译这个程序:rn#include rnusing namespace std;rnvector vv;rnvv.push_back(1); rn最后一行出错,提示: missing ';' before '.'rn请帮下忙
小问题,帮助看看.
提示"function format_email(mailstring)"语法错误,真不知道为什么?rnrnfunction format_email(mailstring)rnrn if instr(1,mailstring,"","")rn elsern str=replace(replace(mailstring,"","")rn str_name=left(str,instr(1,str,"@")-1)rn str_mail=strrn end ifrn rn 'format_email=str_namern 'format_email=str_mailrn rn end functionrn rn mailstr="'dd'"rn str_name=format_email(mailstr)rn rn Response.Write str_namern Response.Write str_mailrn Response.End
小问题,请大虾帮助
在的abc()中定义的变量,在页面上不用其他触发事件,怎么使用,或是abc()写在什么object的什么event中。比如rn rnrnrn window.alert(a);rnrnrn这样就不能正确的alert arn如果把window.alert(a)用个按钮触发,就是正确的。这个问题怎么解决。
小问题,请帮助
在interdev中连接数据库rn代码这样:rndim conn rndim connstringrn call conn_init()rn sub conn_init()rn on error resume nextrn constring = "driver=sql server;server=BOBO;database=pubs;"rn set conn=server.createobject("ADODB.CONNECTION")rn conn.open (connstring) rn end sub rn dim sqlrn dim rsrn set rs=server.createobject("adodb.recordset") rn sql="select * from jobs " rn rs.Open sql,conn,1,1 rn告诉我最后一行出错,ADODB.Recordset (0x800A0E7D)。什么情况??rn
小问题,请帮助!!!!!
rn这段代码显示的错误是:rnADODB.Recordset 错误 '800a0bb9' rnArguments are of the wrong type, are out of acceptable range, or are in conflict with one another. rnrn/xitong.asp,行41 rn请问哪里错了,请帮忙改改!!谢谢!
打印小问题帮助
函数本意是将一个已经画好的 CDC* SDC 进行打印,因VC经验欠缺 调试许久未成功,希望得到各位帮住。rnrn////////////////////////////////////////////////////////////////////////rnrnCDC* pDC; rn CPrintDialog dlg(FALSE);rnif (dlg.DoModal() == IDOK)rnrnrnHDC hDC = dlg.GetPrinterDC();rnif (hDC == NULL)rnrnreturn;rnrnrnpDC = CDC::FromHandle(hDC);rnif (pDC == NULL)rnrnreturn;rnrnrn CDC memDC; rn rn rn CRect rectClient;rnGetClientRect(rectClient) ;rnrnrnCBitmap* oldBitmap,memBitmap; rnmemDC.CreateCompatibleDC(SDC) ;//->SDC 是已经画好的一个CDC 波形 跟踪发现memDC为空rnmemBitmap.CreateCompatibleBitmap(SDC, rectClient.Width(), rectClient.Height()) ;rnrnpDC->SetMapMode( MM_ANISOTROPIC ); rn CSize size = CSize( 6000, 5000 ); rn pDC->SetWindowExt( size ); rn rn int xLogPixPerInch = pDC->GetDeviceCaps( LOGPIXELSX ); rn int yLogPixPerInch = pDC->GetDeviceCaps( LOGPIXELSY ); rn rn rn long xExt = ( long )size.cx * xLogPixPerInch / 96; rn long yExt = ( long )size.cy * yLogPixPerInch / 96; rn pDC->SetViewportExt( ( int )xExt,( int )yExt);rn rn rnmemDC.DPtoLP(rectClient);rnrnoldBitmap = (CBitmap *)memDC.SelectObject(&memBitmap) ;rnrnif (memDC.GetSafeHdc() != NULL)rnrnrnpDC->BitBlt(0, 0, rectClient.Width(), rectClient.Height(), rn&memDC, 0, 0, SRCCOPY) ;rnrnmemDC.SelectObject(oldBitmap) ; rnmemBitmap.DeleteObject();rnmemDC.DeleteDC();
小问题请求帮助
如何把如:2003-12-13 11:55:40 这个字符串格式 转换成CTime ,请介绍下CTime的常用操作
两个小问题,谢谢帮助
1、我用vb和access数据库连接,在dbgrid中显示一张表,同时直接在dbgrid中输入每个字段的数据时想实现“必须输入正数,若输入错误则报错,并将刚才输入的字段数据置空,等待重新输入正确数据”,不知如何写代码,请各位给出详细解法,谢谢!rn2、crystal report(水晶报表)中文版在哪下载?是否报表中任何规则或不规则的线条都必须自己画呢?那岂不太慢了吗?谢谢指点!
一个小问题,请帮助
在服务器资源管理器中数据连接sqlserver,在填写好服务器地址用户和密码后点确定就提示“内部错误”,在试图创建数据库时发生错误,但无法获得错误信息。rn以前偶也连接过都没问题,奇怪了,请<em>帮助</em>下,谢谢。
帮助一下,小问题
rnrnrn我想让水印<em>出现</em>在每一页,但不想每一页都设置,怎么办?rnrn
小问题,急,还请帮助
在C#中的回车换行常量是什么?就像vb中的VBCR,我想要把文本内容显示成HTML格式,
小问题,请大家帮助
怎样让label的宽度和web 窗体一样宽,还有怎样让控件自动居中rnrn还有,谁有vb.net的开发规范,谢谢
小问题,请各位帮助
我在做数据窗口对象时有一个字段的长度与数据库的相应表中的长度不一样,怎么在数据窗口中修改?
小问题,请大家帮助
Me.ActiveControl.Namern这个Name属性在静态的时候如何设置?在动态的时候如何设置?
文本输出的小问题,感谢您的帮助
我在做文本输出时遇到了两个<em>小问题</em>,请您指点,谢谢!rn1.textout函数的第一个参数窗口句柄hdc如何得到?rn2.利用textout函数输出一段文字后,如果我想再输出一段文字,并且其输出文本的位置和上一次输出文本的位置相同,则首先应该将文本输出窗口刷新,请问如何刷新文本输出窗口,利用什么函数?
小问题 请大虾的帮助!!!
我是.net的初学者,我做了一个小的系统,但是我今天打开一个页面的时候,会<em>出现</em>这样一个对话框rn在web窗体设计器中未能加载该文件。请更正下列错误,然后尝试重新加载:rn 文件中的类都不能进行设计,因此未能为该文件显示设计器。设计器检查出文件中有以下类:rn VIP_REGEDIT--- 未安装基类rn "system.web.UI.page" 的设计器。确保在项目中生成或者引用了页中使用的所有类。rnrnrn麻烦大家帮忙一下,谢谢大家rn
电脑花屏,请帮助
一个问题:rn我的<em>电脑</em>玩游戏的时候老是花屏,死机.我也换了几块显卡,可是问题还是存在,这两天不在花屏了,而是<em>出现</em>蓝屏,<em>出现</em>了一大段的英文,然后就重器,在大概进入用户登陆那块的时候,<em>电脑</em>总是会"嘀"的叫一下.很郁闷 ,请帮忙看下 rn应该不是兼容的问题,因为我以前就是用那个显卡的.rnrn另一个问题:rn在我看我的CPU型号的时候发现一个奇怪的东西 rn我CPU本来是 P4 2.4 rn可是在我打开我的<em>电脑</em>属性里面看到的是: rnP4 CPU 2.40GHz rn1.79GHz ,384 MB的内存 rn我不知道为什么会<em>出现</em>1.79这个数字的
电脑故障排除 帮助菜鸟
菜鸟玩转<em>电脑</em>的帮手,希望对大家有<em>帮助</em>!一款自认为可以的软件,里面有很多资源呀
帮助电脑去除垃圾
http://download.cnet.com/8301-2007_4-20020118-12.html?part=rss&subj=news&tag=2547-1_3-0-20rnrn是一段英文视频,介绍了几款有效地去除<em>电脑</em>垃圾的免费收费软件,有兴趣的朋友可以动漫看看。
电脑新手需要帮助
我的<em>电脑</em>不能在綫看电影或任何视频文件,一点击它就自动重启,这是怎么回事?请高手帮帮我,在这里先谢谢了!
c#软件出现小问题,求解决
[img=https://img-bbs.csdn.net/upload/201502/24/1424775827_898745.png][/img][img=https://img-bbs.csdn.net/upload/201502/24/1424775838_550613.png][/img][img=https://img-bbs.csdn.net/upload/201502/24/1424775850_757600.png][/img]rn我C#今天突然想看下前段时间写的代码,发现都打不开了,都成这样了,是怎么回事?怎么解决?
Andriod新手,出现小问题,求解答~~
public class FragmentTabActivity extends Activity implements OnClickListener rn private FragmentManager fragmentManager;rn @Override rn protected void onCreate(Bundle savedInstanceState) rn super.onCreate(savedInstanceState); rn requestWindowFeature(Window.FEATURE_NO_TITLE); rn setContentView(R.layout.activity_fragment_tab); rn setTabSelection(0); //显示这行有错rn rn @Override rn public void onClick(View v) rn switch (v.getId()) rn case R.id.login1_layout: rn setTabSelection(0); rn break; rn case R.id.login2_layout: rn setTabSelection(1); rn break; rn default: rn break; rn rn rn rn private void setTabSelection(int index) rn FragmentTransaction transaction = this.fragmentManager.beginTransaction(); //显示这行有错 rn hideFragments(transaction); rn switch (index) rn case 0: rn login1Text.setTextColor(Color.WHITE);rn if (login1Fragment == null) rn login1Fragment = new AFragment(); rn transaction.add(R.id.content, login1Fragment); rn else rn transaction.show(login1Fragment); rn rn break; rn case 1: rn default:rn login2Text.setTextColor(Color.WHITE);rn if (login2Fragment == null) rn login2Fragment = new BFragment(); rn transaction.add(R.id.content, login2Fragment); rn else rn transaction.show(login2Fragment); rn rn break; rn rn transaction.commit(); rn rn private void hideFragments(FragmentTransaction transaction) rn if (login1Fragment != null) rn transaction.hide(login1Fragment); rn rn if (login2Fragment != null) rn transaction.hide(login2Fragment); rn rn rn rnLogCat中显示:rn04-16 09:05:05.148: E/AndroidRuntime(1642): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.FragmentTransaction android.app.FragmentManager.beginTransaction()' on a null object referencern04-16 09:05:05.148: E/AndroidRuntime(1642): at lc.bishe.pingjiao.FragmentTabActivity.setTabSelection(FragmentTabActivity.java:91)rn04-16 09:05:05.148: E/AndroidRuntime(1642): at lc.bishe.pingjiao.FragmentTabActivity.onCreate(FragmentTabActivity.java:44)rn
关键时刻出现了一点小问题 求高手
[code=PHP][/code]rnession_start() [function.session-start]: Cannot send session cache limiter - headers already sent <em>出现</em>了这样的一个情况 请问这个是什么情况 rnrn 0 && $post==$_SESSION[check_pic]) rn echo " ";rn rn else rn echo " ";rn rn rn mysql_free_result($result);rn mysql_close($db);rn rn rnrnrn?>rn这个是程序的代码
ajax出现小问题,求大神解答
这是ajax中js的原生态编码,![图片说明](https://img-ask.csdn.net/upload/201608/04/1470312911_706221.png)注释标注的那一部分有问题,send方法没办法把数据发送到servlet中去rn这是servlet的编码![图片说明](https://img-ask.csdn.net/upload/201608/04/1470313174_335754.png)rn顺便说一下,alert(this.value)是可以输出值的,这个可以肯定没问题,而且要获取参数的话,只能在jstl标签中获取
使用SetWindowsHookEx出现电脑卡死,求真相
C++ Builder中:rnrnHOOKPROC JournalLogProc(int iCode,WPARAM wParam, LPARAM lParam)rnrn  if(iCode<0)return (HOOKPROC)CallNextHookEx(g_hLogHook,iCode,wParam,lParam);rn  return (HOOKPROC)CallNextHookEx(g_hLogHook,iCode,wParam,lParam);rnrnrnButton1中Click代码:rnif(g_hLogHook==NULL)rn g_hLogHook = SetWindowsHookEx(WH_JOURNALRECORD,(HOOKPROC)JournalLogProc,rn HInstance,0);//安装日志钩子rnrn系统<em>出现</em>假死现象,按Ctrl+Alt+Del打开任务管理器解除。rn
帮助!!
#include using namespace std; const int MaxSize=4; class MGraph { public:   MGraph(char a[],int n,int e);   void DFSTraverse(int v); private:   char vertex[MaxSize];   int arc[MaxSiz
魔乐软件基地JSP提高下载
魔乐软件基地JSP提高,包括了JavaScript,页面的编写,分页程序,MLDN出品,非常详细 相关下载链接:[url=//download.csdn.net/download/forrestzsb/2547945?utm_source=bbsseo]//download.csdn.net/download/forrestzsb/2547945?utm_source=bbsseo[/url]
wcf入门的简单例子下载
Wcf入门例子。简单易懂。 例子用vs2008编写。 源码详细说明如下链接:http://www.cnblogs.com/scottckt/archive/2010/09/04/1818267.html 相关下载链接:[url=//download.csdn.net/download/scottckt/2671319?utm_source=bbsseo]//download.csdn.net/download/scottckt/2671319?utm_source=bbsseo[/url]
ios开发各种控件属性总结下载
ios开发遇到的各种控件介绍以及各种属性的使用方法 相关下载链接:[url=//download.csdn.net/download/lby5211abc/5230573?utm_source=bbsseo]//download.csdn.net/download/lby5211abc/5230573?utm_source=bbsseo[/url]
相关热词 c# gdi 占用内存 c#中遍历字典 c#控制台模拟dos c# 斜率 最小二乘法 c#进程延迟 c# mysql完整项目 c# grid 总行数 c# web浏览器插件 c# xml 生成xsd c# 操作sql视图
我们是很有底线的