-
qt Timer为什么会屡次出现
qtTimer为什么会多次出现构造函数{timer=newQTimer;this->connect(this,SIGNAL(time_out()),this,SLOT(timer_out_slot()));//定时器关联}voidMainWindow::timer_out_slot(){//timer=newQTimer;timer->setSingleShot(true);//一次定...
150
热度 -
[求助]不知道为什么
[求助]不知道为什么 <HTML><HEAD><TITLE>WelcomeJavaApplet</TITLE> </HEAD> <BODY><applet code="WelcomeApplet.class"width=600height=500></applet> <...
246
热度 -
为什么图片不能显示呢
为什么图片不能显示呢 /*<appletcode="Image001.class"width=200height=200></applet>*/importjava.util.*;importjavax.swing.*;importjava.awt.*;publicclassImage001extendsJAppletimplementsRunn...
691
热度 -
背景为什么没有变化?
背景为什么没有变化? packageapplet;importjava.awt.*;importjava.awt.event.*;//背景为什么没有变化?publicclassMyChoiceextendsFrameimplementsTextListener{ Choicechc=newChoice();//实例化publicMyChoice(){setTitle("...
283
热度 -
[求助]为什么结果是8?
[求助]为什么结果是8? 为什么结果是8啊?麻烦讲解一下.#include<stdio.h>voidmain(){voidfun(intk,int*p);intx;fun(6,&x);printf("%d\n",x);} voidfun(intk,int*p){inta,b;if(k==1||k==2)*p=1;else{fun(k-1,&a...
70
热度 -
没赋值,为什么会有答案
没赋值,为什么会有答案 #include"stdio.h" main() { inty,i; for(i=0;i<20;i++) { if(i%2==0) continue; y+=1;/**/ printf("%d\n",y); } getch(); } 没有给y赋值,可是通过编译有答案 为什么呀?? ...
54
热度 -
[求助]为什么没有警告
[求助]为什么没有警告 #include<stdio.h>main(){floata,b,s;charc;printf("inputexpression:a+(-,*,/)b\n");scanf("%f%c%f",&a,&c,&b);switch(c){case'+':printf("%f\n",a+b);break;case'-':...
152
热度 -
怪栽!这是为什么啊!
怪栽!这是为什么啊! 我是个初学者!编了一个小程序,是求两个数的和! main() { intsum(intx,inty); inta,b,s; scanf("%f,%f",&a,&b); s=sum(a,b); printf("sum=%f\n",s); } intsum(intx,inty) {...
152
热度 -
[原创]为什么jsp页面出现????
[原创]为什么jsp页面出现???? <%@pagecontentType="text/html;charset=gb2312"language="java"import="java.sql.*"errorPage=""%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN""http://w...
142
热度 -
为什么会出现这样异常?/
为什么会出现这样错误??/PublicSharedFunctiongetDataTable(ByValsqlAsString)AsDataTableTryDimsqlAdapter1AsSqlDataAdapter=NewSqlDataAdapter(sql,cnn)DimdataSetAsDataSet=NewDataSetsqlAdapter1.Fill(dataSet)sqlAdapter1...
6656
热度 -
请教为什么不能部署运行啊
请问为什么不能部署运行啊??有TreeWiewDemo.war文件放到webapps文件夹下运行tomcat可以自动解压缩且可以生成CLASS文件,使用:http://localhost:8080/TreeWiewDemo/dynamicTree.jsp出现错误如下:HTTPStatus500---------------------------------------------typeExce...
155
热度 -
foreach 遍历为什么会报错
foreach遍历为什么会出错?看到网友的帖子,自己试了试,果然如化所说,但不知为什么。请高手指教。<?php$blog=array(array("titledata"=>"titleMM","bodydata"=>"bodyMM"),array("titledata"=>"titleGG","bodydata"=>"bodyGG"));//出错foreach($bl...
26
热度 -
这个SQL话语的结果是什么?为什么
这个SQL语句的结果是什么?为什么?本帖最后由gaswei于2013-06-2911:57:57编辑SELECTorder_num,total_priceFROMitemsaWHERE10>(SELECTCOUNT(*)FROMitemsbWHEREb.total_price<a.total_price)ORDERBYtotal_price看不明白为什么是选出最小的前10项,求解释,谢...
4
热度 -
这边为什么 无法获取 宽 高
这里为什么无法获取宽高www.style.width=document.body.offsetWidth; www.style.height=document.body.offsetHeight; 断点以上两行 document.body.offsetWidth document.body.offsetHeight 都有确定的值 但就是没法赋给width和height <style&g...
419
热度 -
为什么innerHTML出现异常
为什么innerHTML出现错误?代码: varf=document.getElementById("avote"); f.innerHTML=f.innerHTML+"<tr><td>123</td><td>456</td><td>789</td></tr>";...
217
热度 -
菜鸟问Servlet为什么not available
初学者问Servlet为什么notavailable?我有个servlet程序BookCart.java,位于Packagecom.liying下.当我在jsp程序中引用时是这样写的:<formaction="com.liying/BookCart.java"method="post">.运行时报错:Therequestedresource(/S...
108
热度 -
,小弟我的为什么显示乱码
请教高手,我的为什么显示乱码我在模拟机上运行,可以显示汉字,但是我在真机里运行就显示乱码怎么回事啊rs=RecordStore.openRecordStore("rs2",true);m_g.drawString("人ID:"+""+newString(rs.getRecord(1)),3,10,Graphics.LEFT|Graphic...
2880
热度 -
高分,为什么条件不能识别
高分求助,为什么条件不能识别?“FL”中的值分别为A,B,C,现在要根据不同的值打开不同的页面,代码如下。测试结果是全部都打开的是页面“SPMXC”。请问哪里有问题,为何不能识别A,B.SubPage_Load(SrcAsObject,EAsEventArgs)IfTrim(Request.QueryString("FL"))="+A+"Thenrespon...
5299
热度 -
smarty http 500异常 为什么
smartyhttp500错误为什么本地好好的,传到服务器上就报这个错误,smarty模版刷不出来。。我要如何调试呢错误信息如下:RequestURL:http://106.187.43.40/lovewords/test.phpRequestMethod:GETStatusCode:500InternalServerErrorRequestHeadersviewsourceAccept:text...
51
热度 -
为什么不能强制转换 成Hashtable
为什么不能强制转换成Hashtable importjava.util.*; publicclassTestHashtable{ publicstaticvoidmain(String[]args){ Hashtablenumbers=newHashtable(); numbers.put(newMyKey("zhangsan",18),newIn...
187
热度