魅族手机获取通讯录报错。。麻烦帮我看看好吗? [问题点数:25分,结帖人a619602087]

Bbs1
本版专家分:25
结帖率 84.62%
Bbs2
本版专家分:276
Bbs1
本版专家分:10
Bbs5
本版专家分:3166
Bbs1
本版专家分:0
Blank
GitHub 绑定GitHub第三方账户获取
Bbs1
本版专家分:40
Bbs1
本版专家分:40
Bbs1
本版专家分:0
Bbs1
本版专家分:0
帮我看看错误,好吗
帮我看看代码,好吗
请<em>帮我</em>解释一下下面的代码,尽量详细点,因为我还是新手啊。rnPulic class IntegerStack implement clonablernprivate int[] bufferrnprivate int toprnpublic TntegerStack(int maxContents)rnbuffer=new int [maxContents];rntop=-1rnrnpublic void push (int val)rnbuffer[++top]=val;rnrnpublic int pop()rnreturn buffer[top--]rnrnrnrnIntegerStack first=new IntegerStack(2)rnfirst.push(2)rnfirst.push(9)rnIntegerStack second=(integerStack)first.clone();rn rnrn rn
过来帮我看看好吗?
用ASP写的程序,文件名后缀是.asp,PHP是.phprn可像163那样的是.htmlrn这是怎么弄?rn新手.别笑.谢谢.
看看好吗帮我一下
谢谢你来看我这个问题 rn 我在用程序建表的时候,我想用循环的增加表的字段,但是不知道如何下笔, rn dim commandstring as olddbcommand =new oledbcommand("create table xg " &textbox1.text &" int ") rn我只是先建一个字段然后用循环增加表的字段,但是用面不知道如何做了 rn dim commandstring as olddbcommand =new oledbcommand("alter table xg " &textbox1.text &" int ") rn谁给我说一下textbox1.text在前面中如何用循环+1=textbox2.text rn用什么方法可以呢 rntextbox" & i &".text是不可以的 rn谢谢你们<em>帮我</em>做一下哦
大家帮我看看好吗?
大家好,我做了个局域网考试系统,我觉得如果此软件就叫局域网考试系统太俗了,所以想为此软件取个新颖点的名字?大家帮<em>帮我</em>,<em>好吗</em>?
大家帮我看看好吗
import javax.microedition.lcdui.*;rnimport javax.microedition.lcdui.game.*;rnrnclass Gamecanvas extends GameCanvas implements Runnable, CommandListenerrnrnrn Image gameImage = null;rn int imageX;rn int imageY;rn Display dis;rn Displayable dis0; rn Command back = new Command("BACK",Command.BACK,1);rn Command go = new Command("Enter",Command.OK,1);rn public Gamecanvas(Display d,Displayable s)rn rn super(true);rn tryrn gameImage = Image.createImage("/qwe1.png");rn gameImage = Image.createImage("/qwe.png");rnrn catch(Exception e)rnrn imageX = getWidth()/2;rn imageY = getHeight()/2;rn dis = d; rn dis0 = s;rn addCommand(back);rn addCommand(go);rn setCommandListener(this);rn rnrn void start()rn rn Thread gameThread = new Thread(this);rn gameThread.start();rn rn rnrn public void run()rn rn Graphics g = getGraphics();rn while(true)rn int keyState = getKeyStates();rn if((keyState&LEFT_PRESSED)!=0)rn rn imageX++;rn rn if((keyState&RIGHT_PRESSED)!=0)rn rn imageX--;rn rn if((keyState&UP_PRESSED)!=0)rn rn imageY++;rn rn if((keyState&DOWN_PRESSED)!=0)rn rn imageY--;rn rn g.setColor(0xffffff);rn g.fillRect(0,0,getWidth(),getHeight());rn paintSomething(g);rn flushGraphics();rn tryrn Thread.sleep(30);rn rn catch(Exception e)rn rn rnrn private void paintSomething(Graphics g)rn rn if(gameImage != null)rn rn g.drawImage(gameImage,imageX+208,imageY+91,Graphics.HCENTER|Graphics.VCENTER);rn rn rn public void commandAction(Command c,Displayable d)rn rn rn String cmd = c.getLabel();rn if(cmd.equals("BACK"))rn rn dis.setCurrent(dis0);rn rn rn rnrn这段代码载入了两张图片,我想这个CLASS被一个调用显示第一张图片,被第二个CLASS调用显示第二张,请问改怎么写啊?rnrn
获取手机电量和通讯录
                                                        <em>获取</em><em>手机</em>电量和<em>通讯录</em>我们在有一些游戏的时候需要<em>获取</em><em>手机</em>的信息,有的时候还会<em>获取</em>用户的<em>通讯录</em>权限,我是无聊的时候研究了一下<em>看看</em>是如何<em>获取</em>的,研究完了,记下来,万一以后会遇到或许还会有用呢,毕竟脑子不好使嘛。1. <em>获取</em>电量C++方法如下://添加<em>获取</em>当前电量方法void HelloWorld...
Android 获取手机通讯录
有两种做法:效果图如下:                             (1)         (2)            首先加入权限: 第一种 (1.1)布局文件 http://schemas.android.com/apk/res/an
麻烦大家帮我看看
我这段代码错在哪呢?怎么运行不了?rnrn rn import flash.display.*;rn rn private function drawCircle():voidrn var circle:Shape = new Shape();rn rn circle.graphics.beginFill(0xFF8800);rn circle.graphics.drawCircle(25, 25, 25);rn circle.graphics.endFill();rn addChild(circle);rn rn rn rn
麻烦各位帮我看看
rnrn为什么这个global.asa文件怎么不能到达我预期的结果。我想在用户会话结束后。更新数据库刚才从用法为“离线"标志。。。但是。。。不行。但是我认为它在逻辑上看应该没问题。。。rnrn所有<em>麻烦</em>你们<em>帮我</em><em>看看</em>。问题怎么解决。谢谢
麻烦大家帮我看看!!
void CDdDlg::OnRButtonDown(UINT nFlags, CPoint point) rnrn// TODO: Add your message handler code here and/or call defaultrnrnCMenu menu;rnrnif (menu.LoadMenu(IDR_MENU1))rn rn CMenu* pPopup = menu.GetSubMenu(0);rn ASSERT(pPopup != NULL);rn rn pPopup->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON,rn point.x,rn point.y,rn AfxGetMainWnd()); rn rn CDialog::OnRButtonDown(nFlags, point);rnrn为何弹出的菜单不在我的DIALOG之中,而弹在荧屏的X和Y的位置??
麻烦帮我看看为什么?
我的信誉分一直在下降,这是为什么啊!rn我好长时间没发帖了,只是跟帖,这也有错???
麻烦各位帮我看看!!
import java.applet.Applet;rnimport java.awt.*;rnimport java.awt.image.*;rnimport java.net.URL;rnpublic class DissolveFilterTest extends Applet rnprivate Image im,alpha;rnprivate int alphavalue;rnpublic void init () rnloadImage ();rnfilterImage ();rnrnpublic void paint (Graphics g) rnint imw=im.getWidth (this);rng.drawImage (im,0,0,this);rng.drawImage(alpha,imw,0,this);rnrnprivate void loadImage () rntry rnURL ur1=getClass ().getResource ("22.jpg");rnim=createImage ( (ImageProducer) ur1.getContent ());rnrncatch (Exception e) rne.printStackTrace ();rnrnMediaTracker mt=new MediaTracker (this);rnmt.addImage (im,0);rntry rn mt.waitForID (0);rnrncatch (Exception e) rne.printStackTrace ();rnrnrnprivate void filterImage () rn35 alpha=createImage ( new FilteredImageSource( im.getSource (), new DissolveFilter (50)))rnrnrn上面的程序编译通不过!提示说不能解析符号DissolveFilter,我不知道这个类到底存不存在,或者是不是我的语法不对,<em>麻烦</em>各位帮忙<em>看看</em>!!多谢了!!!
麻烦好心人帮我看看
各位大哥好!rn小弟请教各位一个小问题,希望赐教!rn我想通过以下代码去把数据元TEST5底下的XF1数据库下的表t2中的数据加入到a3域中去rn(小弟指定的shitu2中的某列的值是a3域的值 ,想通过该视图来看结果)rn但是运行该代理后,并没有看到数据库中的值 加到了a3中,小弟想请问哪里错了rn import lotus.domino.*;rnimport java.sql.*;rnpublic class Javadaili7 extends AgentBase rnrn public void NotesMain() rnrn try rn Session session=NotesFactory.createSession("local","userid","pwrn");rn AgentContext agentContext = session.getAgentContext();rn rn Database db=agentContext.getCurrentDatabase();rn View view=db.getView("shitu2");rn Document doc =view.getLastDocument();rn tryrn rn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");rn rn catch(ClassNotFoundException e)rn e.printStackTrace();rn rn tryrn rn rn Connection conn=DriverManager.getConnection("jdbc:odbc:test5","admin","admin");rn Statement stmt=conn.createStatement();rn rn ResultSet rs=stmt.executeQuery("select * from xf1.t2");rn boolean rc=rs.next();rn if(rc)rn rn doc.appendItemValue("a3",rs.getString("name"));rn rn rn rn stmt.close();rn stmt=null;rn rn conn.close();rn conn=null;rn rn rn catch(SQLException e)rn e.printStackTrace();rn rn rn rn rn catch(Exception e) rn e.printStackTrace();rn rn rnrn
问题,麻烦帮我看看
rnrnrnrnrnrnrnrn rn SWEAT Template Titlern rn rnrnrn rn rnrnrn rn rn rn rn [公司记录修改] rn rn rn rn rn 公司名称:rn rn rn rn rn 类型:rn rn rn rnrn rn 公司描述: rn rn rn rn rn rn 未成为贵公司的员工rn rn 已成为贵公司的员工rn rn rn rn rn rn rn 0:shengrn rn 1:shengrn rn 2:shengrn rn 3:shengrn rn 4:shengrn rn 5:shengrn rn 7:shengrn rn 9:shrn rn rn rn >>rn rn rn rn <<rn rn rn rn rn 13:???? rn rn 12:sh rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rnrnrnrnrnrnrnrnrnrnrnrnrn rn rn rnrn
麻烦帮我看看
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadrn If Not IsPostBack Thenrn Button1.Text = "加入"rn Label1.Text = "请输入邮箱您的E-mail:"rn RegularExpressionValidator1.ControlToValidate = "textbox1"rn RegularExpressionValidator1.ErrorMessage = "请输入正确的邮箱格式"rn RegularExpressionValidator1.ValidationExpression = "\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"rn End Ifrn End Subrnrn Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Clickrn If Request.Form("textbox1") = "" Thenrn Response.Write(" ")rn Elsern Dim cn As New OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=c:\Email.mdb")rn Dim strsql As String = "select * from EmailInfo where email='" & Request.Form(TextBox1.Text) & "'"rn Dim cmd As New OleDbCommand(strsql, cn)rn Dim r As OleDbDataReaderrn cn.Open()rn r = cmd.ExecuteReaderrn If Not r.Read Thenrn Response.Write(" ")rn TextBox1.Text = ""rn r.Close()rn r = Nothingrn Elsern strsql = "insert into EmailInfo values('" & Request.Form(TextBox1.Text) & "','" & Now() & "')"rn cmd.ExecuteNonQuery()rn cn.Close()rn cn = Nothingrn Response.Write(" ")rn End Ifrn End Ifrn End SubrnEnd Classrn代码如上rn为什么不执行这句:Response.Write(" ")rn
新建java类报错,麻烦帮我看看报错是为什么??
新建一个java类,如下:rnpackage ncyloracle.com;rnrnimport java.sql.*;rnpublic class PageableResultSet2 implements Pageable rnrn.......rnrnrn本打算implements 一个类结构Pageale,但是老保错..rn如果把rn'implements Pageable'去掉就不<em>报错</em>了rn这是为什么啊, rnrnrn<em>报错</em>信息如下rn"PageableResultSet2.java": ncyloracle.com.PageableResultSet2 should be declared abstract; it does not define getUnicodeStream(java.lang.String) in ncyloracle.com.PageableResultSet2 at line 9, column 1rn
帮我看看哪里有错好吗
#include rn#include rnusing namespace std;rnrnvoid main()rnrn vectorivec;rn int ival;rn while (cin>>ival)rn ivec.push_back(ival);rn for(int sum=0,ix=0;ix
帮我看看好吗?xml问题
我刚刚接触XML这个东东rn照着书照打了两个例子rn一个都不成,郁闷rn1。页面放置XML控件,建立XML,XSL两个文件,设置如下属性rnDocumentSource="XMLFile1.xml" TransformSource="XSLTFile1.xsltrnrn2。 Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Loadrn '在此处放置初始化页的用户代码rn Dim ds As New DataSet()rn ds = getdataset("select * from N_assort")rn ds.ReadXml(MapPath("XMLFile1.xml"))rn Label1.Text = ds.Tables(0).TableNamern DataGrid1.DataSource = dsrn DataGrid1.DataMember = ds.Tables(0).TableNamern Label2.Text = ds.Tables(1).TableNamern DataGrid2.DataSource = dsrn DataGrid2.DataMember = ds.Tables(1).TableNamern Label3.Text = ds.Tables(2).TableNamern DataGrid3.DataSource = dsrn DataGrid3.DataMember = ds.Tables(2).TableNamernrn End Subrn结果报出相同的错,晕死rn有《ASP。NET技术内幕》朋友可以看一下第十三章rnrnrn“/mynews1”应用程序中的服务器错误。rn--------------------------------------------------------------------------------rnrn“xsl”是未声明的命名空间。 行 3,位置 2。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Xml.XmlException: “xsl”是未声明的命名空间。 行 3,位置 2。rnrn源错误: rnrn执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。 rnrn堆栈跟踪: rnrnrn[XmlException: “xsl”是未声明的命名空间。 行 3,位置 2。]rn System.Xml.XmlNSElementTokenInfo.FixNames() +369rn System.Xml.XmlTextReader.ParseElement() +205rn System.Xml.XmlTextReader.Read() +94rn System.Xml.XmlValidatingReader.ReadNoCollectTextToken()rn System.Xml.XmlValidatingReader.Read()rn System.Xml.XPath.XPathDocument.ReadChildNodes(XPathContainer parent, String parentBaseUri, XmlReader reader, PositionInfo positionInfo)rn System.Xml.XPath.XPathDocument.ReadChildNodes(XPathContainer parent, String parentBaseUri, XmlReader reader, PositionInfo positionInfo)rn System.Xml.XPath.XPathDocument.Load(XmlReader reader)rn System.Xml.XPath.XPathDocument.Init(XmlReader reader)rn System.Xml.XPath.XPathDocument..ctor(String uri, XmlSpace space)rn System.Xml.Xsl.XslTransform.Load(String url, XmlResolver resolver)rn System.Xml.Xsl.XslTransform.Load(String url)rn System.Web.UI.WebControls.Xml.LoadTransformFromSource()rn System.Web.UI.WebControls.Xml.Render(HtmlTextWriter output)rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer)rn System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)rn System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)rn System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)rn System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer)rn System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)rn System.Web.UI.Control.Render(HtmlTextWriter writer)rn System.Web.UI.Control.RenderControl(HtmlTextWriter writer)rn System.Web.UI.Page.ProcessRequestMain()rnrn rnrnrn--------------------------------------------------------------------------------rn版本信息: Microsoft .NET 框架版本:1.0.3705.0; ASP.NET 版本:1.0.3705.0
新手,请帮我看看好吗?
CREATE DATABASE 学生管理数据库rnON (rnNAME = '学生管理数据库'rnFILENAME = 'D;\sql\学生管理数据库.MDF',rnSIZE = 1MB,rnMAXSIZE = 50MB,rnFILEGROWTH = 5MBrn)rnLOG ON(rnNAME = '学生管理日志',rnFILENAME = 'D;\sql\学生管理日志.LDF',rnSIZE = 1MB,rnFILEGROWTH = 10%rn)rn提示,rn服务器: 消息 153,级别 15,状态 1,行 4rn在 CREATE/ALTER DATABASE 语句中有 FILENAME 选项的无效使用。
大家帮我看看好吗,急....
isnull可将null替换为别的数rn有没有把如下rn F1 F2rn 1 Arn 2 rn 3 Crn 4 rn 5 G rn替换成rn F1 F2rn 1 Arn 2 nullrn 3 Crn 4 nullrn 5 G
帮我看看好吗,谢谢了
我的想法是把输入的多项式的每一项的指数和系数分别进栈,给我提点建议,找下错<em>好吗</em>?rnrn stack S_optr1;rn stack S_optr2;rn stack S_coef;rn stack S_exp;rn queue Q_op;rnvoid Polynomial::CreatPoly()rnrn dorn cout<>ch;rn while(*ch!='\0')rn rn Q_op.push(*ch);rn delete ch;rn ch++;rn rn while(!Check());rnrn int temp_exp;rn int temp_coef;rnrnrnrnrnbool Polynomial::Check()rnrn double dradix,num;rn char c;rn c=next();rn rn if(c=='-')rn rn S_optr1.push('-');rn c=next();rn rn elsern S_optr1.push('+');rnrn while(c!='#')rn rn num=0.0;rn while(c>='0' && c='0' && c'0' && c='0' && c);rn S_exp.push(num);rn c=next();rn rn elsern rn synError();rn return false;rn rn rn break;rn default:rn synError();rn return false;rn rn rnrn elsern rn synError();rn return false;rn rn rn return true;rn
诸位大大帮我看看好吗
我正在学习中,但为什么书上例题运行不了啊rn例程如下:rnimport javax.swing.*;rnimport java.awt.*;rnimport java.awt.event.*;rnimport java.awt.image.*;rnimport java.io.*;rnrnpublic class ImageViewer extends JFramern implements ActionListenerrn public ImageViewer()rn setTitle("ImageViewer");rn setSize(300,400);rn JMenuBar mbar = new JMenuBar();rn JMenu m = new JMenu("File");rn JMenuItem m1 = new JMenuItem("Open");rn m1.addActionListener(this);rn m.add(m1);rn JMenuItem m2 = new JMenuItem("Exit");rn m2.addActionListener(this);rn m.add(m2);rn mbar.add(m);rn setJMenuBar(mbar);rn label = new JLabel();rn Container contentPane = getContentPane();rn contentPane.add(label,"Conter");rn rn public void actionPerformed(ActionEvent evt)rn String arg = evt.getActionCommand();rn if (arg.equals("Open"))rn JFileChooser chooser = new JFileChooser();rn chooser.setCurrentDirectory(new File("."));rn chooser.setFileFilter(new javax.swing.filechooser.FileFilter()rn public boolean accept(File f)rn return f.getName().toLowerCase().endsWith(".gif");rn rn public String getDescription()rn return "GIF Images";rn rn );rn int r = chooser.showOpenDialog(this);rn if (r == JFileChooser.APPROVE_OPTION)rn String name = chooser.getSelectedFile().getName();rn label.setIcon(new ImageIcon(name));rn rn rn else if (arg.equals("Exit")) System.exit(0);rn rnpublic static void main(String[] args)rn JFrame frame = new ImageViewer();rn frame.show();rnrn private JLabel label;rnrn是在TextPad下写入的,安装的是j2se的最新版,编译是没问题,但运行是提示:rnException in thread "main" java.lang.NoClassDefFoundError: ImageViewerrn请按任意键继续。。。rn这到底是为什么阿?
帮我看看好吗???求救!!
。 rnrnrn在本地在我的机器上正常,面在其它机器上不能用!!rn
帮我看看这段程序好吗
Select Case Indexrn Case 0rn sdate = InputBox("请输入要查询的日期,格式为:yyyy-mm-dd!")rn sqs = "select * from 销售额表 where 日期= " & sdaternrn end select rn Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\销售额数据库.mdb"rn Adodc1.RecordSource = sqsrn Adodc1.Refreshrn Set DataGrid1.DataSource = Adodc1rnrn在这段程序中,当我的sqs语句中不用where 或者like 判断语句的时候rn运行就没有问题,可是只要我一加判断语句,就提示说:adodc1.refreshrn的refreshe方法的iadodc错误。请问是什么原因??rn还有就是我想建立一个综合查询的窗口,让用户自己选择查询条件,rn该怎么做??
帮我看看好吗?谢谢!!!!
javascriptrnrn有一个字符串(textbox的value)格式为30,000rn我想把他转换成数值30000,也就是把,去掉,可是使用parseInt()得到的值为30rnrn请问大家应该怎么弄阿?谢谢了!
$$$$$$$$$$$$$$$$$$$$帮我看看这段代码?好吗
我现在在做一个将纯文本记录插入到一个表中,有的表字段很少,没有问题!但是有rn两个表:rn一个有很多字段(60多):rn if name = '常规水价表' thenrn beginrn table8.open;rn with table8 dorn beginrn table8.close;rn table8.open;rn table8.insert;rn table8.fieldbyname('class_code').asstring:=item[1];rn table8.fieldbyname('class_name').asstring:=item[2];rn table8.fieldbyname('rating').asstring:=item[3];rn table8.fieldbyname('rating_price1').asstring:=item[4];rn table8.fieldbyname('rating_price2').asstring:=item[5];rn table8.fieldbyname('rating_price3').asstring:=item[6];rn table8.fieldbyname('rating_price4').asstring:=item[7];rn table8.fieldbyname('rating_price5').asstring:=item[8];rn table8.fieldbyname('rating_price6').asstring:=item[9];rn table8.fieldbyname('rating_price7').asstring:=item[10];rn table8.fieldbyname('rating_price8').asstring:=item[11];rn table8.fieldbyname('rating_price9').asstring:=item[12];rn table8.fieldbyname('rating_price10').asstring:=item[13];rn table8.fieldbyname('rating_price11').asstring:=item[14];rn table8.fieldbyname('rating_price12').asstring:=item[15];rn table8.fieldbyname('rating_price13').asstring:=item[16];rn table8.fieldbyname('rating_price14').asstring:=item[17];rn table8.fieldbyname('rating_price15').asstring:=item[18];rn table8.fieldbyname('rating_price16').asstring:=item[19];rn table8.fieldbyname('rating_price17').asstring:=item[20];rn table8.fieldbyname('rating_price18').asstring:=item[21];rn table8.fieldbyname('rating_price19').asstring:=item[22];rn table8.fieldbyname('rating_price20').asstring:=item[23];rn table8.fieldbyname('rating_price21').asstring:=item[24];rn table8.fieldbyname('rating_price22').asstring:=item[25];rn table8.fieldbyname('rating_price23').asstring:=item[26];rn table8.fieldbyname('rating_price24').asstring:=item[27];rn table8.fieldbyname('rating_price25').asstring:=item[28];rn table8.fieldbyname('rating_price26').asstring:=item[29];rn table8.fieldbyname('rating_price27').asstring:=item[30];rn table8.fieldbyname('rating_price28').asstring:=item[31];rn table8.fieldbyname('exess_price1').asstring:=item[32];rn table8.fieldbyname('exess_price2').asstring:=item[33];rn table8.fieldbyname('exess_price3').asstring:=item[34];rn table8.fieldbyname('exess_price4').asstring:=item[35];rn table8.fieldbyname('exess_price5').asstring:=item[36];rn table8.fieldbyname('exess_price6').asstring:=item[37];rn table8.fieldbyname('exess_price7').asstring:=item[38];rn table8.fieldbyname('exess_price8').asstring:=item[39];rn table8.fieldbyname('exess_price9').asstring:=item[40];rn table8.fieldbyname('exess_price10').asstring:=item[41];rn table8.fieldbyname('exess_price11').asstring:=item[42];rn table8.fieldbyname('exess_price12').asstring:=item[43];rn table8.fieldbyname('exess_price13').asstring:=item[44];rn table8.fieldbyname('exess_price14').asstring:=item[45];rn table8.fieldbyname('exess_price15').asstring:=item[46];rn table8.fieldbyname('exess_price16').asstring:=item[47];rn table8.fieldbyname('exess_price17').asstring:=item[48];rn table8.fieldbyname('exess_price18').asstring:=item[49];rn table8.fieldbyname('exess_price19').asstring:=item[50];rn table8.fieldbyname('exess_price20').asstring:=item[51];rn table8.fieldbyname('exess_price21').asstring:=item[52];rn table8.fieldbyname('exess_price22').asstring:=item[53];rn table8.fieldbyname('exess_price23').asstring:=item[54];rn table8.fieldbyname('exess_price24').asstring:=item[55];rn table8.fieldbyname('exess_price25').asstring:=item[56];rn table8.fieldbyname('exess_price26').asstring:=item[57];rn table8.fieldbyname('exess_price27').asstring:=item[58];rn table8.fieldbyname('exess_price28').asstring:=item[59];rn table8.fieldbyname('sewage').asstring:=item[60];rn table8.fieldbyname('least_quantity').asstring:=item[61];rnrn if not table24.Locate('class_code',Item[1],[]) thenrn beginrn table8.insert;rn end;rn end;rn end;rn这样就<em>报错</em>:GENERAL SQL ERROR!!! (有人可能会认为最后应该用POST,呵呵,我开始时是手误,后来发现不用POST也可以,为什么??)rnrn第二张表是:应该为空的字段,但是插入了'',这样应该怎样解决???rnrn新学!不好意思问题比较弱!!谢谢!!:)
帮我看看这个程序好吗
#includern#includernrnvoid main()rnrnrnchar FAR tmp[1024];rnHOSTENT *host;rnint returnvalue;rnrnif( (returnvalue = gethostname(tmp,1024)) ==0)rnrnhost = gethostbyname(tmp);rnUCHAR a1,a2,a3,a4;rna1 = host->h_addr_list[0][0];rna2 = host->h_addr_list[0][1];rna3 = host->h_addr_list[0][2];rna4 = host->h_addr_list[0][3];rnprintf("%d . %d . %d. %d",a1,a2,a3,a4);rnrnelse rnprintf("error");rnrn编译错误:rnerror LNK2001: unresolved external symbol __imp__gethostbyname@4rnf.obj : error LNK2001: unresolved external symbol __imp__gethostname@8rnDebug/f.exe : fatal error LNK1120: 2 unresolved externalsrnError executing link.exe.rnCreating browse info file...rnrnf.exe - 3 error(s), 0 warning(s)rnrn
很简单的代码帮我看看好吗
alMessage是ArrayList,里面放的全是Message结构(struct)rnfor(int i=alMessage.Count-1;i>=0;i--)rnrn Message message=(Message)alMessage[i];rn if(message.Type==1) message.Type=0; //((Message)alMessage[i]).Type=0;rnrn上面这段代码是遍历整个alMessage,找出message.Type为1的改为0。但是没有作用,我再遍历整个alMessage,message的Type都没变化。下面这段代码是统计Type为0的个数rnint i=0;rnforeach(Message message in alMessage)rnrn if(message.Type==1 && message.Contact==mail)rn i++;rnrnreturn i;rn知道这是什么原因吗???
魅族手机webview title获取不到
在APP中Hybird模式开发下,我们经常隐藏H5的头,而外壳使用APP的头做整个页面的跳转控制,例如左侧的统一返回或者定制化返回,页面头的展示,右侧各种不同业务下的ICON和事件等,例如下图: 这样做会有很多的好处,后续分享webview的组件时会介绍,此时如果进入了多级的webview页面后,会出现当按系统返回键回退到上一个页面时,<em>魅族</em><em>手机</em>会存在不调用WebChromeClient 的on
android获取手机图片与通讯录
利用eclipse工具开发<em>获取</em>android<em>手机</em>里联系人<em>手机</em>号码和图库里的图片
救命啊~~~~~~~~帮我解决下麻烦问题好吗
rn rn rn rn rn rn rn rn rn =3 THEN%>rn rnrn 我想要这样的结果,就是2列自动换行rnrn rn rn 数据库内容rn 数据库内容rn rn rn 数据库内容rn 数据库内容rn rn rn 数据库内容rn 数据库内容rn rn rn 无限下去rn 无限下去rn rnrn
麻烦你们帮我找找错好吗?
double mm=sqrt((Form3->points[Frame].x-point[Frame].x)*(Form3->points[Frame].x-point[Frame].x)+(Form3->points[Frame].y-point[Frame].y)*(Form3->points[Frame].y-point[Frame].y));rn
感觉很麻烦帮我解决一下好吗
我试着用document.createElement("div")创建一个div,然后在里面加上几幅图片"img",然后在我想对它们加入忽明忽暗效果(即函数play()),不知该怎样设置,我试过在中加入onload="..."不行,接着在的onload="..."加入该函数,发现还是不行,不知该如何写,大家帮<em>帮我</em><em>好吗</em>?rn其中,在中的onload="..."加入的函数是:rnfunction fade()rnif(document.all);rnif(c == true) rnb=b+20;rnrnif(b==100) rnb=b-20;rnc = falsernrnif(b==20) rnb=b+20;rnc = true;rnrnif(c == false) rnb=b-20;rnrnrn this.filters.alpha.opacity=0 + b;rnsetTimeout("fade()",100);rnrn而在中onload="..."加入的是:rnvar b = 20;rnvar c = true;rnfunction fade()rnif(document.all);rnif(c == true) rnb=b+20;rnrnif(b==100) rnb=b-20;rnc = falsernrnif(b==20) rnb=b+20;rnc = true;rnrnif(c == false) rnb=b-20;rnrnvar es = document.form1.getElementsByTagName("img");rnfor (var i=0; i中的name=lib1(lib2,lib3)的前缀rn es[i].filters.alpha.opacity=0 + b;rn rnrnsetTimeout("fade()",100);rn希望有人<em>帮我</em>解决一下<em>好吗</em>?rn
报错,帮我看看
code:rnrnrnrn rnrnrnrnrn rn Shop Namern rn rn Shop Locationrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrn//error messagernerver Error in '/' Application.rn--------------------------------------------------------------------------------rnrnCompilation Error rnDescription: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. rnrnCompiler Error Message: CS0246: The type or namespace name 'Branch_Table' could not be found (are you missing a using directive or an assembly reference?)rnrnSource Error:rnrn rnrnLine 37: //del blockrnLine 38: void Btn_Del_Click(object sender, EventArgs e) rnLine 39: Branch_Table.Rows[Branch_Table.Rows.Count-3].Delete();rnLine 40: MyAdapter.Update(MyData,"Branch");rnLine 41: DataGrid1.DataSource = MyData.Tables["Branch"];rn rnrnSource File: NaiYuan\EBike\Branch.aspx Line: 39
仿魅族手机日历
仿<em>魅族</em>的日历,滑动,记录每天课程表
一个简单的报错麻烦看看
函数如下,提示<em>报错</em>行 是: return str1;我实在搞不懂,<em>麻烦</em>指教一下rncreate or replace function qdn_lks_fi( str1 varchar2,str2 varchar2) return varchar2rnisrnv1 varchar(1);rnv2 varchar(2);rnv3 varchar(3);rnstr3 varchar2(5);rn beginrn str3:='';rn v1:=substr(str1,1,1);rn v2:=substr(str1,2,1);rn v3:=substr(str1,3,1);rn if instr(str2,v1)>0 and instr(str2,v2)>0 and instr(str2,v3)>0 thenrn return str1;rn rn elsern  return str3;rnrn end if;rn end;rnrnrnrn<em>报错</em>信息:rnCompilation errors for FUNCTION QUERY.QDN_LKS_FIrnrnError: PLS-00103: Encountered the symbol "" when expecting one of the following:rn rn ( begin case declare exit for goto if loop mod null pragmarn raise return select update while with rn <
bindService 失败,魅族手机
最近做了一个aidl的测试demo,在小米<em>手机</em>上和lg<em>手机</em>上都没问题,可以正常启动远程的service,但是在<em>魅族</em><em>手机</em>上,bindService一直返回false,onServiceConnected也不会被调用。 代码如下所示: Intent inten
魅族手机壁纸
超级美的壁纸,关于<em>魅族</em><em>手机</em>的,可以下下来<em>看看</em>是不错的
魅族手机root办法
负责任的提示:<em>魅族</em><em>手机</em>Flyme6系统以下的系统,root之后不可关闭root权限! 步骤一:设置→\rightarrow→Flyme账户,登录账户 步骤二:设置→\rightarrow→指纹和安全 第三步:选择“ROOT权限”功能,点击“ROOT”权限进入并开启“ROOT权限” 点击确定之后你就失去了一个好用的<em>手机</em>~ 祝各位生活愉快 图片来自百度经验:https://jingyan.bai...
魅族手机无法连接ADB
新建文本文件adb_usb.ini ,内容: 0x2a45 mac对应的是~/.android/adb_usb.ini windows对应的C:\Users\yiyuan.zhangyy.android\adb_usb.ini 结束adb进程 打开cmd小黑框,adb devices mx活了
魅族手机HOLD的解决方案
测试反馈<em>魅族</em>下拉总是出现HOLD。。。 遇到系统兼容性问题。。总是很头疼,下面是解决方案:2.3之前: android:fadingEdge=”none”2.3之后: 在listview属性加:Android:overScrollMode=”never” ; 或者代码设置:listView.setOverScrollMode(Listview.OVER_SCROLL_NEVER);
魅族zero手机
<em>魅族</em>zero<em>手机</em> 2019/1/23 内容 第一时间看完,网络直播<em>手机</em>发布会!感觉直播有点掉价,但是货很实在,确实很美。 屏下指纹 面部解锁 全面屏手势 … 这些已经没有什么新鲜的了。 并且<em>魅族</em>本次科技亮点下面壹壹列出。 国内实体<em>手机</em>发布目前没有确定时间。下面有原因。 5G 这主要是为了接下来19年<em>手机</em>网络作准备的,因此<em>手机</em>采用了陶瓷机身。因为5G对信号的要求更苛刻,只有去掉以前的金属机...
魅族手机 m8 电路图
<em>魅族</em><em>手机</em> m8 电路图 高清的,有需要的下了,不是本人设计,原作可删除,
隐藏魅族手机的smartbar
今天接到任务是让应用程序在<em>魅族</em><em>手机</em>上运行时隐去Flyme OS 中的Smartbar 通过查阅资料将其实现,其实很简单,能过三步 一是在清单文件uses-sdk节点中把minSdkVersion配在14及以上 二是在清单文件application节点下加入android:uiOptions="splitActionBarWhenNarrow"的配置项 三是在应用程序的style中加
麻烦大家帮我看看,谢谢
现在我遇到了一个问题,就是写了"You are everything to me,and I was so blessed whenreeou here for me."这句话,但是导出到excel表的时候,变成了"You?are?everything?to?me,?and?I?was?so?blessed?whenreeou?here?for?me?." 谢谢
初学者的困惑,麻烦帮我看看
我照着书上写了一个例子:rnrn rn rn buttontestvbrn rn rn rn rn rn rn rn rn rn rn rn rn rnrn运行以后,网页上什么都没有,空白!而且点击鼠标右键查看“源文件”,居然所有的代码都能看到,请问是怎么回事啊
麻烦帮我看看这个类型定义
# include rnclass Xrn public:rn X(int i)_val=i;rn int val()return _val;rn private:rn int _val;rn;rnclass Yrnpublic:rn Y(int i)_callsxval=i;rn rn static X xval();rn static int callsxval()return _callsxval;rnprivate:rn static X _xval;rn static int _callsxval;rn;rn/*X Y::xval()rnX xin(0);rnreturn xin;*/rnint main()rn X xx(3);rn //cout<
麻烦大家帮我看看,谢谢~~~~~~~~~~~~~~~~
AnsiString *BT;rnchar *buf_bt;rnchar *buf;rn......rnBT = new AnsiString[DQBTZS];rnbuf = new char[541];rnfor(int i = 0; i < DQBTZS; i ++)rnrn bt_len = int(buf[i * 30 + 6]);rn buf_bt = new char[bt_len];rn memmove(buf_bt, buf + i * 30 + 6, bt_len);rn BT[i] = buf_bt; //--------------请问这里该如何改才正确??rn delete buf_bt;rnrndelete [] BT;rndelete buf;
编辑框问题,麻烦帮我看看
在编辑框中输入文本,rnrn请问如何在输入的文本rnrn在编辑框上显示之前获得该文本内码?rnrn
iis有错??麻烦帮我看看
为什么我的asp文件http://localhost/a.asp可以访问,但是http://本机IP/a.asp却不可以,提示连接超时。这是怎么回事??
麻烦各位帮我看看错误
rnrnrn'更新websen_ad表rnad = Replace_Text(Request("ADID"))rndim flag,src,linkrnset rs3 = server.CreateObject("adodb.recordset")rnsql3 = "select adname,adsrc,adlink,isok from Websen_advertisement2 where isok = 1 and adname = "&ad rnrs3.open sql3,conn,1,1rn src = rs3("adsrc")rn link = rs3("adlink")rn flag = rs3("isok")rnrs3.closernset rs3 = nothingrnrnrnset rs4 = server.CreateObject("adodb.recordset")rnsql4 = "select adid,isok,adsrc,adlink from websen_ad where adid ="&ad rnrs4.open sql4,conn,1,3rnrs4("isok") = flagrnrs4("adsrc") = srcrnrs4("adlink") = linkrnrs4.updaternresponse.Write("更新成功")rnrs4.closernset rs4 = nothingrnrnconn.Closernset conn=nothing
遇到麻烦帮我看看代码!
//下面的程序的目的是为了求得两个元素为自定义类型的集合的差,rn//其中TRecord为自定义类型,保存一条数据记录的字段名/字段值映射,rn//以及其中的关键字段,在把该记录插入到set集合和求集合差的时候rn//根据这些关键字段的值排序。rn//现在的问题是最后并没有求得正确的集合差,而是把recordSet1中rn//的记录全部拷贝到diffRecordSet中去了,不知道问题出在何处请高rn//手相助!rn//项目进度被几个算法问题卡了几天了,急死了!rn//注:虽然是测试程序,但下面的代码是可用的,可以直接拷贝去调试rnrn//***** test.cpp *****//rnrn#include rn#include rn#include rn#include rn#include rn#include rn#include rnrnusing namespace std;rnrntypedef vector TStrVec;rntypedef map > TStrMap;rnrnclass TRecordrnrnpublic:rn TRecord();rn TRecord(const TRecord &);rn const TRecord &operator=(const TRecord &);rn bool operator==(const TRecord &) const;rn bool operator< (*p_that).second);rn rn rn rn elsern rn for (p_this=fieldsMap.begin();p_this!=fieldsMap.end();p_this++)rn rn p_that=otherRecord.fieldsMap.find((*p_this).first);rn if (p_that==otherRecord.fieldsMap.end()) return false;rn if ((*p_this).second != (*p_that).second)rn return ((*p_this).second < (*p_that).second);rn rn rn return true;rnrnrnvoid TRecord::mcopy(const TRecord &otherRecord)rnrn fieldsMap.clear();rn keyFields.clear();rn copy(otherRecord.fieldsMap.begin(),otherRecord.fieldsMap.end(),inserter(fieldsMap,fieldsMap.begin()));rn copy(otherRecord.keyFields.begin(),otherRecord.keyFields.end(),inserter(keyFields,keyFields.begin()));rnrnrntypedef set > TRecSet;rnrnrnint main(int argc, char* argv[])rnrn TRecSet recordSet1,recordSet2,diffRecordSet; //源记录集合、记录集合差、rnrn TRecord rec1,rec2,rec3;rnrn rec1.keyFields.push_back("field1"); //把field1字段设为rec1的关键字段,根据该字段决定记录值的大小rn rec1.fieldsMap.insert(TStrMap::value_type("field1","01")); //插入field1='01'的字段映射,下同rn rec1.fieldsMap.insert(TStrMap::value_type("field2","abc"));rn rec1.fieldsMap.insert(TStrMap::value_type("field3",""));rn recordSet1.insert(TRecSet::value_type(rec1)); //把rec1插入到集合1中rnrn rec2.keyFields.push_back("field1"); //field1字段设为rec1的关键字段rn rec2.fieldsMap.insert(TStrMap::value_type("field1","02"));rn rec2.fieldsMap.insert(TStrMap::value_type("field2","def"));rn rec2.fieldsMap.insert(TStrMap::value_type("field3",""));rn recordSet1.insert(TRecSet::value_type(rec2)); //把rec2插入到集合1中rnrn rec3.keyFields.push_back("field1"); //把field1字段设为rec3的关键字段,根据该字段决定记录值的大小rn rec3.fieldsMap.insert(TStrMap::value_type("field1","01"));rn rec3.fieldsMap.insert(TStrMap::value_type("field2","abc"));rn rec3.fieldsMap.insert(TStrMap::value_type("field3",""));rn recordSet2.insert(TRecSet::value_type(rec3)); //把rec3插入到集合2中rnrn //求集合1和集合2的差diffRecordSetrn set_difference(recordSet1.begin(),recordSet1.end(),rn recordSet2.begin(),recordSet2.end(),rn inserter(diffRecordSet,diffRecordSet.begin()),rn less()rn );rnrn //集合1中包含2条记录:rn //记录1的值为:rn //[keyFields:] "field1"rn //[fieldsMap:] "field1"="01"rn // "field2"="abc"rn // "field3"=""rn //记录2的值为:rn //[keyFields:] "field1"rn //[fieldsMap:] "field1"="01"rn // "field2"="def"rn // "field3"=""rn //*****rn //集合2中包含1条记录:rn //记录1的值为:rn //[keyFields:] "field1"rn //[fieldsMap:] "field1"="01"rn // "field2"="abc"rn // "field3"=""rnrn cout<<
麻烦帮我看看这个问题。
地址连接[url=http://topic.csdn.net/u/20091207/12/9f4a5232-8816-4b13-bc1a-205e7e4f9d99.html?57070][/url]
麻烦帮我看看这个语句
rn语句1:rnSELECT TOP 6 *,(SELECT C.ClassName FROM [shop_Class] C WHERE C.ClassID=shop_Product.ClassID) as ClassName FROM [shop_Product] WHERE isPassed=1 AND isSale=1 AND ((DATEDIFF(dd,BeginTime,'2012-8-8 11:17:26')>=0 AND DATEDIFF(dd,EndTime,'2012-8-8 11:17:26')=0 AND DATEDIFF(dd,EndTime,'2012-8-8 11:17:26')<0) OR ValidDay=0)rnrn我一般采用语句2的方式,我看好多使用了语句1的方式,请问下语句1的方式是不是效率高些?rnrn如果采用语句一,在不改变结构的情况下。如何只显示 shop_Class.enabled=1的记录?
简单问题.麻烦帮我看看.
rn新浪rnGooglernrnrn为什么一点击,打开的新窗口的URL是:http://www.***.com/www.sina.com.cnrn这个怎么才能正确登陆?
麻烦帮我看看,跪谢了!
原帖地址:http://community.csdn.net/Expert/topic/3305/3305614.xml?temp=.8711969rnrn内容:rn一个进程将HTML代码转换成word文档保存到客户端和服务器端的问题。rn其实这个问题思归大哥给出了答复,可是我本来很菜,e文又不好,捣鼓了半天还是没搞定,思归大哥给的文章链接如下:rnhttp://support.microsoft.com/default.aspx?scid=kb;EN-US;q325791rnrn我的代码如下,是马甲大哥和孟子大哥给的:rnrn以下代码怎么运行的时候说是:未处理的“System.UnauthorizedAccessException”类型的异常出现在 未知模块 中。rn其他信息: 拒绝访问。rn然后又跳出一个对话框:没有用于当前位置的源代码。怎么回事呢?rnrn新建一个类(这是马甲大哥给我的代码,谢谢了!):rnusing System;rnusing System.Windows.Forms;rnrnnamespace Testrnrn public class SaveAsDocrn rn public string htmlstr="html";rn [STAThread]rn public void Save()rn rn Word.ApplicationClass oWordApp = new Word.ApplicationClass();rn object missing=System.Reflection.Missing.Value;rn object path=@"c:\q.doc";//改成你自己要保存的路径rn tryrn rn string ClipTemp="Version:0.9\nStartHTML:-1\nEndHTML:-1\nStartFragment:000076\nEndFragment:000128\n\n0";rn ClipTemp=string.Format(ClipTemp,htmlstr);rn DataObject d=new DataObject();rn d.SetData(DataFormats.Html,true,ClipTemp);rn Clipboard.SetDataObject(d); rn Word.Document oWordDoc = oWordApp.Documents.Add(ref missing, ref missing,ref missing, ref missing);rn oWordDoc.Activate();rn oWordApp.Selection.Paste();rn oWordDoc.SaveAs(ref path,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing,ref missing);rn rn catch(Exception err)rn rn throw err;rn rn finallyrn rn oWordApp.Application.Quit(ref missing, ref missing, ref missing); rn rn rn rnrnrnrn在WebPage B.aspx的保存按钮事件里这样调用:rnprivate void Button2_Click(object sender, System.EventArgs e)rnrn SaveAsDoc sd=new SaveAsDoc();rn sd.htmlstr=ConvertToString("B.aspx"); rn System.Threading.Thread t=new System.Threading.Thread(new System.Threading.ThreadStart(sd.Save));rn t.ApartmentState=ApartmentState.STA;rn t.Start();rnrnrnConvertToString("B.aspx")是采用的孟子大哥的代码:rnprivate string RenderPage(string pageLocation)rnrn System.Web.HttpContext context = System.Web.HttpContext.Current;rn StringBuilder result = new StringBuilder(1024);rn context.Server.Execute(pageLocation, rn new HtmlTextWriter(new StringWriter(result)));rn return result.ToString();rn
麻烦各位帮我看看,;谢谢
今天一检查服务器(windows2003 server的)看见有个登陆失败的东东,经验告诉我,有黑客进入我的服务器了,但我不知道他把木马放在哪里了,<em>麻烦</em>各位大哥<em>帮我</em>看下,谢谢了. rnrn登录失败: rn 原因: 用户名未知或密码错误 rn 用户名: hacker rn 域: WD280 rn 登录类型: 10 rn 登录进程: User32 rn 身份验证数据包: Negotiate rn 工作站名称: WD280 rn 调用方用户名: WD280$ rn 调用方域: CIVILINK rn 调用方登录 ID: (0x0,0x3E7) rn 调用方进程 ID: 1024 rn 传递服务: - rn 源网络地址: 220.168.44.231 rn 源端口: 4079 rnrn以上是安全日志的调出来的.
结果不对,麻烦帮我看看
VB代码:rnrn[code=VB.NET]rnDim W As Double, QE As Double, WTNT As Doublern Dim R1 As Integer, R2 As Integer, R3 As Integer, R4 As Integerrn W = Val(TextBox1.Text)rn QE = Val(TextBox2.Text)rn WTNT = W * QE / 4.52rn R1 = Math.Round(0.961 * WTNT ^ 0.429)rn R2 = Math.Round(4.774 * WTNT ^ 0.332)rn R3 = Math.Round(8.593 * WTNT ^ 0.332)rn R4 = Math.Round(13.2 * WTNT ^ (1 / 3) / (1 + (3175 / WTNT) ^ 2) ^ (1 / 6))rn TextBox3.Text = R1rn TextBox4.Text = R2rn TextBox5.Text = R3rn TextBox6.Text = R4rn// W和QE都是1000时 ,R1=189,R2=284,R3=511,R4=789rn[/code]rnrn换成C#代码:rn[code=C#]rndouble W = Convert.ToDouble(this.txtZhaYaoZhiLiang.Text);rn double QE = Convert.ToDouble(this.txtZhaYaoBaoRe.Text);rn int WTNT = Convert.ToInt32(W * QE / 4.52);rn int R1 = Convert.ToInt32(0.961 * Math.Pow(WTNT, 0.429));rn int R2 = Convert.ToInt32(4.774 * Math.Pow(WTNT, 0.332));rn int R3 = Convert.ToInt32(8.593 * Math.Pow(WTNT, 0.332));rn int R4 = Convert.ToInt32(Math.Round(13.2 * Math.Pow(WTNT, 1 / 3) / Math.Pow((1 + Math.Pow((3175 / WTNT), 2)), 1 / 6)));rnrn this.txtRenYaunSiWang.Text = R1.ToString();rn this.txtRenYuanZhongShang.Text = R2.ToString();rn this.txtRenYuanQingShang.Text = R3.ToString();rn this.txtCaiChanShunShi.Text = R4.ToString();rn//W和QE也都是1000时 ,R1=189,R2=284,R3=511,但 [color=#FF0000]R4=13[/color]rn[/code]rnrn我想知道问题出在哪了,为什么 R4的值会不一样???rnrn上面如果写的不清楚,这个事公式:rnrn[img=http://hi.csdn.net/attachment/200909/25/36673_12538678940DP4.jpg][/img]rnrnrn
麻烦大家帮我看看代码
rn农民(55433743) 12:12:24rnfunction ajaxSubmit()rnalert("过程已执行");rn var title = document.forms[0].title.value;rn var author = document.forms[0].author.value;rn var content = document.forms[0].content.value;rn var xmlhttp;rn tryrn xmlhttp = new XMLHttpRequest();rn alert("XMLHttpRequest");rn catch(e)rn xmlhttp = ActiveXObject("Microsoft.XMLHTTP");rn alert("Microsoft.XMLHTTP");rn rn xmlhttp.onreadystatechange = function()rn if(4 == xmlhttp.readyState)rn if(200 == xmlhttp.status)rn var date = xmlhttp.responseText;rn add2list(date);rn alert("OK");rn elsern alert("error");rn rn rn rn xmlhttp.open("post","ajaxbbs.asp",true);rn xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');rn xmlhttp.send("title=" + escape(title)rn + "&author=" + escape(author)rn + "&content=" + escape(content)rn );rn rnrnrn错误在哪呢?
麻烦帮我看看噢``谢谢
#includern#define N 5rnvoid main()rnrn int arr[N];rn printf("请输入%d个整数\n",N);rn int i,temp;rn for(i=0;i
麻烦高手帮我看看代码
import java.awt.BorderLayout; rnimport java.awt.event.ActionEvent; rnimport java.awt.event.ActionListener; rnimport java.sql.Connection; rnimport java.sql.DriverManager; rnimport java.sql.SQLException; rnimport java.sql.Statement; rnrnimport javax.swing.JButton; rnimport javax.swing.JFrame; rnimport javax.swing.JLabel; rnimport javax.swing.JTextField; rnrnpublic class InsertTest rnrn private static JTextField textField; rn public static void main(String[] args) rn //这里加入你的数据库驱动 rn try rn Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");//注册数据库驱动 rn catch (ClassNotFoundException e2) rn e2.printStackTrace(); rn rn JFrame jf = new JFrame();//界面筐体 rn jf.setSize(495, 371);//界面大小 rn jf.getContentPane().setLayout(null);//设置布局 rn final JButton xieruButton = new JButton();//按钮控件 rn xieruButton.setBounds(139, 215, 118, 28);//按钮位置 rn //以下是点击按钮后 要做的工作 [也就是插入数据的操作] rn xieruButton.addActionListener(new ActionListener() rn public void actionPerformed(final ActionEvent e) rn Connection con; rn try rn con = DriverManager.getConnection("192.168.1.17"+ "1433" + "test" + "study"+"sa"+""); rn Statement stat = con.createStatement(); rn stat.executeUpdate("insert into study(id) values (" + textField.getText() +""); rn catch (SQLException e1) rn e1.printStackTrace(); rn rn rn rn ); rn //标签控件 rn xieruButton.setText("写入数据"); rn jf.getContentPane().add(xieruButton); rn rn final JLabel label = new JLabel(); rn label.setBounds(60, 152, 79, 28); rn label.setText("请输入数据:"); rn jf.getContentPane().add(label); rn rn textField = new JTextField(); rn textField.setBounds(145, 155, 130, 22); rn jf.getContentPane().add(textField); rn jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); rn jf.setVisible(true); rn rnrn rn上面代码哪有问题啊?写不进数据,在eclipse中运行,提示如下:rnjava.sql.SQLException: No suitable driver found for 192.168.1.171433teststudysarn at java.sql.DriverManager.getConnection(Unknown Source)rn at java.sql.DriverManager.getConnection(Unknown Source)rn at InsertTest$1.actionPerformed(InsertTest.java:34)rn at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)rn at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)rn at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)rn at javax.swing.DefaultButtonModel.setPressed(Unknown Source)rn at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)rn at java.awt.Component.processMouseEvent(Unknown Source)rn at javax.swing.JComponent.processMouseEvent(Unknown Source)rn at java.awt.Component.processEvent(Unknown Source)rn at java.awt.Container.processEvent(Unknown Source)rn at java.awt.Component.dispatchEventImpl(Unknown Source)rn at java.awt.Container.dispatchEventImpl(Unknown Source)rn at java.awt.Component.dispatchEvent(Unknown Source)rn at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)rn at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)rn at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)rn at java.awt.Container.dispatchEventImpl(Unknown Source)rn at java.awt.Window.dispatchEventImpl(Unknown Source)rn at java.awt.Component.dispatchEvent(Unknown Source)rn at java.awt.EventQueue.dispatchEvent(Unknown Source)rn at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)rn at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)rn at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)rn at java.awt.EventDispatchThread.pumpEvents(Unknown Source)rn at java.awt.EventDispatchThread.pumpEvents(Unknown Source)rn at java.awt.EventDispatchThread.run(Unknown Source)rn
麻烦帮我看看这个查询语句
为什么我用下面的语句的时候查出来的结果都是星期一,可是明明不是啊。表里面只有一个smalldatetime数据项。郁闷啊,各位帮帮忙rnuse temprngornselect datename(weekday,getdate()) as "xingqi"rnfrom studentrngorn
麻烦大家帮我看看!:)感谢!
/* rn * sw_1.java rn * rn * 编程判断一个单词和一个词组是否由颠倒字母顺序而构成 rn *例如:parliament和parlial men、software和swear oft rn *要求:a.程序中可以忽略词组中出现的空格和标点符号 rn * b.使用命令行参数的形式接收需要进行判断的词和词组 rn * rn * Created on 2004年3月24日, 下午11:15 rn */ rnrn/** rn * rn * @author zhouxi rn */ rnclass judgeString rn rn int judge(StringBuffer s1,StringBuffer s2) rn rn s1=new StringBuffer(); rn s2=new StringBuffer(); rn int len1=s1.length(); rn int len2=s2.length(); rn int i,j,t=1; rn for(i=0;i='A'&n) rn rn for(j=0;j
麻烦帮我看看如下代码
[code=C/C++]/*输入一个自然数,将该自然数的每一位数字反序输出,例如:输入 12345,输出54321*/rn#include rnusing namespace std;rnrnrnint main()rnrn cout<<>ch;rn cout<<*(ch+i);rn rn return 0;rn[/code]rnrn[color=#FF0000]我的想法是把自然数字当成字符串,然后逆序输出!但是一运行就崩溃了。[/color]
麻烦帮我看看哪里出错
下面是一个浏览器,实现到HTTP://onlinefamily.norton.com 那里自动填写不准浏览的网站,请<em>帮我</em><em>看看</em>哪里错了,按了BUTTON没反应,我是VS 2005rnrnusing System;rnusing System.Collections.Generic;rnusing System.ComponentModel;rnusing System.Data;rnusing System.Drawing;rnusing System.Text;rnusing System.Windows.Forms;rnrnnamespace autofillformrnrn public partial class Form1 : Formrn rn public Form1()rn rn InitializeComponent();rn rnrn private void Form1_Load(object sender, EventArgs e)rn rn webBrowser1.Navigate("http://onlinefamily.norton.com");rn rnrn private void button1_Click(object sender, EventArgs e)rn rn HtmlElement element = webBrowser1.Document.GetElementById("newBlockUrl");rn element.SetAttribute("value", "WWW.163.COM");rn webBrowser1.Document.All["blockListBtn"].InvokeMember("Click");rnrnrnrn rn rnrnrnhttp://onlinefamily.norton.com 设置的屏蔽网站的HTMLrn 输入网站rn rnrnrnrnrn
麻烦大侠们帮我看看 <
#include rn#include rnusing namespace std;rnrnrnclass Userrnrnpublic:rn User()rn rn _un=string("abcd");rn _cpid=string("baichi");rn rn friend ostream & operator <<< (ostream &os ,const User & ur) rnrn os<<
麻烦帮我看看这段代码!!
String chr="SELECT * FROM QQapple WHERE ";rnForm1->ADOQuery1->SQL->Add(chr + "BNO = '%" + Edit1->Text + "%'");rnrn以上这段代码,我是想进行模糊查找,但总是出现找不到,无论我输入具体的数值还是输入一个简单数据,反正就是找不到。rn我是用的ACCESS数据表rn帮帮忙,<em>看看</em>是哪里错了,还是哪里不妥。rn谢谢rn
各位老大~麻烦帮我看看~
下面是一个记录学生成绩的文本文件(txt),设计一个程序来计算某个学生的名次,要求输入学生姓名,输出名次rn rnJohn 22rnMary 92rnJonathan 82rnNick 90rnPen 43rnGary 65rn————————————————————————————————————————————————————————————rnrn我写的程序如下,因为要用模块化程序写,我只写了读出成绩数组的模块,但是为什么运行不出结果呢?没有检查到语法错误啊~<em>麻烦</em>各位帮<em>看看</em>rnrnrnrn#includernchar name[20][20];rnint a[10]=0;rnint b[10]=0;rngetScore()rn rnint i=0,j,t; rnFILE *fp; rnfp=fopen("D:\\1.txt","rt"); rnwhile(fscanf(fp,"%s %d\n",name[i],&a[i])!=EOF) rn i++; rnrnfclose(fp); rngetchar(); rn getchar();rnrnrnvoid main()rnint i=0,j;rngetScore();rnwhile(a[i]!=0) rn printf("%s %d \n",name[i],a[i]); rni++; rnrnrnrn
魅族自动化测试WebView报错
[{&quot;brandName&quot;:&quot;<em>魅族</em>&quot;,&quot;failMsg&quot;:&quot;// CRASH: com.xiaoluwa.ruika (pid 12223)// Short Msg: java.lang.IllegalArgumentException// Long Msg: java.lang.IllegalArgumentException: Receiver not registered: android....
麻烦高手帮我看看这段代码,总是报错
我想把GRIDVIEW中自定义模板中textbox中填写的文本更新到数据库表中,但总是提示“无法将类型为“System.Web.UI.LiteralControl”的对象强制转换为类型“System.Web.UI.WebControls.TextBox”。”rnrn这句代码<em>报错</em>,<em>麻烦</em>高手赐教一下,谢谢!rn Mydb.ExcuteUpdateQuery("update tb_defen set id = '" + Session["id"].ToString() + "',defen1 = '"rn + ((TextBox)(GridView1.Rows[i].Cells[1].Controls[0])).Text + "',defen2 = '"rn + ((TextBox)(GridView1.Rows[i].Cells[2].Controls[0])).Text + "',defen3 = '"rn + ((TextBox)(GridView1.Rows[i].Cells[3].Controls[0])).Text + "',defen4 = '"rn + ((TextBox)(GridView1.Rows[i].Cells[4].Controls[0])).Text + "',defen5 = '"rn + ((TextBox)(GridView1.Rows[i].Cells[1].Controls[0])).Text + "' where name = '" + (GridView1.Rows[i].Cells[0].Controls[0]).ToString() + "");
帮我好吗
我想问一下,有没有函数是对日期之间进行计算的。rnrn如:2002年2月2号-2002年2月1号=1
帮我好吗?
ASP.net里的日历控件哪里有啊?
麻烦一下帮帮忙好吗??
小弟想申请一个域名空间(商业中介),现在有如下待选域名:rnwww.the008.com www.the898.com www.the998.comrnwww.the555.com rn 大家看哪一个更好???
请教,帮我看看这个串口问题,好吗
请教,<em>帮我</em><em>看看</em>这个串口问题,<em>好吗</em>?rnrnvoid ComInStr() interrupt 4 //串行口中断rnrn if(RI)rn rn if (j>4)rn rn j=0; rn receive=1; //接收标志置位 rn rn elsern rn rece[j]=SBUF;rn j++;rn rn RI=0;rn rnrnrnrnrnmain()rnrnwhile(1)rn rn if(receive)rn rn Sendtex();rn receive = 0; rn rn rnrn大哥:rn您好!rn我这个串行口中断,还不是很好,rn因为,假设开始 发了 '111' 3 个字符rn隔了一段又发 '11' 2 个字符,总共是 5个字符rn那么 j = 5 ,eceive=1; //接收标志置位 ,rn本来这样的情况是不符合要求的,rnrn那要怎么处理啊,一般是设置多久如果还没有接收到rn5 个字符,则 j 重新置 0 啊rn这样的程序怎么写?rnrn谢谢!rn
分页有错误 高手帮我看看 好吗
set userrecord=server.CreateObject ("adodb.recordset")rn userrecord.open"select * from new_168 order by id",conn,1,1rn if not userrecord.eof then rn page=request("page")rn userrecord.pagesize=10 '每页显示记录数0rn if pageuserrecord.PageCount then page=userrecord.pagecount====每次在这里都提示我缺少userrecord 为什么的??rn userreocrd.absolutepage=pagern userrecord.MoveFirst rn for i =1 to userrecord.pagesize rn%>rn ★ ………… rnrnrn 总共记录 页 第/页 rn首页 上一页 下一页 rn尾页 rnrn第页rn
一个小程序 帮我看看好吗
Function unknown ( n )rnDim i , vector , textornvector - Array , ( “ T ”, “ R ”, “ E ”, “ N ”, “ D ” )rntexto = “”rnRandomizernFor : = 1 To nrntexto = texto & Chr ( Int ((Rnd * 9 ) + 30 ))rn: = i + 1rntexto = texto & vector ( Int (( Rud * 4 ) + 1 ))rnNext.rnUnknown = textornEnd Functionrnrntexto的结果是什么,拜托啦
帮我看看两个简单的问题好吗
一字符指针指向字符串"abcdef"rn现想将该字符串中的每个字符单独取出rn1)分别存入不同数组中rn2)存入已定义好的char *p[20]="a","b","c","d","e","f";rn首先第一问题:这个 char *p[]应该怎样定义rn第二问题:怎样将字符串存入
魅族Flyme获取Root权限
设置——>指纹和安全——>Root权限——>同意后<em>手机</em>重启即可
太急了!各位进来帮我看看好吗
假如我现在在TextBox1.text中输入aa,则会Label.text中自动显示所有与aa有关的信息?????帮帮忙<em>好吗</em>?
帮我看看一条SQL语句,好吗?谢谢
调了好几次都没调通,<em>帮我</em><em>看看</em>是不是少了个引号还是分号什么的.谢谢了!rn string sql;rn sql="insert into grade values("+stu_id.Text+","+stu.name.Text+","+Sex.Text+","+Chinese.Text+","+Maths.Text+","+English.Text+")";rnrn
急需帮助,帮我看看程序好吗
Private Declare Function NetMessageBufferSend Lib "NETAPI32.DLL" _rn(yServer As Any, yToName As Any, yFromName As Any, yMsg As Byte, _rnByVal lSize As Long) As LongrnrnPrivate Const NERR_Success As Long = 0&rnPrivate Const ERROR_ACCESS_DENIED = 5&rnPrivate Const ERROR_INVALID_PARAMETER = 87 ' dderrorrnPrivate Const ERROR_NOT_SUPPORTED = 50&rnPrivate Const NERR_NameNotFound = 2273rnPrivate Const NERR_NetworkError = 2136rnPublic Function SendMessage(ByVal sender As String, ByVal receiver As String, ByVal Msg As String) As Longrn Dim retval As Longrn Dim ToName() As Bytern Dim Message() As Bytern Dim length As Longrn Dim sendServer() As Bytern rn sendServer = "ssdg01" & vbNullCharrnrn ToName = receiver & vbNullCharrn Message = sender & ": " & Chr(10) & Chr(13) & Msg & vbNullCharrn length = UBound(Message)rn retval = NetMessageBufferSend(ByVal 0, ToName(0), ByVal 0, Message(0), length)rn 'MsgBox receiverrn 'SendMessage = retvalrnEnd Functionrn在ASP中我是这样调用的rndim sendobj,idrn set sendobj=server.CreateObject("sendmsg.send")rn Response.Write sendobj.SendMessage("send.asp","rec.asp",id)rn set sendobj=nothingrnrn其中id是我要传送的消息,为什么我的运行结果都是2273呢,程序错在什么地方呢rn帮<em>帮我</em><em>好吗</em>rnrnrn
虚心请教问题,帮我看看好吗?
我在 red hat linux 7.5 下成功的安装了 MYSql 4.0 但是在其它WINDOWS客户端上无法连接(客户端安装了MYSQL CC 控制中心). 客户端无法连接MYSQL的具体指示意思是 "MYSQL 不允许 xxx.xxx.xxx.xxx 这个客户的连接!" 后来我猜想是不是LINUX上在默认安装的时候,防火墙我选择的是"中级" ,没有指定其它的端口可用.而MYSQL默认服务端口是3306,客户端无法连接是不是防火墙导致的? 如果是的话,我该如何解除防火墙对MYSQL的3306端口的阻挡呢? 请各位高手帮助我<em>看看</em><em>好吗</em>? 谢谢啦!rn
帮我看看这个问题好吗?非常感谢!
rn ......rn Message.InnerHtml = "留言成功!";rnrn 其他地方的runat=server我知道是什么意思,但div标记里面放一个runat=server是什么意思?rn 刚才有位朋友说“服务端运行的片断,标记为Message,没有定位作用”。我就不明白,既然不定位,那用div标记干什么?把第一句的div改成span有什么不同?rn
帮我这个菜鸟看看好吗
.aspx.cs文件中会有#region-#endregion这样一段,请问这一段有什么用?还有visual stdio.net2003中解决方案资源管理器中的项目里可以添加“引用”请问这有什么用?
帮我看看这个错误是什么好吗??
Warning: Running JAM, Ignoring all other options (but "-Xheapsize", and OTA flags if provided)rn正在通过存储根 DefaultGrayPhone 来运行 rn** Error installing suite (39): The JAD matches a version of a suite already installed.rnrn我不知道这是什么意思??
初学bean出错,帮我看看好吗!?
<em>帮我</em><em>看看</em>是代码的原因码!?因为环境是否正确我还不敢保证!谢谢rnrnDBconn.java文件rnpackage DBC;rnrnimport java.sql.*;rnrnpublic class DBconn rn rn String DBDriver="org.gjt.mm.mysql.Driver";rn Statement stmt=null;rn Connection conn=null; rnrn public DBconn()//加载驱动程序的方法rn rn tryrn Class.forName(DBDriver);rn rn catch(ClassNotFoundException e)rn System.err.println("opendb():" + e.getMessage());rn rn rn public Statement connDB()rn rn tryrn conn=DriverManager.getConnection("jdbc:mysql://211.101.197.133/newsq?useUnicode=true&characterEncoding=GB2312","root","111111");//建立连接rn Statement stmt = conn.createStatement();//创建一个JDBC声明rn rn catch(SQLException ex)rn System.err.println("aq.executeQuery:" + ex.getMessage());rn return stmt;rn rnrn rnrn调用:rnrnrnrnrnrn错误提示:rnInternal Servlet Error:rnrnjavax.servlet.ServletException: rn at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)rn at d_00025udoutest._0002fdoudoutest_0002fsql_0002ejspsql_jsp_0._jspService(_0002fdoudoutest_0002fsql_0002ejspsql_jsp_0.java:106)rn at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)rn at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)rn at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)rn at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)rn at org.apache.tomcat.core.Handler.service(Handler.java:286)rn at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)rn at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)rn at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)rn at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)rn at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)rn at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)rn at java.lang.Thread.run(Thread.java:475)rn
professional C#, 3rd edition 书 PDF版本 + 源代码下载
英文版本,来自wroz.官刚版本。 作者 simon robinson .chistian nagel 亲穿。代码囊括其中。 相关下载链接:[url=//download.csdn.net/download/wang_kl/4213473?utm_source=bbsseo]//download.csdn.net/download/wang_kl/4213473?utm_source=bbsseo[/url]
复印机常见故障下载
复印机常见故障及处理方法 。 相关下载链接:[url=//download.csdn.net/download/qlsbgx/5765909?utm_source=bbsseo]//download.csdn.net/download/qlsbgx/5765909?utm_source=bbsseo[/url]
smack_接收文件实例下载
smark接收文件实例,网上的东东太多不能用了,只能一点点去琢磨做出来的 相关下载链接:[url=//download.csdn.net/download/wll52/6260603?utm_source=bbsseo]//download.csdn.net/download/wll52/6260603?utm_source=bbsseo[/url]
相关热词 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法 c# gmail 发邮件 c# 多层文件
我们是很有底线的