固件读出来的信息,修改后系统读出来的不对,有没有大神帮忙看下 [问题点数:50分]

Bbs1
本版专家分:0
结帖率 0%
为什么读出来的数据不对
class Plant rnrnpublic:rn Plant();rn CString Number; //航班号rn CString Origin; //出发地rn CString Arr; //到达地 rn CString DepartureTime; //出发时间 rn CString ArrivalTime; //到达时间rn Plant *array;rn virtual ~Plant();rnrn;rn读取文件的函数如下rnrnint CFlightShow::get(Plant* &head)rnrn FILE *fp; rn rn Plant *p,*q;rn q=new Plant;rn head=q;rn rn if ((fp=fopen( "flight.txt ", "r ")) == NULL)rn return -1; rn while(fscanf(fp,"%s%s%s%s%s",q->Number,q->Origin,q->Arr,q->DepartureTime,q->ArrivalTime)!=EOF) rn rn p=new Plant;rn p->array=NULL;rn q->array=p;rn q=p;rn rn fclose(fp); rn return 0; rnrn为什么<em>读出来</em>的所有的数据都是同一个最后一个数据,请大家帮我看看 这个是不是有问题?rn定义类为 字符串数组时这样读取是没有问题的
为什么读出来的列数不对
Excel.Worksheet es = (Excel.Worksheet)ew.Worksheets[1];rnes.UsedRange.Columns.Countrnrn为什么Excel表格明明只有6列使用了 es.UsedRange.Columns.Count的值却是 17
怎么读出来的时间不对啊?
数据库里的时间是2004-11-26 11:49:45rn可<em>读出来</em>的时间却是2004-11-26 11:49:44。少一秒。我晕。不知道怎么这样。我是用MSSQL数据库rn把数据存的DATASET里的。然后用绑定到REPEATER里的。怎么会错。我也不知道了
如何将BIOS的信息读出来
小弟最近想编个程序,要把BIOS的中CPU温度、风扇转数<em>读出来</em>,不知如何下手,非常着急;首先谢谢大家。rn
帮忙用vb读出来1.dat
<em>帮忙</em>用vb<em>读出来</em>不知道能不能用Open语句实现从文件的特定位置开始读指定长度的数据,如果不能用Open语句能不能用其它的方法实现,我是初学者请写的详细点。
fread读出来的结构体内的字符串的内容不对
我声明了一个结构体 内部有很多字符串rn例如rnrn ……rn char date[10];rn char stime[8];rn char etime[8];rn ……rnrn然后我用fread从文件中读取,调试的时候发现这三个字符串的结果有问题,分别是:rndate:2002-10-2111:12:4512:12:45rnstime:11:12:4512:12:45rnetime:12:12:45rn是不是初始化有问题?改如何解决呢?
13H中断读磁盘扇区,读出来数据不对
先附上相关参考资料:[img=https://img-bbs.csdn.net/upload/201308/13/1376393280_864609.jpg][/img][img=https://img-bbs.csdn.net/upload/201308/13/1376393292_582968.jpg][/img][img=https://img-bbs.csdn.net/upload/201308/13/1376393299_232846.jpg][/img]rnrn我的部分核心代码如下rn.MODEL smallrnrn.386rnrnrnDAP EQU 1000HrnrnBUFFER EQU 10000HrnrnCODE SEGMENT USE16rn ASSUME CS:CODE,DS:CODErnCODEENTER: rn rn rn PUSH ESIrn PUSH EAXrn XOR AX,AXrn MOV DS,AXrn MOV ES,AXrn rn MOV ESI,DAPrn MOV AL,10H ;数据包尺寸rn MOV BYTE PTR DS:[ESI],AL rn MOV AL,0 ;reservedrn MOV BYTE PTR DS:[ESI+1],ALrn MOV AX,02H rn MOV WORD PTR DS:[ESI+2],AX ;要传输的数据块个数(扇区为单位)rn XOR EAX,EAXrn MOV EAX,BUFFERrn MOV DWORD PTR DS:[ESI+4],EAX ;传输的缓冲地址rn XOR EAX,EAXrn MOV DWORD PTR DS:[ESI+8],EAX ; ;磁盘起始绝对块地址(此处读0号扇区)rn MOV DWORD PTR DS:[ESI+12],EAXrnrn MOV AH,42H rn MOV AL,0rn MOV DL,80H ;驱动器号rn INT 13Hrn rnCODE ENDSrn END CODEENTERrn(代码没有显示部分,自己添加)rn在windows7下编译生成的exe,在操作<em>系统</em>上运行,显示的跟winhex工具查看的磁盘数据不同(错误)rn但是当把exe写入bois之后,在运行操作<em>系统</em>之前运行,读取的数据却是正常的。rn但是每次都必须写入bois才能正常调试,这样太麻烦了,请教<em>大神</em>们,有什么方法可以直接在操作<em>系统</em>上把硬盘的东西<em>读出来</em>rn在此谢过
MYSQL数据库里显示中文正常,读出来的是乱码,帮忙看下
MYSQL数据库里显示中文正常,<em>读出来</em>的是乱码,网上讲了好多,但是没发现一个用得上的,<em>帮忙</em><em>看下</em>!数据库是gbk,rnODBC连接的数据库,m_DB.Open("DataServer", FALSE, FALSE, "ODBC;DNS=DataServer;UID=root;PWD=123");rn工程的的字符集:使用多字节字符集;rn读取:CString StrName;Record.GetFieldValue("name", StrName);这样读出的数据是乱码,只有中文是乱码
请问:如何存储颜色信息,并读出来
请问如何以文本方式存储color<em>信息</em>,并<em>读出来</em>?(vb.net中好像color类型值可转化为字符串,而字符串不能转化为color类型值)若不能以文本方式存储,则该如何存储?
怎么回事,不同的ID读卡器读出来信息不一样?
我手边有一些白色的ID磁卡,每个磁卡上都印有三组数据,如:rn0002249859 034,21635rnrn0002220512 033,57824rnrn0002244420 034,16196rnrn我用广州晶密电子有限公司出品的RF CARD READ/WRITE DEVICE CM-2FK (77FD)读卡器<em>读出来</em>的磁卡数据就是磁卡上的头一个数据,如:02249859,而用另一种读卡器RF-ID(IC) READ/WRITE DEVICE (09A-EMID 8H)<em>读出来</em>的数据就不一样了,成了:00225483。rnID磁卡就是厂家在出厂前已经在磁卡内写好了数据(无法修改),用户只需购买ID读卡器将<em>信息</em>读出即可,我用的这两款ID磁卡读卡器都是无源的读卡器,直接插在电脑的USB口来用的。为什么<em>读出来</em>的结果会不一致呢?谢谢!
通过数据库读出来信息动态创建数组
因为需要制作一个无限下级目录函数。rn想把从数据库里<em>读出来</em>的,本级目录ID、父级目录ID、本级目录名。放入一个动态的数组里,以便进行对比循环出下级目录。rn请问,如何把<em>读出来</em>得这3个值放入数组里呀?rn
如何将xsd文件中的节点信息读出来
如何将xsd文件中的节点<em>信息</em><em>读出来</em>?请大家指点一下!
各位大神帮忙看下
templaternclass Arn…;rnrntemplaternvector*> vec;rnrn这段代码有啥问题?
大神帮忙看下 多谢
我们最近用clocklingIT 感觉保存的时候特别慢,我找到save_log这个方法,想在里面加几个时间戳,看看到底是哪里耗时,请问我用logger记日志可以么 怎么log下当前时间呢?多谢
大神帮忙看下
2012-11-15 14:07:45 org.apache.coyote.http11.Http11Protocol pausern<em>信息</em>: Pausing Coyote HTTP/1.1 on http-80rn2012-11-15 14:07:46 org.apache.catalina.core.StandardService stoprn<em>信息</em>: Stopping service Catalinarn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThreadrn严重: A web application appears to have started a TimerThread named [Timer-0] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [scheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThreadrn严重: A web application appears to have started a TimerThread named [timerFactory] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-1] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-2] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-3] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [chartAppStart_Worker-4] but has failed to stop it. This is very likely to create a memory leak.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1c6f0bd]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@1e743ad]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@c17ef]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@f90303]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@34bd88]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@874fba]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@183553a]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:46 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@9737a7]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@15054a3]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:47 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [null] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1a24060]) and a value of type [java.lang.Object[]] (value [[Ljava.lang.Object;@130770e]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rn2012-11-15 14:07:47 org.apache.coyote.http11.Http11Protocol destroyrn<em>信息</em>: Stopping Coyote HTTP/1.1 on http-80rnrnrnrn
大神帮忙看下。。。
七月 22, 2014 10:47:27 上午 org.apache.catalina.core.AprLifecycleListener initrnINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files (x86)\Java\jre7\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files (x86)/Java/jre7/bin/client;C:/Program Files (x86)/Java/jre7/bin;C:/Program Files (x86)/Java/jre7/lib/i386;F:\app\zhangchaowu\product\11.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Java\jdk1.7.0_10\bin;C:\Program Files (x86)\Java\jdk1.7.0_10\jre\bin;;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files (x86)\IDM Computer Solutions\UltraEdit\;F:\工作\eclipse\eclipse;;.rn七月 22, 2014 10:47:27 上午 org.apache.tomcat.util.digester.SetPropertiesRule beginrnWARNING: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:TellingB2B' did not find a matching property.rn七月 22, 2014 10:47:27 上午 org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["http-bio-8080"]rn七月 22, 2014 10:47:27 上午 org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["ajp-bio-8009"]rn七月 22, 2014 10:47:27 上午 org.apache.catalina.startup.Catalina loadrnINFO: Initialization processed in 303 msrn七月 22, 2014 10:47:27 上午 org.apache.catalina.core.StandardService startInternalrnINFO: Starting service Catalinarn七月 22, 2014 10:47:27 上午 org.apache.catalina.core.StandardEngine startInternalrnINFO: Starting Servlet Engine: Apache Tomcat/7.0.29rn七月 22, 2014 10:47:33 上午 org.apache.catalina.core.ApplicationContext logrnINFO: No Spring WebApplicationInitializer types detected on classpathrn七月 22, 2014 10:47:33 上午 org.apache.catalina.core.ApplicationContext logrnINFO: 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.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rnrn启项目到这个地方就一直不动了,<em>有没有</em>遇到同样情况的?
用过齐博系统大神帮忙看下
用齐博B2B改了个网站,品牌首页不小心把标签删除了,导致最新入驻商家不显示,求<em>大神</em>们给个解决方案,[url=http://www.nylm.org/nylmorg/brand/]http://www.nylm.org/nylmorg/brand/[/url]
求助大神帮忙看下!!!
麻烦哪位<em>大神</em>能<em>帮忙</em><em>看下</em> 下面代码中的$testid是哪里来的,小弟谢谢啦!rnrn rn";rnif (!isset($_SESSION[alogin]))rnrn echo " You are not Logged On Please Login to Access this Page";rn echo " Click Here for Login";rn exit();rnrnecho " Add Question ";rnif($_POST[submit]=='Save' || strlen($_POST['testid'])>0 )rnrnextract($_POST);rnmysql_query("insert into mst_question(test_id,que_desc,ans1,ans2,ans3,ans4,true_ans) values ('$testid','$addque','$ans1','$ans2','$ans3','$ans4','$anstrue')",$cn) or die(mysql_error());rnecho " Question Added Successfully.";rnunset($_POST);rnrn?>rn rn rn rn rn Select Test Name rn rn rn$row[2]";rnrnelsernrnecho "$row[2]";rnrnrn?>rn rn rn rn Enter Question rn rn rn rn rn Enter Answer1 rn rn rn rn rn Enter Answer2 rn rn rn rn rn Enter Answer3 rn rn rn rn rn Enter Answer4rn rn rn rn rn Enter True Answer rn rn rn rn rn rn rn rn rn rnrn rn
如何将嵌入的资源读出来
当一个icon被表示外嵌入的资源后,如何在运行中载入?我记得在mshelp中有讲过,但现在找不到了
数据库读出来的图片问题
1k多的图片可以读出,大一点就程序就出现异常了rnstring ImgID =Request.QueryString["StoveBh"];rn string strSql = "SELECT StructureChart FROM B_TransferHeatCards Where StoveBh = '1'";rn Trace.Write(strSql);rnrn OdbcCommand cmdselect = new OdbcCommand(strSql,comm.myConnection );rn OdbcDataReader myReader;rn myReader = cmdselect.ExecuteReader();rn rnrn if ( myReader.Read() )rn rn byte[] btImage = new byte[7000000];rn btImage = ( byte[] )myReader["StructureChart"];rn Response.ContentType = "image/JPEG";rn Response.BinaryWrite( btImage );rn rn rn异常<em>信息</em>:rn算术运算导致溢出。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪<em>信息</em>,以了解有关该错误以及代码中导致错误的出处的详细<em>信息</em>。 rnrn异常详细<em>信息</em>: System.OverflowException: 算术运算导致溢出。rnrn源错误: rnrnrn行 42: rn行 43: byte[] btImage = new byte[7000000];rn行 44: btImage = ( byte[] )myReader["StructureChart"];rn行 45: Response.ContentType = "image/JPEG";rn行 46: Response.BinaryWrite( btImage );rn rnrn源文件: c:\inetpub\wwwroot\yuanxing\webform2.aspx.cs 行: 44 rnrn堆栈跟踪: rnrnrn[OverflowException: 算术运算导致溢出。]rn System.Data.Odbc.OdbcDataReader.internalGetBytes(Int32 i)rn System.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap)rn System.Data.Odbc.OdbcDataReader.GetValue(Int32 i)rn System.Data.Odbc.OdbcDataReader.get_Item(String value)rn yuanxing.WebForm2.Page_Load(Object sender, EventArgs e) in c:\inetpub\wwwroot\yuanxing\webform2.aspx.cs:44rn System.Web.UI.Control.OnLoad(EventArgs e) +67rn System.Web.UI.Control.LoadRecursive() +35rn System.Web.UI.Page.ProcessRequestMain() +731
这样的数据格式怎样读出来
数据结构如下:rntypedef struct RTrnrnchar Name[20];rnint Age;rnchar Disease[30];rnRT;rnrnrn是这样写入文件"client.txt"的:rnfor(i=0;i,student[i].Age);rn fwrite(&student[i].Disease,strlen(student[i].Disease),1,fp);rnrnrn由fwrite(&student[i].Name,strlen(student[i].Name),1,fp);可知rn写入文件时Name的长度不一样,从文件<em>读出来</em>的时候应该怎么读呢?rnrnrnrn
fread读出来的数据不正确
[size=14px]各位<em>大神</em>,我用fread来读取数据,发现<em>读出来</em>的数据<em>不对</em>,不知为何,请指点。rn数据如下:18 00 21 33 46 50 6a 78 83 每次用3个字节读取,得到理论上得到的应该是18,00,21,33这样的数据,但是最红得到的结果却是:rnstr[0]=-870303695rnstr[1]=-870305744rnstr[2]=-870305486rnstr[3]=-870304973rnstr[4]=-870304204rnstr[5]=-870305739rnstr[6]=-870293194rnstr[7]=-870303689rnstr[8]=-859032776 我实在想不明白,请指点,代码如下:rnint main()rn FILE *fp;rn fp = fopen("..........\\test.lv","rb");rn if(!fp)rn return -1;rn int d[100];rn int i =0;rn while (fread(&d[i],1,3*sizeof(char),fp))rn rn printf("str[%d]=%d\n",i,d[i]);rn ++i;rn rnrn fclose(fp);rn system("pause");rn return 0;rnrn
readelf -s 读出来的是什么?
如图 <em>读出来</em>的是什么,那些<em>信息</em>又是按照什么顺序排列的?
网卡的序列号怎么读出来
以前用过,忘了,真急人!
怎么读出来文件来?
同上
COBOL的数据文件怎么读出来
我有一个COBOL的数据文件,因为不懂COBOL,不知道怎么得到里面的数据,rn有用VB能读到数据的代码吗?或者<em>有没有</em>专门的数据显示软件,像MSSQL的企业管理器之类rnrn或者其它能让我得到数据的办法,像把文件转换为别的格式之类的操作,求办法求思路
C#将文字读出来
调用<em>系统</em>的扬声器,将输入的文字<em>读出来</em> private void btnYuYingBaoDu_Click(object sender, EventArgs e) { string str = rtxtzhongwen.Text; if (str != "") { SpeechSynthesizer sp = n...
asp 数据读出来的问题!
我数据要怎么<em>读出来</em>了?rnrnrnrn二级:三级1 三级2 三级3 三级4rnrn二级1:三级11 三级22 三级33 三级44rn....rnrnrnrn[b]数据库结构如下:[/b]rnrnrnsid(分类号) PID(上级分类ID) name(分类名称) LSLAST(分类所在层)rnrn1 1 房贷贷款 1rnrn2 1 贷款 2rnrn3 1 贷款1 2rnrn.....rnrnrnrnrnrnrn就是这样的形式。我不知道怎么<em>读出来</em>了!!rn rn
在定义的版本信息,如何读出来
比如:rn[assembly: AssemblyVersion("1.2.*")]rnrn如何在程序中读出这些版本<em>信息</em>?
DVD字幕如何读出来
我想做一个软件,功能是把DVD的字幕读取出来存为文本文件,请问怎么实现啊?rn rn
这个是怎么读出来的。。
我用winhex 打开物理磁盘的时候rnrn发现winhex 读取扇区并没有读完rnrn原本是rn总容量 149GBrn柱面数 19457rn磁道数 255rn扇区/磁道 63rnrn但是下面却还有rnrn柱面数 19457rn磁道数 80rn扇区/磁道 63rn分区 n/arn相对扇区编号 n/arnrn为什么比原本的小了 175 个磁道。 这175个磁道做什么用了。rn还有就是怎么可以<em>读出来</em>下面这个三个(需要什么控制码?)rnrn柱面数 19457rn磁道数 80rn扇区/磁道 63rnrn因为我读取的是rn柱面数 19457rn磁道数 255rn扇区/磁道 63rnrn急需... 一直查不到,搁浅了好久了。rnrnrnrnrn
如何把文字读出来???
我需要把文字<em>读出来</em>,谁意的文字。
doubleselect 从数据库读出来的!
在做struts2+spring2.0+ hibernate3.2rn表rntb_departmentrn (id,name)rntb_employeerrn (id,name)rnrn当选中时department时,employeer的值也跟着改变,谢谢!rnrn最好有个例子,发表我:liangjinbo2008@163.comrn
这个怎么读出来
rnrn rn rn rn rn rn rn rn rn HSDataTransferrn rn rn rnrnrn怎么样<em>读出来</em>serviceName
读出来的怎么都是乱码?
各位大哥,帮<em>帮忙</em>,<em>读出来</em>的怎么都是乱码?rnrn String FILENAME = Server.MapPath("asd.txt");rn rn StreamReader objStreamReader;rn objStreamReader = File.OpenText(FILENAME);rn rn String contents = objStreamReader.ReadToEnd();rn rn Label1.Text=contents;rn //TextBox1.Text = contents;rn rn objStreamReader.Close();rn//第二方法rn StreamReader objReader = new StreamReader("asd.txt");rn string sLine = "";rn ArrayList arrText = new ArrayList();rn sLine = objReader.ReadToEnd();rn Label1.Text = sLine;rn objReader.Close();rnrn把文件改成WORD也是乱码.rn
Access读出来显示WideMemo
Access字段是 备注 类型,在Delphi里<em>读出来</em>显示WideMemorn但是把字段改为 文本 就可以正常读出,但是文本有长度限制,最多255rn我的文本长度不确定,可能很长,怎么解决?
请问,SqlDataReader读出来的数据类型
SqlDataReader 从数据库读取的数据,其类型到底是.NET Framework里面的数据类型,还是数据库中使用的数据类型呢?rnrn比如,转换成布尔值,是转换成bit还是bool呢,空是DBnull.Value呢还是null呢?............等等
这些数据如何读出来
id title adminnamernrn1 abc user01|useri|abcrnrn2 dir user|abc|dddrnrn3 three user01rnrn当登录时是用 账号 "abc" 登录后rnrn如何列出它的管理项目名rnrnabcrndirrnrn当为user01登录后列出rnrnabcrnthree
xml好像编写的不对,哪位大神帮忙看下
是不是我编写的xml文件有问题,运行之后报Exception in thread "main" java.lang.NoClassDefFoundError![图片说明](https://img-ask.csdn.net/upload/201805/03/1525339267_23124.jpg)nxml提示Element type "aop:before" must be followed by either attribute specifications, ">" or "/>"这个错误,但我感觉我写的没问题啊,哪位<em>大神</em><em>帮忙</em><em>看下</em>
为什么我的软盘扇区内容写进去了,读出来不对
我格式化了软盘一个扇区,然后把内容写进去,紧接着就读,那写进去的东西能正确<em>读出来</em>,可如果程序退出了,再运行,读出的内容就是随机数rn这是为什么?哪位大虾遇到过
从predis读出来的键和值排序后内容不对
我同事写的代码,他用predis存储我们的查询条件和查询结果,中途有更改我们的查询条件和查询结果,但是读出的值不是我想要的顺序,所有我就对结果进行了排序,排序后顺序是对了,但是在数组结尾处值就<em>不对</em>了。我不知道问题出在什么地方。rnrn假如排序前结果是:rn[471456_11_0_SGD_2013-11-26_2_2013-11-26] => Array ( [Error] => Unavailable [packagePr] => 0 [sequenceNo] => 11 [checkIn] => 2013-11-26 [checkOut] => 2013-11-26 [nights] => 0 [hotelName] => Own Arrangement ) rn[471444_12_2_SGD_2013-11-26_2_2013-11-28] => Array ( [sequenceNo] => 12 [Error] => Unavailable [packagePr] => 0 [checkIn] => 2013-11-26 [checkOut] => 2013-11-28 [nights] => 2 [hotelName] => Own Arrangement ) rn[471452_13_0_SGD_2013-11-28_2_2013-11-28] => Array ( [Error] => Unavailable [packagePr] => 0 [sequenceNo] => 13 [checkIn] => 2013-11-28 [checkOut] => 2013-11-28 [nights] => 0 [hotelName] => Own Arrangement ) rn[471442_14_1_SGD_2013-11-28_2_2013-11-29] => Array ( [sequenceNo] => 14 [Error] => Unavailable [packagePr] => 0 [checkIn] => 2013-11-28 [checkOut] => 2013-11-29 [nights] => 2 [hotelName] => Own Arrangement ) rnrn排序后结果可能是:[471456_11_0_SGD_2013-11-26_2_2013-11-26] => Array ( [Error] => Unavailable [packagePr] => 0 [sequenceNo] => 11 [checkIn] => 2013-11-26 [checkOut] => 2013-11-26 [nights] => 0 [hotelName] => Own Arrangement ) rn[471444_12_2_SGD_2013-11-26_2_2013-11-28] => Array ( [sequenceNo] => 12 [Error] => Unavailable [packagePr] => 0 [checkIn] => 2013-11-26 [checkOut] => 2013-11-28 [nights] => 2 [hotelName] => Own Arrangement ) rn[471452_13_0_SGD_2013-11-28_2_2013-11-28] => Array ( [Error] => Unavailable [packagePr] => 0 [sequenceNo] => 13 [checkIn] => 2013-11-28 [checkOut] => 2013-11-28 [nights] => 0 [hotelName] => Own Arrangement ) rn[471442_14_1_SGD_2013-11-28_2_2013-11-29] => Array ( [sequenceNo] => 14 [hotelName] => Flaminius [starRating] => 3 [hotelImage] => https://services.abc.com/images/hotels/d5da716c-b32c-4222-839d-3bb3a134007e.jpeg [hotelId] => 4157663 [localLocationId] => 0 [locationId] => 471442 [nights] => 1 [checkIn] => 2013-11-28 [checkOut] => 2013-11-29 [currencyCode] => SGD [supplierId] => 0 [packageId] => 92b6f8ce-b916-4653-aced-069c579493a3 [packagePr] => 100.09 [roomDetail] => Array ( [Room] => Array ( [AdultsCount] => 2 [Availability] => Available [Id] => 1adc296d-9fa9-4eb5-aa67-638f364bdeb6 [RoomBasis] => Bed and Breakfast BB [RoomClass] => Standard [RoomType] => Double ) ) [sessionId] => /88/1095/D20130909T042820/e72c9d41ec034a3a9daf1a57da9172ff ) rnrn我在想我排序也不可能把数组的值给改了,可是我只有删除了排序的代码出来出来的结果就是对的,一加上数组的值就<em>不对</em>。rnrn我们设置查询条件和结果,更新查询条件和结果都是用的下面的函数:rn public function setMkeyValue($args = array())rn rn if(!empty($args) && isset($args['setValue']))rn rn if(isset($args['keyprefix']) && $args['keyprefix'] != '')rn $this->setKeyPrefix($args['keyprefix']);rn $this->newClientConnection();rn rnrn $this->CLIENT->mset($args['setValue']);rn rn rnrnpublic function setKeyPrefix($key_prefix = '')rn rn if($key_prefix != '')rn $this->KEY_PREFIX = $key_prefix;rn rn rn rn
文件的问题....fwrite存了以后 fread读出来数据不对.
fread()<em>读出来</em>的数据<em>不对</em>,,为什么?代码在这里``````rnrnrn[code=C/C++][/code]rnrnrn用这段代码来保存到文件abc 运行3次 保存3段数据```rn#include rnrnmain()rnrn FILE *fp;rnrn struct bookrn rn char a[10];rn int b;rn kkk;rnrn clrscr();rn scanf("%s",kkk.a);rn scanf("%d",&kkk.b);rn rn if((fp = fopen("e:\\abc","a")) == NULL)rn rn printf("error");rn rn if (fwrite(&kkk,sizeof(kkk),1,fp) != 1)rn rn printf("error");rn rn fclose(fp);rnrnrnrnrn用这段代码来把文件abc中的数据<em>读出来</em>`````rnrnrnrn#include rnrnmain()rnrn FILE *fp;rnrn struct bookrn rn char a[10];rn int b;rn kkk[3];rn int i;rnrn clrscr();rn if((fp = fopen("e:\\abc","r")) == NULL)rn rn printf("error");rn rnrn for(i = 0;i < 3; i++)rn rn fseek(fp,i * sizeof(kkk),0);rn if (fread(&kkk[i],sizeof(kkk),1,fp) != 1)rn rn printf("error");rn rn rn fclose(fp);rnrnrnrnrn怎么会<em>不对</em>呢?rn
写入数据库又读出来的二进制文件不对,但字节数一样?
大家帮我看看,我依次按下三个按钮rnOnButtonInitDB();OnButtonReadFileToDB;OnButtonReadDBToFilern源文件1.txt的内容是"http",最后的2.txt的内容是乱的,why?rn//rn_ConnectionPtr m_connection;rn_RecordsetPtr m_recordset;rnrnvoid CTestDlg::OnButtonInitDB()rnrn _bstr_t source("Provider= Microsoft.Jet.OLEDB.4.0;Data Source=c:\\Test.mdb");rn _bstr_t user("admin");rn _bstr_t pwd("");rnrn BOOL m_fConnected;rn HRESULT hr;rn tryrn rn hr = m_connection.CreateInstance(__uuidof(Connection));rn if(SUCCEEDED(hr))rn hr = m_connection->Open(source, user, pwd, 16);rn if(SUCCEEDED(hr))rn hr = m_recordset.CreateInstance(__uuidof(Recordset));rn if(SUCCEEDED(hr))rn m_fConnected = TRUE;rn else rn m_fConnected = FALSE;rn if(!m_fConnected) MessageBox("ADO数据源初始化失败!");rn elsern rn hr = m_recordset->Open("select * from t1",(const char *)sourcern ,adOpenDynamic,adLockOptimistic, adCmdText);rn if(!SUCCEEDED(hr))rn rn AfxMessageBox("数据库失败.");rn rn rn rn catch (_com_error &e)rn rn MessageBox(e.ErrorMessage()); rn m_fConnected = FALSE;rn rnrnrnrnBOOL CTestDlg::OnButtonReadFileToDB() rnrn char *lpBuffer;rn char *temp;rn int m_nFileLen;rn CFile f;rn if(!f.Open("c:\\1.txt",CFile::modeRead))rn rn AfxMessageBox("打开文件失败.");rn return false;rn rn m_nFileLen = f.GetLength();rn lpBuffer = new char[m_nFileLen];rn if(lpBuffer == NULL)rn AfxMessageBox("分配文件缓冲区失败.");rn return false;rn rn f.ReadHuge(lpBuffer,m_nFileLen);rn f.Close();rnrn VARIANT var;rn SAFEARRAY *psa; rn SAFEARRAYBOUND rgsabound[1];rn m_recordset->AddNew(); //添加新记录rn m_recordset->PutCollect("username",_variant_t("小李")); //为新记录填充username字段 rn temp=lpBuffer;rn if(lpBuffer)rn rn rgsabound[0].lLbound = 0;rn rgsabound[0].cElements = m_nFileLen;rn psa = SafeArrayCreate(VT_UI1, 1, rgsabound); //创建SAFEARRAY对象rn for (long i = 0; i < (long)m_nFileLen; i++)rn rn SafeArrayPutElement (psa, &i,temp++);rn //将lpBuffer指向的二进制数据保存到SAFEARRAY对象psa中 rn rn var.vt = VT_ARRAY | VT_UI1;//将var的类型设置为BYTE类型的数组rn var.parray = psa; //为var变量赋值 rn m_recordset->GetFields()->GetItem("oollee")->AppendChunk(var); rn //加入BLOB类型的数据rn rn m_recordset->Update(); //保存我们的数据到库中 rnrn delete []lpBuffer;rn AfxMessageBox("文件写入数据库成功");rn return true;rnrnrnvoid CTestDlg::OnButtonReadDBToFile() rnrn char *lpBuffer;rn m_recordset->MoveFirst();rn long lDataSize = m_recordset->GetFields()->GetItem("oollee")->ActualSize;rn lpBuffer=new char[lDataSize];rn //得到数据的长度rn if(lDataSize>0 && lpBuffer) rn rn VARIANT var;rn var = m_recordset->GetFields()->GetItem("oollee")->GetChunk(lDataSize);rn if (var.vt==(VT_ARRAY | VT_UI1))rn rn SafeArrayAccessData(var.parray,(void **)&lpBuffer);rn //创建目的文件rn CFile f;rn CString lpDestFilename="c:\\2.txt";rn if(!f.Open(lpDestFilename,CFile::modeWrite|CFile::modeCreate))rn rn AfxMessageBox("创建目的文件失败.");rn return;rn rn f.WriteHuge(&lpBuffer,lDataSize);rn f.Close();rn SafeArrayUnaccessData (var.parray);rn rn rn delete[] lpBuffer;rn AfxMessageBox("数据库读出到文件成功");rn
有没有大神帮忙看一下
对一个表进行排序,把行首单元格相同的行排到一起rnrnFor i = 2 To T_Sheet.UsedRange.Rows.CountrnFor j = i + 1 To T_Sheet.UsedRange.Rows.Countrn If T_Sheet.Cells(i, 1) = T_Sheet.Cells(j, 1) Thenrn Rows(i & ":" & i).Select rn Selection.Cutrn Rows(j + 1 & ":" & j + 1).Selectrn Selection.Insert Shift:=xlDown rn Range("R2").Select rn Exit Forrn Elsern End Ifrn Next jrnNext i
大神帮忙看下错。
应用抽象类rnrn#includernclass listrnrnpublic:rn list *head;rn list *tail;rn list *next;rn int num;rn list()rn rn head=tail=next;rn rn virtual void store(int i)=0;rn virtual int retrieve()=0;rn;rnclass queuernrnpublic:rn int retrieve();rn void store(int i); rn;rnvoid queue::store(int i)rnrn list *item;rn item=new queue;rn if(!item)rn rn coutnext=NULL;rn if(!head)rn head=tail;rnrnint queue::retrieve()rnrn int i;rn list *p;rn if(!head)rn rn coutstore(1);rn p->store(2);rn p->store(3);rn cout<<<<<<<
大神帮忙看下这个明文
1D000000000000009D96B63C685DD5DB8A08B93BAF3890DCD6DCC82F74A41B9DEC49108AD14DECA7rnrn有<em>大神</em>知道这段明文是用什么加密来的吗?
大神帮忙看下错在哪里
怎么运行起来后单击磁盘没有节点呢?<em>大神</em><em>帮忙</em><em>看下</em>啊,在线等rnrnimport java.awt.BorderLayout;rnimport java.awt.Color;rnimport java.awt.Component;rnimport java.awt.Container;rnimport java.awt.event.WindowAdapter;rnimport java.awt.event.WindowEvent;rnimport java.io.File;rnrnimport javax.swing.Icon;rnimport javax.swing.JFrame;rnimport javax.swing.JLabel;rnimport javax.swing.JScrollPane;rnimport javax.swing.JTree;rnimport javax.swing.event.TreeSelectionEvent;rnimport javax.swing.event.TreeSelectionListener;rnimport javax.swing.filechooser.FileSystemView;rnimport javax.swing.tree.DefaultMutableTreeNode;rnimport javax.swing.tree.DefaultTreeModel;rnimport javax.swing.tree.TreeCellRenderer;rnimport javax.swing.tree.TreePath;rnrnpublic class DiskTree extends JFrame rn rn private final class FileRenderer implements TreeCellRenderer rn @Overridern public Component getTreeCellRendererComponent(JTree tree, Object value,rn boolean selected, boolean expanded, boolean leaf, int row,rn boolean hasFocus) rn // 转换value为节点对象rn DefaultMutableTreeNode node = (DefaultMutableTreeNode) value;rn Object userObject = node.getUserObject();rn if (!(userObject instanceof File)) rn return new JLabel(userObject.toString());rn rn File folder = (File) userObject;rn FileSystemView view = FileSystemView.getFileSystemView();rn Icon icon = view.getSystemIcon(folder);rn JLabel label = new JLabel("" + folder, icon, JLabel.LEADING);rn label.setBackground(Color.CYAN);rn if (selected) rn label.setOpaque(true);rn else rn label.setOpaque(false);rn rn return label;rn rn rn rn private DefaultMutableTreeNode rootNode;rn private JTree tree;rn private JScrollPane scrollPane;rn rn public DiskTree()rn rn addWindowListener(new WindowAdapter()rn public void windowActivated(WindowEvent e)rn do_WindowActivated(e);rn rn );rn rn rootNode = new DefaultMutableTreeNode("我的电脑");rn scrollPane = new JScrollPane();rn rn tree = new JTree();rn tree.addTreeSelectionListener(new TreeSelectionListener() rn public void valueChanged(TreeSelectionEvent e) rn do_ValueChanged(e);rn rn );rn rn rn tree.setCellRenderer(new FileRenderer());rn scrollPane.setViewportView(tree);rn rn DefaultTreeModel model = new DefaultTreeModel(rootNode);rn tree.setModel(model);rn rn Container container = getContentPane();rn container.add(scrollPane,BorderLayout.CENTER);rn rn setTitle("以树结构显示文件");rn setBounds(300,300,450,300);rn setVisible(true);rn rn rn rn public void do_WindowActivated(WindowEvent e)rn File[] dir = File.listRoots();rn for(File file:dir)rn DefaultMutableTreeNode node = new DefaultMutableTreeNode(file);rn rootNode.add(node);rn rn tree.expandPath(new TreePath(rootNode));rn rnrn public void do_ValueChanged(TreeSelectionEvent e)rn TreePath path = e.getPath();rn DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent();rn Object userObject = node.getUserObject();rn if(!(userObject instanceof File))rn return;rn File folder = (File)userObject;rn if(!folder.isDirectory())rn return;rn File[] files = folder.listFiles();rn for(File file: files)rn rootNode.add(new DefaultMutableTreeNode(file));rn rn rn public static void main(String[]args)rn DiskTree application = new DiskTree();rn application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn rn rnrn
大神帮忙看下,怎么做合理
第一次做网络通信程序,各位<em>大神</em>看看该怎么设计好?rnrn这个程序每几秒跟服务器A通信,根据得到的数据进行计算得到一些数据。然后将这些数据发到一个GUI客户端绘图。rn怎么设计好?起2个进程,然后用管道通信吗?
servlet编译错误,大神帮忙看下
servlet开发环境应该是搭建好的,应该写helloservlet程序是没有问题的,并且用tomcat发布成功,今天写cookie,唯独不可以编译!一直提示参数错误,Cookie的构造方法,如果没有参数,反而是编译通过,我实在是无语了。rn[code=java]import java.io.*;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport javax.servlet.http.Cookie;rnrnpublic class Cookie extends HttpServlet rn rn @Overridern protected void doGet(HttpServletRequest req, HttpServletResponse resp) rn throws ServletException, IOException rn for(int i = 0; i < 3; i++) rn Cookie cookie = new Cookie("session-cookie-"+i, "cookie-value-s"+i);rn cookie.setMaxAge(3600);rn resp.addCookie(cookie);rn rn rn rn @Overridern protected void doPost(HttpServletRequest req, HttpServletResponse resp)rn throws ServletException, IOException rn doGet(req, resp); rn rn[/code]rn错误提示:rn[code=java]Cookie.java:4: 错误: 已在该编译单元中定义Cookiernimport javax.servlet.http.Cookie;rn^rnCookie.java:12: 错误: 无法将类 Cookie中的构造器 Cookie应用到给定类型;rn Cookie cookie = new Cookie("session-cookie-"+i, "cookie-rn"+i);rn ^rn 需要: 没有参数rn 找到: String,Stringrn 原因: 实际参数列表和形式参数列表长度不同rnCookie.java:13: 错误: 找不到符号rn cookie.setMaxAge(3600);rn ^rn 符号: 方法 setMaxAge(int)rn 位置: 类型为Cookie的变量 cookiernCookie.java:14: 错误: 无法将接口 HttpServletResponse中的方法 addCookie应用到给定rn resp.addCookie(cookie);rn ^rn 需要: javax.servlet.http.Cookiern 找到: Cookiern 原因: 无法通过方法调用转换将实际参数Cookie转换为javax.servlet.http.Cookiern4 个错误[/code]
各位大神帮忙看下
错误提示‘rnrnMultiple annotations found at this line:rn - Syntax error, insert ";" to complete rn Statementrn - Syntax error, insert ")" to complete rn MethodInvocationrnrnjsp代码rn rn 错误点rn rn 错误点rn
大神帮忙看下数据库连接问题
[2015-06-09 09:00:45][com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1846)] create connection errorrncom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.Util.getInstance(Util.java:381)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)rn at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)rn at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2359)rn at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:776)rn at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:352)rn at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:284)rn at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:148)rn at com.alibaba.druid.filter.stat.StatFilter.connection_connect(StatFilter.java:211)rn at com.alibaba.druid.filter.FilterChainImpl.connection_connect(FilterChainImpl.java:142)rn at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1377)rn at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1431)rn at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:1844)rnCaused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.rn at sun.reflect.GeneratedConstructorAccessor28.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)rn at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:343)rn at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2283)rn ... 15 morernCaused by: java.net.UnknownHostException: loalhsotrn at java.net.InetAddress.getAllByName0(InetAddress.java:1157)rn at java.net.InetAddress.getAllByName(InetAddress.java:1083)rn at java.net.InetAddress.getAllByName(InetAddress.java:1019)rn at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:243)rn at com.mysql.jdbc.MysqlIO.(MysqlIO.java:292)rn ... 16 morern
大神帮忙看下这段代码
public class Test rn static boolean foo(char c) rn System.out.print(c);rn return true;rn rn public static void main( String[] argv ) rn int i =0;rn for ( foo('A'); foo('B')&&(i);rn rn rn rn输出结果ABDCBDCBrn为什么
大神帮忙看下这个加密
[code=csharp]string pwd = Md5Pwd(Pwd0).ToLower();rn public string Md5Pwd(string strText)rn rn string charset = "utf-8";rn bool Is32Bit = true;rnrn string PwdKey = System.Configuration.ConfigurationManager.AppSettings["NewPayPwdKey"].Trim().ToString();rn tryrn rn strText += PwdKey;rn MD5CryptoServiceProvider MD5 = new MD5CryptoServiceProvider();rn string Md5Val = BitConverter.ToString(MD5.ComputeHash(Encoding.GetEncoding(charset).GetBytes(strText))).Replace("-", "").ToUpper();rn if (!Is32Bit)rn rn Md5Val = Md5Val.Substring(8, 16);rn rnrn if (Is32Bit)rn rn string before = Md5Val.Substring(0, 8);rnrn string middle = Md5Val.Substring(8, 16);rnrn string last = Md5Val.Substring(Md5Val.Length - 8);rnrn Md5Val = last + before + middle;rn rnrn return Md5Val;rn rn catch (Exception ex)rn rn string Errinfo = ex.Message;rn return string.Empty;rn rn rn[/code]rn我想问的是,这个md5加密看起来和常规的md5不一样啊,如果我想把这个程序加密出来的密文,还原成常规md5的密文,不知道行不行,如果可以该怎么做,如果不行,请说明原因。
android+rxjava+gson 出错,大神帮忙看下
本人新手刚自学java和安卓,现在自己摸索 SYBASE数据库+JAX-RS 和 android + retrofit + rxjava + gson : 现在总是在POST抛出异常,用CURL测试都是成功更新数据库,证明服务器端没有问题。rn08-10 12:25:36.737 2385-2500/wm.wmb E/AndroidRuntime: FATAL EXCEPTION: RxCachedThreadScheduler-1rn java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.Worker thread.rn at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:62)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)rn at java.util.concurrent.FutureTask.run(FutureTask.java:137)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:150)rn at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:264)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)rn at java.lang.Thread.run(Thread.java:856)rn Caused by: java.lang.StackOverflowErrorrn at java.nio.charset.CharsetEncoderICU.getArray(CharsetEncoderICU.java:228)rn at java.nio.charset.CharsetEncoderICU.encodeLoop(CharsetEncoderICU.java:169)rn at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:415)rn at java.io.OutputStreamWriter.convert(OutputStreamWriter.java:178)rn at java.io.OutputStreamWriter.write(OutputStreamWriter.java:324)rn at java.io.Writer.write(Writer.java:141)rn at com.google.gson.stream.JsonWriter.string(JsonWriter.java:551)rn at com.google.gson.stream.JsonWriter.writeDeferredName(JsonWriter.java:402)rn at com.google.gson.stream.JsonWriter.beginObject(JsonWriter.java:307)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:235)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.write(ReflectiveTypeAdapterFactory.java:113)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.write(ReflectiveTypeAdapterFactory.java:240)rn at com.google.gson.Gson$FutureTypeAdapter.write(Gson.java:903)rn at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:68)rn at com.google.gson.internal.bind.ReflectiveTypeAdapterFactoryrnrnrnAndroid测试页面按钮代码如下(GET可以正常运行)rn Entity ls_ent=new Entity();rn ls_ent.setchnname("测试公式");rn ls_ent.setengname("tstddd");rn Gson jsonObject =new Gson();rn jsonObject.toJson(ls_ent);rn Retrofit retrofit = new Retrofit.Builder()rn .baseUrl("http://192.168.1.3:8080/wm1/rest/")rn .addConverterFactory(GsonConverterFactory.create())rn .addCallAdapterFactory(RxJavaCallAdapterFactory.create())rn .build();rn ApiService apiService = retrofit.create(ApiService.class);rn apiService.setEnInfo(jsonObject)rn .subscribeOn(Schedulers.io())rn .observeOn(AndroidSchedulers.mainThread()) rn .subscribe(new Subscriber() //32rn @Overridern public void onCompleted() rn mProgressBar.setVisibility(View.GONE);rn // mtv1.setText("OK");rnrn rnrn @Overridern public void onError(Throwable e) rn mProgressBar.setVisibility(View.GONE);rn mTvContent.setText(e.getMessage());rn mtv1.setText("NO");rnrn rnrn @Overridern public void onNext(ExResult getEnInfoResponse) rn if (getEnInfoResponse.getresult() == "Y") rn mTvContent.setText("修改公司名称成功");rn else rn mTvContent.setText("修改公司名称失败");rn rn rn ); //32rnrn///////////////////////////////////APIrnpackage wm.wmb;rnrnimport com.google.gson.Gson;rnrnimport java.util.List;rnrnimport retrofit.Call;rnimport retrofit.http.Body;rnimport retrofit.http.GET;rnimport retrofit.http.POST;rnimport retrofit.http.Query;rnimport rx.Observable;rnimport wm.wmb.model.Entity;rnimport wm.wmb.model.ExResult;rnimport wm.wmb.response.GetEnInfoResponse;rnimport wm.wmb.response.GetIpInfoResponse;rnrn/**rn * @Project retrofitrxandroiddagger2rn * @Packate com.micky.retrofitrxandroiddagger2.data.apirn * @Descriptionrn * @Author Micky Liurn * @Email mickyliu@126.comrn * @Date 2015-12-21 17:22rn * @Version 0.1rn */rnpublic interface ApiService rn /* @GET("service/getIpInfo.php")rn Call getIpInfo(@Query("ip") String ip);*/rnrn @GET("service/getIpInfo.php")rn Observable getIpInfo(@Query("ip") String ip);rn @GET("Entity/NameList")rn Observable> getEnInfo();rn @POST("Entity/Nameset")rn Observable setEnInfo(@Body Gson jsonObject);rnrnrnrn
JNI错误大神帮忙看下
错误如下,请各位大侠<em>帮忙</em>指出错误在哪个库,哪行代码解决方案。rnrnrn10-13 20:37:18.047 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can't call android.content.pm.ApplicationInfo android.content.Context.getApplicationInfo() on instance of android.app.Applicationrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] in call to CallObjectMethodVrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] "Thread-153" prio=5 tid=15 Runnablern10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | group="main" sCount=0 dsCount=0 obj=0x12f2b0a0 self=0x9d457c00rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | sysTid=9240 nice=0 cgrp=default sched=0/0 handle=0xb4928180rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | state=R schedstat=( 6901334 0 5 ) utm=0 stm=0 core=2 HZ=100rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | stack=0x9acea000-0x9acec000 stackSize=1012KBrn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] | held mutexes= "mutator lock"(shared held)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #00 pc 00004ef0 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #01 pc 000036d5 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #02 pc 002439c9 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream >&, int, char const*, art::mirror::ArtMethod*)+68)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #03 pc 00227d71 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream >&) const+144)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #04 pc 000b099b /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #05 pc 000b10e1 /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #06 pc 000b1c9b /system/lib/libart.so (art::ScopedCheck::CheckVirtualMethod(_jobject*, _jmethodID*)+250)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #07 pc 000b8a07 /system/lib/libart.so (art::CheckJNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+70)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #08 pc 000419ad /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #09 pc 0004b347 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #10 pc 00049b3b /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #11 pc 0001efab /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #12 pc 00023dbf /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #13 pc 00024221 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #14 pc 00020803 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #15 pc 00020fb1 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #16 pc 00021623 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #17 pc 00052d01 /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #18 pc 00052c1d /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #19 pc 00053cdf /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #20 pc 000451ff /data/app/com.dchip.smartdoor-1/lib/arm/libBaiduSpeechSDK.so (???)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #21 pc 00016eaf /system/lib/libc.so (__pthread_start(void*)+30)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] native: #22 pc 00014deb /system/lib/libc.so (__start_thread+6)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] (no managed stack frames)rn10-13 20:37:18.048 9206-9240/com.dchip.smartdoor A/art: art/runtime/check_jni.cc:65] rnrn
内存泄露,请大神帮忙看下
[code=c]rnrn//类定义rnclass t_satObs rn public:rn t_satObs() rn t_satObs(const t_satObs& old) // copy constructor (deep copy)rn _staID = old._staID;rn _prn = old._prn;rn _time = old._time;rn for (unsigned ii = 0; ii < old._obs.size(); ii++) rn _obs.push_back(new t_frqObs(*old._obs[ii]));rn rn rn ~t_satObs() for (unsigned ii = 0; ii < _obs.size(); ii++) delete _obs[ii];rnrn std::string _staID;rn t_prn _prn;rn bncTime _time;rn std::vector _obs;rn;rn//出现问题的循环,如果加上这段代码,内存总是一直增加,可是没有发现什么问题呀!rnwhile(true)rnrn if (_rnx)rn rn long iSec = long(floor(obs._time.gpssec()+0.5));rn if (_rnx->samplingRate() == 0 || iSec % _rnx->samplingRate() == 0)rn rn _rnx->deepCopy(obs);rn rn _rnx->dumpEpoch(format, obs._time);rn rn rn//调用的函数rnvoid deepCopy(t_satObs obs) rn _obs.push_back(obs); //_obs为_rnx成员变量,定义:QList _obs;rnrnvoid dumpEpoch(const QByteArray& format, const bncTime& maxTime) rn QList obsList;rn QMutableListIterator mIt(_obs);rn while (mIt.hasNext()) rn t_satObs obs = mIt.next();rn if (obs._time < maxTime) rn obsList.push_back(obs);rn mIt.remove();rn rn rnrn[/code]rn大家费心了,如果能指出错误,会补分,跪谢!
大神帮忙看下这段js代码
为何每次点击之后不会在下面替换掉图片,而是跳出来一个新的页面,貌似prepareGallery()函数没有被调用n# html代码nnn```n nnn n let's do itn nnnn picturen n n 泰勒斯威夫特n n n 阿尔帕西诺n n n 狼n n n 希斯莱杰n nnn choose your imgn nnn```nn# js代码nnn```n /**n * Created by kaka on 2017/3/30.n */nnfunction prepareGallery() n if (!document.getElementsByTagName()) return false;n if (!document.getElementById()) return false;n if (!document.getElementById("imagegallery")) return false;n var gallery = document.getElementById("imagegallery");nn var links = gallery.getElementsByTagName("a");n for (var i = 0; i < links.length; i++) n links[i].onclick = function () n return showPic(this);n n nnnfunction sss() nn alert(dwadwadwad);nnfunction showPic(whichpic) n if (!document.getElementById("placeholder")) return false;n var source = whichpic.getAttribute("href");n var placeholder = document.getElementById("placeholder");n if (placeholder.nodeName != "IMG") return false;n placeholder.setAttribute("src", source);n if (document.getElementById("description")) n var text = whichpic.getAttribute("title") ? whichpic.getAttribute("title") : "";n var description = document.getElementById("description");n if (description.firstChild.nodeType == 3) n description.firstChild.nodeValue = text;n n n return true;nnnn```nnnn
大神帮忙看下啊!!!
我写了一段代码,循环等待接受用户输入,并根据输入的年月输出当月的月历,且按键盘的左右键时可以显示前一月后一月的月历。我对这个键盘控制真的不清楚啊,,请<em>大神</em>点拨下啊。rnrnrnrnrn#include rn#includern#includern#includernrn/*定义常量*/rnrn/*左移键*/rnrn#define LEFT 0x4b00rnrn/*右移键*/rnrn#define RIGHT 0x4d00rnrnrnrnint JgYr(int yr) rn rnif (yr%4==0&&yr%100!=0&&yr%100==0&&yr%400==0) rnreturn 1; rnelse rnreturn 0; rn rnrnint CalWkd(int yr,int mth) rn rnint ds=0,i,rst,wkd; rnint mthd[13]=0,31,28,31,30,31,30,31,31,30,31,30,31; rnif (JgYr(yr)) rnmthd[2]=29; rnfor (i=1;i12) rnreturn 0; rnif (JgYr(yr)) rnmthd[2]=29; rnmtd=mthd[mth]; rnwkd=CalWkd(yr,mth); rnshowcld(wkd,mtd); rnprintf("\n");rnreturn 0; rn rnrnrnrn rn
InflateException,哪位大神帮忙看下
android.view.InflateException: Binary XML file line #2 Error inflating class com.wudi.todo.TodoListItemView.rn一直报这个异常,不知道怎么回事,google了好多结果说是构造方法的问题,我构造方法三个都写了还是没用,[code=Java]rnpackage com.wudi.todo;rnrnimport android.content.Context;rnimport android.content.res.Resources;rnimport android.graphics.Canvas;rnimport android.graphics.Paint;rnimport android.util.AttributeSet;rnimport android.widget.TextView;rnrnpublic class ToDoListItemView extends TextView rnrn public ToDoListItemView(Context context, AttributeSet attrs, int defStyle) rn super(context, attrs, defStyle);rn init();rn // TODO Auto-generated constructor stubrn rnrn public ToDoListItemView(Context context, AttributeSet attrs) rn super(context, attrs);rn init();rn // TODO Auto-generated constructor stubrn rnrn public ToDoListItemView(Context context) rn super(context);rn init();rn // TODO Auto-generated constructor stubrn rn private Paint marginPaint;rn private Paint linePaint;rn private int paperColor;rn private float margin;rn rn public void init()rn Resources myResources=getResources();rn marginPaint=new Paint(Paint.ANTI_ALIAS_FLAG);rn rn marginPaint.setColor(myResources.getColor(R.color.notepad_margin));rn linePaint=new Paint(Paint.ANTI_ALIAS_FLAG);rn linePaint.setColor(myResources.getColor(R.color.notepad_lines));rn rn paperColor=myResources.getColor(R.color.notepad_paper);rn margin=myResources.getDimension(R.dimen.notepad_margin);rn rnrn @Overridern protected void onDraw(Canvas canvas) rn // TODO Auto-generated method stubrn super.onDraw(canvas);rn canvas.drawColor(paperColor);rn rn canvas.drawLine(0, 0, getMeasuredHeight(), 0, linePaint);rn canvas.drawLine(0, getMeasuredHeight(), getMeasuredWidth(), getMeasuredHeight(), linePaint);rn rn canvas.drawLine(margin, 0, margin, getMeasuredHeight(), marginPaint);rn rn canvas.save();rn canvas.translate(margin, 0);rn rn super.onDraw(canvas);rn canvas.restore();rn rn rnrnrnrn[/code]rn这是报错的那个类rn[code=XML]rnrn[/code]rn这是报错的那个XMLrn
大神帮忙看下代码
本人小白一个,今天再查看一个网页源文件时遇到下面的代码,格式太复杂了,但看起来又不像是加密的,请各<em>大神</em><em>帮忙</em>鉴定一下是否是经过特殊处理的过代码?如果是该如何转换为通俗的易懂的格式。rn完整代码太长了,请看链接:http://szjj.ky51.cn/Public/Js/jquery-1.11.1.min.jsrnrn部分代码如下:rn/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */rn!function(a,b)"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a)if(!a.document)throw new Error("jQuery requires a window with a document");return b(a):b(a)("undefined"!=typeof window?window:this,function(a,b)var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h=,i=h.toString,j=h.hasOwnProperty,k=,l="1.11.1",m=function(a,b)return new m.fn.init(a,b),n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b)return b.toUpperCase();m.fn=m.prototype=jquery:l,constructor:m,selector:"",length:0,toArray:function()return d.call(this),get:function(a)return null!=a?0>a?this[a+this.length]:this[a]:d.call(this),pushStack:function(a)var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b,each:function(a,b)return m.each(this,a,b),map:function(a)return this.pushStack(m.map(this,function(b,c)return a.call(b,c,b))),slice:function()return this.pushStack(d.apply(this,arguments)),first:function()return this.eq(0),last:function()return this.eq(-1),eq:function(a)var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[]),end:function()return this.prevObject||this.constructor(null),push:f,sort:c.sort,splice:c.splice,m.extend=m.fn.extend=function()var a,b,c,d,e,f,g=arguments[0]||,h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||,h++),"object"==typeof g||m.isFunction(g)||(g=),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:,g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g,m.extend(expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a)throw new Error(a),noop:function(),isFunction:function(a)return"function"===m.type(a),isArray:Array.isArray||function(a)return"array"===m.type(a),isWindow:function(a)return null!=a&&a==a.window,isNumeric:function(a)return!m.isArray(a)&&a-parseFloat(a)>=0,isEmptyObject:function(a)var b;for(b in a)return!1;return!0,isPlainObject:function(a)var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;tryif(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1catch(c)return!1if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b),type:function(a)return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a,globalEval:function(b)b&&m.trim(b)&&(a.execScript||function(b)a.eval.call(a,b))(b),camelCase:function(a)return a.replace(o,"ms-").replace(p,q),nodeName:function(a,b)return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase(),each:function(a,b,c)var d,e=0,f=a.length,g=r(a);if(c)if(g)for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)breakelse for(e in a)if(d=b.apply(a[e],c),d===!1)breakelse if(g)for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)breakelse for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a,trim:function(a)return null==a?"":(a+"").replace(n,""),makeArray:function(a,b)var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c,inArray:function(a,b,c)var d;if(b)if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return creturn-1,merge:function(a,b)var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a,grep:function(a,b,c)for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e,map:function(a,b,c)var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i),guid:1,proxy:function(a,b)var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function()return a.apply(b||this,c.concat(d.call(arguments))),e.guid=a.guid=a.guid||m.guid++,e):void 0,now:function()return+new Date,support:k),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b)h["[object "+b+"]"]=b.toLowerCase());function r(a)var b=a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in avar s=function(a)var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+-new Date,v=a.document,w=0,x=0,y=gb(),z=gb(),A=gb(),B=function(a,b)return a===b&&(l=!0),0,C="undefined",D=1<b;b++)if(this[b]===a)return b;return-rn
大神帮忙看下存储过程
[code=sql]CREATE PROCEDURE [dbo].[G1_GetRecruitListByAllItems]rn -- Add the parameters for the stored procedure herern (rn@Dept varchar(50),rn@Statues int,rn@StartTime datetime,rn@EndTime datetimern)rn rnASrnBEGINrn rn SET NOCOUNT ON;rn declare @sql varchar(1000)rn set @sql = 'rn SELECT re.Id,rn de.DepartmentName,rn re.CreateTime,rn us.UserName,rn re.Satern FROM rn G1_Recruit as re JOIN G1_Department as de ON re.DeptId=de.DepartmentIdrn LEFT JOIN G1_User as us ON re.CreateUserId=us.UserId where 1=1 rnrn 'rn rn if(@Dept !='==请选择==')rn BEGINrn --print '到达Dept判断 'rn SET @sql = @sql + ' and de.DepartmentName = ''' + @Dept + ''''rn ENDrnrn if(@Statues !=4)rn BEGINrn --print '到达Statues判断'rn SET @sql = @sql + ' and re.Sate =' + cast(@Statues as varchar(2))rn --print '状态判断完成'rn ENDrn rn if(@StartTime!=null)rn BEGINrn --print '到达时间判断'rn SET @sql = @sql + ' and re.CreateTime >= ''' +@StartTime+''''rn --print '时间判断完成'rn ENDrnrn if(@EndTime!=null)rn BEGINrn --print '到达时间判断'rn SET @sql = @sql +' and re.CreateTime rnrn PRINT @sqlrn EXEC (@sql)rn rnEND[/code]rn[img=https://img-bbs.csdn.net/upload/201611/29/1480410563_632951.png][/img]rn为什么输了时间还是没进行比较
getprofileint读取注册表 没读出来
在Project A写入 rn WriteProfileInt(gszPROFILE_HW_CONFIG, gszPROFILE_SECS_GEM, m_bSecsGem);rnrn在Project A读取rn int m_nSecsGem=GetProfileInt(gszPROFILE_HW_CONFIG, gszPROFILE_SECS_GEM, 5);rnrn可以读到,rn但在同solution下project B下rnProject B中Class 不基于于winapprn CWinApp* pApp =AfxGetApp();rn int m_nSecsGem=pApp->GetProfileInt(gszPROFILE_HW_CONFIG, gszPROFILE_SECS_GEM, 5);rn读取老是失败?rn为什么?rnrn rn
fileread函数为什么读出来是'?'
tot_b = ''rnli_FileNum = FileOpen(sle_filename.text, LineMode!)rndo while bytes_read <> -100rn bytes_read = FileRead(li_FileNum, b)rn messagebox(string(bytes_read),b)rn tot_b = tot_b + brnlooprnrnFileClose(li_FileNum)rnrn每次messagebox显示出来的<em>信息</em>都是'?'这是为什么????但是bytes_read的值是正常的,,谁能告诉原因
如何将内存中的东西读出来
如题!
怎么把TAB键读出来
在一字符串中怎么把TAB键<em>读出来</em>
INI读出来的东西怎么会这样?
我<em>读出来</em>的东西为什么后面会有一长串类似'r'的符号,这个符号输不出来.(这个是在中断的时候,鼠标放在变量上看到的.)rn但,我是让<em>读出来</em>的字符和我的固定字符做比较,结果不相等.rn然后我的做法是,在程序上放个TEXTBOX控件,让TEXT等于它,再让它等于TEXT.rn这样就没'r'了,值也相等了。rn在测试的时候发现好象和读出的字符串的长度有关系。....哎.为什么啊?rn[code=VB]Option ExplicitrnPrivate Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As LongrnPrivate Declare Function GetPrivateProfileString Lib "Kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, lpKeyName As Any, ByVal lpDefault As String, ByVal lpRetunedString As String, ByVal nSize As Long, ByVal lpFileName As String) As LongrnPrivate Declare Function WritePrivateProfileString Lib "Kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lplFileName As String) As LongrnrnPrivate r As LongrnPrivate entry As StringrnPrivate iniPath As StringrnrnrnrnFunction GetFromINI(AppName As String, KeyName As String, FileName As String) As String '读rn Dim RetStr As Stringrn RetStr = String(255, Chr(0)) 'getpps参数为:小节名,字段名,默认返回值,缓冲区,最大字符数量,文件名(没路径的话就去WINDOWS里自动找)rn GetFromINI = Left(RetStr, GetPrivateProfileString(AppName, ByVal KeyName, "", RetStr, Len(RetStr), FileName))rnEnd FunctionrnrnPrivate Sub Command1_Click()rnText1.Text = GetFromINI("基本配置", "唤醒时间", iniPath)rnEnd SubrnrnPrivate Sub Form_Load()rn iniPath$ = App.Path + "\配置文件.ini"rnEnd Sub[/code]
怎样把BIOS例行程序读出来
各位高人,怎样读出PC机中的BIOS例行程序?
ReadProcessMemory函数读出来的结果不正确
我建立了2个工程 第一个是rn#include rn#include rnrnvoid main()rnrnint *a = new int(100);rnstd::cout<
word中的text怎么读出来
一编word文档里面已经有好多bookmark了,怎么一次把所有的字都读到一个变量里?rn我的代码如下:rnrn Dim LObj_WordApp As Word.Applicationrn Dim LObj_WordDoc As Word.Documentrn Dim LStr_TmpStr As StringrnrnSet LObj_WordApp = New Word.ApplicationrnSet LObj_WordDoc = LObj_WordApp.Documents.open("c:\test.dot")'打开模板rnrn'**************写点东西******************rn LObj_WordDoc.Bookmarks("整改要求").Range.Text = "test1"rn LObj_WordDoc.Bookmarks("整改时间").Range.Text = now() rn LObj_WordDoc.Bookmarks("整改人").Range.Text = "test2"rn LObj_WordDoc.Bookmarks("办理时限").Range.Text = "test3"rn'****************写完**********************rnrnLStr_TmpStr = '就是这里怎么读取整编的文档?请高手指点rnrn LObj_WordDoc.savern LObj_WordDoc.Close Falsern LObj_WordApp.Quit (False)rn Set LObj_WordDoc = Nothingrn Set LObj_WordApp = Nothing
为什么.txt文件读出来的是乱码?
为什么<em>读出来</em>是乱码?rnstring licenseFile=Application.StartupPath+@"\\key.txt";rn MessageBox.Show(licenseFile);rn bool isExist=File.Exists(licenseFile);rn if(isExist)rn rn tryrn rn StreamReader sr=new StreamReader(licenseFile,System.Text.Encoding.Unicode);rn this.label1.Text=sr.ReadToEnd();rn rn rn rn catch(Exception ex)rn rn throw(ex);rn
输入1个数字,同时读出来
通过文本框输入1个数字,通过API函数<em>读出来</em>,包含1-10的wav文件。
如何将数据库的数据读出来显示
很简单的问题,如何将数据库的数据<em>读出来</em>以表格的形式显示?rn[code=C#]rnprotected void Page_Load(object sender, EventArgs e)rn rn string str = "Server=localhost;DataBase=Norwind;UID=sa;PWD=**";rn SqlConnection mycon = new SqlConnection(str);rn mycon.Open();rnrnrn [/code]rn就写了这么几句,下来不会了~~大家<em>帮忙</em>啊
读出来汉字的是乱码
FileStream fs=new FileStream ("c:\test.txt",FileMode .Open ,FileAccess .Read ,FileShare .None );rnStreamReader srReadLine=new StreamReader (fs);rnstrContext =srReadLine.ReadLine();rn结果我<em>读出来</em>汉字的是乱码,不是汉字的读取正常,请问如何解决,谢谢rnrn
如何把下面的数据读出来
xml内容rnrnrn rn title1body1rn rnrn rn title2body2rn rnrn rn title3</titlern body3rn rnrnrnrnrn如何解析出来?
access的datatime字段如何读出来
使用CAdoRecordBinding的派生类作数据库绑定,数据库里有Datetime字段,知道应该如何将它取出来
为什么中文读出来是乱码?
[code=Java]rnpublic static void main(String[] args)rnrn FileInputStream fis=new FileInputStream("f:/doc/1.txt");rn while(fis.available()!=0)rn rn int len=fis.read();rn Thread.sleep(500);rn System.out.print((char)len);rn rn fis.close();rnrn[/code]rnrnf:/doc/1.txt中的汉字打印出来是乱码,要怎么改,才能以汉字的形式显示出来啊?
结构体数组写成XML文件,并且读出来
typedef struct tag_testrn int q;rn test;rnrn typedef struct tag_test1rn int w;rn test m[5];rn test1;rnrn test1 myTest[5];rnrn for(int i = 0;i<5;j++)rn rn myTest[i].m[j].q = 100*i+j;rn rn rnrn然后想把myTest中的内容写入文件怎么办?用CMarkuprnrn如何把文件中的内容<em>读出来</em>,再写入数组中,比如一个新的数组test1 MyTest1【5】中?rntest1 数组用CArray 数量不定时怎么办??
写入到24c02和读出来,出现了疑问
我往里面写了一个2,但是<em>读出来</em>的是3.为什么
把textbox1中的文字读出来
发出声音的那种,可以实现么
如何将图片中的文字读出来
-
comboBox1和数据库读出来的问题
using System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Text;rnusing System.Windows.Forms;rnusing System.Data.SqlClient;rnrnnamespace WindowsApplication10rnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rnrn private void textBox1_TextChanged(object sender, EventArgs e)rn rnrn rnrn private void Form1_Load(object sender, EventArgs e)rn rn textBox1.Enabled = false;rn textBox2.Enabled = false;rn comboBox1.Enabled = false;rn rn rnrn private void button3_Click(object sender, EventArgs e)rn rn listView1.Columns.Clear();rn listView1.Items.Clear();rn ColumnHeader hea = new ColumnHeader();rn ColumnHeader hea2 = new ColumnHeader();rn ColumnHeader hea3 = new ColumnHeader();rnrn hea.Text = "姓名";rn hea2.Text = "年龄";rn hea3.Text = "性别";rnrn listView1.Columns.AddRange(new ColumnHeader[] hea, hea2, hea3 );rn rn SqlConnection con = new SqlConnection(@"Data Source=owen\SQL2008;Initial Catalog=mydb;Persist Security Info=True;User ID=sa;Password=sa");rn SqlCommand com = new SqlCommand("select * from dbo.Users ", con);rn con.Open();rn SqlDataReader dr = com.ExecuteReader();rn while (dr.Read()) rn rn ListViewItem lv = new ListViewItem();rn lv.Text = dr[0].ToString();rn for (int i = 1; i < 3; i++) rn rn lv.SubItems.Add(new ListViewItem.ListViewSubItem().Text = dr[i].ToString());rn rn listView1.Items.Add(lv);rn rn con.Close();rn rnrn private void listView1_SelectedIndexChanged(object sender, EventArgs e)rn rn rn if (listView1.SelectedItems.Count > 0) rn rn textBox1.Text = listView1.SelectedItems[0].SubItems[0].Text;rn textBox2.Text = listView1.SelectedItems[0].SubItems[1].Text;rn if (listView1.SelectedItems[0].SubItems[2].Text == "男")------rn //这里.比较不了.为什么.0是男,1是女....数据库sex字段是nchar(10)型的.rn rn comboBox1.SelectedIndex = 0;rn rn else rn rn comboBox1.SelectedIndex = 1;rn rn rn rn rn
fread读出来的是错误数值?
用“rb+”方式打开文件,<em>读出来</em>的却是错误值rnrn printf("---%d",x3=ftell(f1));rn fread((char*)&x1,1,1,f1);rn printf("HTB of current lib is: %d",x1);rn printf("\nInput new set: ");rn printf("---%d",x3=ftell(f1));rn scanf("%u",&x1);rn while( (x0=getchar())!='\n' );rn fseek(f1,-1,SEEK_CUR);rn fwrite((char*)&x1,1,1,f1);rnrn输出为:rn ---3 ---4rn在UE下查看磁盘上的文件,值应该为6.但是printf显示的都是0!但是写数据的话,fwrite又能写正确的值rn这有可能是什么回事呢?
怎么把TXT文件的数据读出来?
我想把一个.txt文件中的数据<em>读出来</em>,该怎么读?例如,有个txt文档rn 111111 //----rn 222222 qwqwrn 333333 1241rn 444444rn我只想把111111,22222,33333,444444取到一个数组中,该怎么处理?rn
怎样把数据库中的 读出来
我数据库里 image 类型中的 数据<em>读出来</em>。rn最好是直接<em>读出来</em>,就像读其基本数据类型一样?rn
forms验证,如何读出来变量值。。。
objTicket = new FormsAuthenticationTicket(1,txtuser.Text, DateTime.Now, DateTime.Now.AddMonths(1), false, struser);rnrn登陆后怎么把struser的值<em>读出来</em>那?????(c#)rnstruser的值是多个用分号分开的字符串。。rn<em>帮忙</em>了。。。
如何把HtmlTextWriter流读出来?
如何在asp.net的页面呈现这个阶段把HtmlTextWriter流<em>读出来</em>,这个流好像不能读我不知道该如何转换.请<em>帮忙</em>讨论一下.rn
Request读出来的中文是乱码..
我用Request读取用户提交的表单,位是里面的中文都变成"??".页面提交页面Page里有加ResponseEncoding="gb2312".
odbcdatareader 读出来的数据无法转换!
数据库是MYSQL,使用C#开发asp.net程序rnOdbcDataReader dr= CmdObj.ExecuteReader();rnif(dr.Read())rnrnResponse.ContentType = dr["phototype"].ToString();//设定输出文件类型rn //输出图象文件二进制数制rnint i=(int)dr["photolen"];rn//Response.OutputStream.Write((byte[])dr["photo"], 0, (int)dr["photolen"]); rnResponse.End();rnrn在int i=(int)dr["photolen"];处报“指定的转换类型无效”rn数据库中photolen 是int型,photo是binrn原来是从网上抄了个mssql的图片存取程序,改成mysql的。rn但是存图可以,显示图片就是不行,老停在rnResponse.OutputStream.Write((byte[])dr["photo"], 0, (int)dr["photolen"]); rn这里,报“指定的转换类型无效”,原来以为是((byte[])dr["photo"]转换有问题(因为mysql没有image字段类型,只能用bin类型),但后来发现是(int)dr["photolen"]报错,所以有此一问,还望各位大虾不吝赐教!
将字符串写入文件并读出来
/**      * 文件名:WriteAndPrint.java      *      * 版本<em>信息</em>:      * 日期:2016年10月12日      * Copyright 足下 Corporation 2016       * 版权所有      *      */ package homework; import java.io.BufferedRead
怎么DataReader读出来的是重复的?
我用DataReader来判断数据库里时间字段是否和当前时间相同,如果相同,则显示一个ImangeButton,但为什么用DataReader<em>读出来</em>的都是重复的?表里一共只有两个记录,<em>读出来</em>是两个两个重复的,如:rn2005-11-212005-1-52005-11-212005-1-5,麻烦大家帮我看看代码写的对<em>不对</em>,rnImageButton NewsIcon=((ImageButton)e.Item.FindControl("News_Icon"));rnOleDbCommand Cmd=new OleDbCommand("Select Time From Studio_News",Icon_Conn);rn OleDbDataReader ODR=Cmd.ExecuteReader();rn while(ODR.Read())rn rn string Short_DT=Convert.ToDateTime(ODR["Time"]).ToShortDateString();rn Response.Write(Short_DT);rn if(Short_DT==DT)rn rn NewsIcon.Visible=true;rn rn elsern rn NewsIcon.Visible=false;rn rn
UserControl_ReadProperties是从哪里读出来的值
UserControl_ReadProperties是从哪里<em>读出来</em>的值]rn如何彻底清除掉里面的所有值
把数字用声音读出来
把数字用声音<em>读出来</em>.有需要的朋友可以看看.
让你的电脑语音读出来
输入文字,让你的电脑语音<em>读出来</em>。资源大小:4KB 上传日期:2009-08-25 资源积分:2分 下载次数:95 上 传 者:VB501207256 标  签: 电脑语音,电脑读文字,文字,电脑,语音 分 享 到: 收藏(5) 评论(4) 举报 我的待评论资源 - 资源简介很简单的了。难者不会,会者不难。看了就知道。呵呵。 还可以用一些英文单词组织起来变成中文哦。。连地方语言都可以讲出来。呵呵。 【推荐】嵌入式高薪就业之路【下载】嵌入式从业人员调查报告Struts2 高危漏洞修复方案 HTML5应用性能调优工具WAPA 开放式虚拟化解决方案非常有用的技术开源网站..
如何把MSHFlexgrid的数据读出来
我想用文本框把MSHFlexGrid1的当前数据<em>读出来</em>,可以高亮显示却怎么也选不中,并输出来,请帮帮我,在线期待你的<em>帮忙</em>!!!rn
如何把握保存的文件读出来
DElphi+ADO+Oracle,我把图像文件已经保存倒oracle中了,用memorystream保存的,各种格式的都有(gif,bmp,jpeg),现在我想把它<em>读出来</em>,请问怎么读呀?我想最好先把它存为一个文件,然后用一个windwos自带的软件打开它,可是读取用stream保存的内容,我又不知道该保存成一个什么样格式的文件,我该怎么把哪?同样还有各种音频、视频的数据
J2ME如何把中文读出来
在J2ME中是否有一种API或中文的语音库可以使之读取中文,比如有的手机可以阅读中文短信(自己没有声源)。如何做到这一点啊?公司要求开发个手机中文发音的功能,大家可以给点意见啊?或要去学习那些方面的知识?希望高手们赐教。(顶者有分)
为什么document.body.scrollTop读出来的总是0?
为什么document.body.scrollTop<em>读出来</em>的总是0?rnrnIE6.Windows2000Serverrnrn我想取出当前这个页面的可视区域在整个页面的偏移量.该如何取?rnrn
一段读出来的MBR,求解几个问题
xor cx, cx ; 清除cx内容rnseg000:005C mov ss, cx ; 把CX存入SS寄存器rnseg000:005E assume ss:seg000rnseg000:005E mov sp, 7BF4h ; ss与SEG000段关联,作为段寄存器,SEG000就是本段段地址,SP存入地址7BEE4Hrnseg000:0061 mov es, cx ; cx = 0 ,所以ES = 0rnseg000:0063 assume es:seg000rnseg000:0063 mov ds, cx ; DATA XREF: seg000:00DErrnseg000:0065 assume ds:seg000rnseg000:0065 mov bp, 7C00h ; bp = 0x7c00hrnseg000:0068 mov [bp+2], cl ; rnseg000:006B mov dl, [bp+40h] ; rnseg000:006E mov ah, 8 ; rnseg000:0070 int 13h ; rnrnrn这里int 13h,ah为什么会等于8?怎么也找不到入口等于8的<em>信息</em>
如何将MySQL数据库中的负值读出来
如何将MySQL数据库中的负值<em>读出来</em>?rn数据库中字段类型是:intrn但<em>读出来</em>的数值均为:0rn这是怎么回事?
《MATLAB程序设计教程》电子教案-2660下载
《MATLAB程序设计教程》电子教案-2660 《MATLAB程序设计教程》电子教案-2660 相关下载链接:[url=//download.csdn.net/download/zjfxh21/2694670?utm_source=bbsseo]//download.csdn.net/download/zjfxh21/2694670?utm_source=bbsseo[/url]
Vector.Magic.Desktop.Edition.v1.15下载
提供Vector.Magic.Desktop.Edition.v1.15供大家下載 相关下载链接:[url=//download.csdn.net/download/biore45/7753865?utm_source=bbsseo]//download.csdn.net/download/biore45/7753865?utm_source=bbsseo[/url]
直线一级倒立摆的频率法校正下载
已知参数和设计要求: M:小车质量 1.096kg m:摆杆质量 0.109kg b:小车摩擦系数 0.1N/sec l:摆杆转动轴心到杆质心的长度 0.25m I:摆杆惯量 0.0034kgm2 设计控制器,使得校正后系统的要求如下: 系统的静态位置误差常数为10, 相位裕量为 50, 增益裕量等于或大于10 分贝。 相关下载链接:[url=//download.csdn.net/download/fanxingrong/8071189?utm_source=bbsseo]//download.csdn.net/download/fanxingrong/8071189?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的