uva12412,找不到哪里出错了 [问题点数:25分,结帖人lsh_001]

Bbs1
本版专家分:0
结帖率 100%
Bbs2
本版专家分:378
Bbs4
本版专家分:1942
其他相关推荐
Uva12412 师兄帮帮忙
实在不想做这道题了,先扔在这里吧 wa就wa吧,感觉自己是个废人了 感觉大概是格式的问题?反正我代码很烂不管了 #include using namespace std; class Student { public: string sid; int cid,score1,score2,score3,score4,totalscore,rank; string
手写PE结构,提示不是有效的win32程序
自己模仿别人的写的,不知道哪里错了,希望可以帮下
UVA12412师兄帮帮忙
#include <stdio.h> #include <stdlib.h> #include <string.h> #define EPS 1e-5 int N; struct student { int glass; char s[120],name[120]; int Chinese,Math,English,Program,Sum...
COMBOBOX::AddString,找不到原因,哪里错了
最最最重要的是我想知道这样做出错的原因!!!!!!!!!!!!谢谢rnrn新建一个对话框资源,资源名为IDD_ANYWAY,并拖入一个COMBO BOX控件,名为IDC_COMBO_OK,rn为此对话框新建类CChartShow,并添加一个CComboBox* GOOD的Public成员rn在此类的构造函数中GOOD = (CComboBox*)GetDlgItem(IDC_COMBO_OK);rn随后问题就来了,无论在CChartShow构造函数添加GOOD->AddString("where is the problem?")并在用户代码中rnCChartShow dlg;dlg.domodel();rnrn还是在用户代码中的按钮响应函数中这样写:rn CChartShow dlgrn dlg.GOOD->AddString("where is the problem?")rnrn都会在运行程序时出错,指示XXX指令所指向的XXX类存不可用。
错了找不到原因
Exception in thread "main" java.lang.NoClassDefFoundErro那位说说那有问题。我在Jcreator上编译就没有问题。但是用命令提示符编译就有这个问题了。
找不到为什么出错了
[code=Java]package tw.com.javasorld;rnrnimport java.lang.reflect.*;rnrnpublic class TestReflection03 rn public static void main(String[] args) rnrn Class c;rn Constructor constractor;rn Object obj ;rn rn tryrnrn c= Class.forName("tw.com.javasorld.Person");rn rn //调用有参数的构造方法rn Class[] argTypes = new Class[]String.class,int.class;rn constractor = c.getConstructor(argTypes);rn obj = constractor.newInstance("中国",5000);rn System.out.println(obj);rn rn //调用无参方法的构造函数rn constractor = c.getConstructor();rn obj = constractor.newInstance();rn System.out.println(obj);rn rn catch(Exception e)rn e.printStackTrace();rn rnrn rnrnrn[/code]rn[code=Java]package tw.com.javasorld;rnrnpublic class Person rn rn private int age;rn private String name;rn private int total;rn rn Person()rn super();rn total++;rn rn Person(String name,int age)rn super();rn this.name = name;rn this.age = age;rn total++;rn rn public int getAge() rn return age;rn rn public void setAge(int age) rn this.age = age;rn rn public String getName() rn return name;rn rn public void setName(String name) rn this.name = name;rn rn public int getTotal() rn return total;rn rn public void setTotal(int total) rn this.total = total;rn rn public String toString()rn return "Name :" +name +"\tAge :" + age;rn rnrnrnrn[/code]rnrn第一个类运行不了,总报java.lang.NoSuchMethodException: tw.com.javasorld.Person.(java.lang.String, int)错..可是Person中有相应构造方法.rn不知道问题处在哪了?rn
采用Hook钩子注入DLL.
这里采用了HOOk钩子注入DLL,不过出现了错误,大佬帮忙查看下哪里错了
请问哪里错了?
[code=C/C++]#include rntemplate rnvoid ShowArray (T arr[], int n);rnrntemplate rnvoid ShowArray(T * arr[], int n);rnrnstruct debts rnrn char name[50];rn double amount;rn;rnrnint main(void)rnrn using namespace std;rn int things[6] = 13,31,103,301,310,130;rn struct debts mr_E[3] = rn rn "Ima Wolfe", 2400,rn "Ura Foxe ", 1300,rn "Iby Stout", 1800rn ;rn double * pd[3];rn for (int i = 0; i < 3; i++)rn pd[i] = &mr_E[i].amount;rn cout << "Listing Mr.E's counts of things: \n";rn ShowArray(things, 6);rn cout << "Listing Mr.E's debts:\n";rn ShowArray(pd, 3);rn return 0;rnrnrntemplate rnvoid ShowArray(T arr[], int n)rnrn using namespace std;rn cout << "template A\n";rn for (int i = 0; i < n; i++)rn cout << arr[i] << ' ';rn cout << endl;rnrnrntemplate rnvoid ShowArray(T * arr[], int n)rnrn using namespace std;rn cout << "template B\n";rn for (int i = 0; i < n; i++)rn cout << *arr[i] << ' ';rn cout endl;rn[/code]
分页程序哪里错了
这是我写的一段分页程序rndim MaxPerPage=10rnrnrs.MoveFirst rnrs.PageSize =MaxPerPagernhowmanyfields=rs.RecordCount-1rnif trim(request("page"))<>"" thenrn currentpage=Clng(request("page"))rn if currentpage>rs.PageCount thenrn currentpage=rs.PageCount rn end ifrnelsern currentpage=1rnend ifrn rnif rs.EOF thenrn Response.Write "记录录入中......"rnelsern totalput=rs.RecordCount rn if currentpage<>1 thenrn if (currentpage-1)*MaxPerPagern第 页 共记录rn<>1 thenrn Response.Write "["+"首页]"rn Response.Write "["+"上一页]"rn elsern Response.Write "[首页][上一页]"rn end ifrn if k<>n then rn Response.Write "["+"下一页]"rn Response.Write "["+"尾页]"rn elsern Response.Write "[下一页][尾页]"rn end if rn%>rnrnrn总共有34行,可是首页显示了1-34,然后第2页显示了11-34,然后....请问这是为什么?看了老半天了,
到底哪里错了
rnpublic class HelloWorld rn rn public static void main(Sring args[])rn rn rnSystem.out.println("HelloWorld!");rnrnrn用eclipse运行后显示:Error exec AnyQrn为什么?
哪里错了??
CREATE TABLE 门诊结算单(rn 结算单编号 CHAR(5) PRIMARY KEY,rn 诊疗费用 MONEY,rn 药品费用 MONEY )rnCREATE PROC consume;1rnASrnDECLARE @ total MONEY,rntotal=SELECT诊疗费用FROM门诊结算单+SELECT药品费用FROM门诊结算单
哪里错了
[code=C/C++]rn#include rnusing namespace std;rnrnclass Shapernrnprivate:rn double x;rn double y;rn double r;rnpublic:rn Shape() x = y = r = 0.0 ; rn Shape(double x1,double y1):r(0.0) x = x1,y = y1; rn Shape(double r1):x(0.0),y(0.0) r = r1; rn const double Getx()const return x; rn const double Gety()const return y; rn const double Getr()const return r; rn virtual ~Shape()=0rn;rnrnclass Rectangle:public Shapernrnpublic:rn Rectangle():Shape() rn Rectangle(int x,int y):Shape(x,y) rn rn virtual double GetArea() return Getx()*Gety() ; rn virtual double GetPerim() return 2*(Getx() + Gety()); rn virtual ~Rectangle() rn;rnrnclass Circle:public Shapernrnpublic:rn Circle():Shape(0) rn Circle(int r):Shape(r) rnrn virtual double GetArea() return Getr()*Getr()*3.14159 ; rn virtual double GetPerim() return 3.14159*2*Getr() ; rn virtual ~Circle() rn;rnrnclass Square:public Rectanglernrnpublic:rn Square():Rectangle() rn Square(int m):Rectangle(m,m) rn rn virtual double GetArea() return Rectangle::GetArea();rn virtual double GetPerim() return Rectangle::GetPerim();rn virtual ~Square() rn;rn rnint main()rnrn Shape *p = &Square(10);rn p->GetArea();rn system("pause");rn return 0;rnrnrn[/code]
哪里错了????
#include rn#include rn#define N 7rn//定义一个含有两个域的结点rntypedef struct nodern int data;rn struct node *next;rnElemSN;rnrn//创建正向链表(尾插)rnElemSN * CreatLink1(int a[],int n)rnrn ElemSN *h,*p,*t;rn for(int i=0;idata=a[i];rn p->next=NULL;rn if(!i) h=t=p;//是第一个结点rn else t=t->next=p;rn rn return h;rnrnrn//创建逆向链表(头插)rnElemSN * CreatLink2(int a[],int n)rnrn ElemSN *h,*p;rn h=NULL;rn for(int i=0;idata=a[i];rn p->next=NULL;rn p->next=h;//挂链rn h=p;//挪头指针rn rn return h;rnrnrn//输出单向链表rnvoid PrintLink(ElemSN *h)rnrn ElemSN *p;rn printf("\n输出的链表为:\n");rn for(p=h;p;p=p->next)rn printf("%5d",p.data);rnrnrn//主函数调用rnint main(void)rnrn ElemSN *head1,*head2;rn int a[N]=0;rn int i;rn printf("\n请依次输入链表每个结点的值:\n");rn for(i=0;i
这一段哪里错了
rnrn错误提示:rnrnrnMicrosoft VBScript 编译器错误 错误 '800a03f6'rnrn缺少 'End'rnrn/iisHelp/common/500-100.asp,行242rnrnMicrosoft JScript 编译错误 错误 '800a03ec'rnrn缺少 ';'rnrn/Web/menu/NewMenu.asp,行44rnrnresponse.write " "rn---------------^rn
哪里错了~
rn为什么inputInteger1,inputInteger2输出的是4097、3840而不是15,16?rnrn[code=Java]/*rn * To change this template, choose Tools | Templatesrn * and open the template in the editor.rn */rnrnimport javax.microedition.midlet.*;rnimport javax.microedition.lcdui.*;rnimport javax.microedition.rms.*;rnimport java.io.*;rnrn/**rn * @author stcLhongrn */rnpublic class WriteReadExample extends MIDlet implements CommandListenerrn private Display display;rn private Alert alert;rn private Form form;rn private Command exit;rn private Command start;rn private RecordStore recordstore = null;rnrn public WriteReadExample()rn display = Display.getDisplay(this);rn exit = new Command("Exit",Command.EXIT,1);//sdfrn start = new Command("Start",Command.SCREEN,1);rn form = new Form("Record");rn form.addCommand(exit);rn form.addCommand(start);rn form.setCommandListener(this);rn rn public void startApp() rn display.setCurrent(form);rn rnrn public void pauseApp() rn rnrn public void destroyApp(boolean unconditional) rn rnrn public void commandAction(Command command,Displayable displayable)rn if(command == exit)rn destroyApp(true);rn notifyDestroyed();rn rn else if(command == start)rn tryrn recordstore = RecordStore.openRecordStore("myRecordStore", true);rn rn catch(Exception error)rn alert = new Alert("Error Creating",error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn tryrn byte[] outputRecord;rn String outputString = "First Record";rn int outputInteger1 = 15;rn int outputInteger2 = 16;rn boolean outputBoolean = true;rn ByteArrayOutputStream outputStream = new ByteArrayOutputStream();rn DataOutputStream outputDataStream = new DataOutputStream(outputStream);rn outputDataStream.writeUTF(outputString);rn outputDataStream.writeInt(outputInteger1);rn outputDataStream.writeInt(outputInteger2);rn outputDataStream.writeBoolean(outputBoolean);rn outputDataStream.flush();rn outputRecord = outputStream.toByteArray();rn recordstore.addRecord(outputRecord, 0, outputRecord.length);rn outputStream.reset();rn outputStream.close();rn outputDataStream.close();rn rn catch(Exception error)rn alert = new Alert("Error Writing",error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn tryrn String inputString = null;rn int inputInteger1 = 0;rn int inputInteger2 = 0;rn boolean inputBoolean = false;rn byte[] byteInputData = new byte[100];rn ByteArrayInputStream inputStream = new ByteArrayInputStream(byteInputData);rn DataInputStream inputDataStream = new DataInputStream(inputStream);rnrn for(int x = 1;x,error.toString(),null,AlertType.WARNING);rn alert.setTimeout(Alert.FOREVER);rn display.setCurrent(alert);rn rn rn rn rnrn[/code]
哪里错了
unit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls;rnrntypern TForm1 = class(TForm)rn Label1: TLabel;rn Label2: TLabel;rn Label3: TLabel;rn Edit1: TEdit;rn Button1: TButton;rn Button2: TButton;rn Button3: TButton;rn procedure Button3Click(Sender: TObject);rn procedure Button1Click(Sender: TObject);rn procedure Button2Click(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rnrnimplementationrnrn$R *.dfmrnrnprocedure TForm1.Button3Click(Sender: TObject);rnbeginrnclose;rnend;rnrnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrn if edit1.Text :='笑书神侠倚碧鸳' thenrn showmessage('Right!Congratulations!');rn elsern showmessage('Sorry!Input again?');rnrnend;rnrnprocedure TForm1.Button2Click(Sender: TObject);rnbeginrn edit1.Text :='';rnend;rnrnend.rnrnrnrnrn它说 if edit1.Text :='笑书神侠倚碧鸳' then 这一句出错了rn错误提示:[Error] Unit1.pas(41): Type of expression must be BOOLEAN
哪里错了
[code=HTML]rn[/code]rn直接返回没有问题rn如下rn Response.Charset = "gb2312" rn response.expires = -1rn xname = request.QueryString("xname")rn xpass = request.QueryString("xpass")rn response.write xpassrn 但是按最上面查询就有问题了 郁闷, 返回的是一个莫名奇妙的页面代码
fread哪里错了
abc.txt里面的内容是:rnthisisokrn想将字符窜三个三个字存进数组list里。rnthi存进list[0];rnsis存进list[1]。。。。;rnfread是不是哪里错了?rnrnrn#include rn#include rn#include rnrnrn main( ) rnrnrnchar list[4][10];rnFILE *fp;rnfp=fopen("d://abc.txt","w");rnrnfor(int i =0;i ,list[1]);rn
请问哪里错了
代码:rnrn错误:rnMicrosoft VBScript 编译器错误 错误 '800a03f6' rnrn缺少 'End' rnrn/iisHelp/common/500-100.asp,行242 rnrn服务器对象 错误 'ASP 0177 : 800401f3' rnrnServer.CreateObject 失败 rnrn/conn.asp,行4 rnrn无效的 ProgID。 若要获取关于此消息的更多的信息,请访问 Microsoft 联机支持站点: http://www.microsoft.com/contentredirect.asp 。 rn
到底哪里错了?
Option ExplicitrnPrivate Sub Command1_Click()rn Dim t As Longrn Dim i As Longrn Dim m_switch As Booleanrn i = 2rn t = Val(Text1.Text)rn m_switch = Falsern Do Until i > t Or m_switchrn If t Mod i = 0 Thenrn m_switch = Truern Elsern i = i + 1rn End Ifrn Looprn If m_switch Thenrn Text2.Text = t & "是素数"rn Elsern Text2.Text = t & "不是素数"rn End IfrnEnd Subrnrn这段程序运行后,无论输入的数值是什么,都提示XX是素数.到底哪里错了?
哪里错了?
错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80004005)rn[Microsoft][ODBC Microsoft Access Driver]常见错误 不能打开注册表关键字 'Temporary (volatile) Jet DSN for process 0x4bc Thread 0x848 DBC 0x8f3fd4 Jet'。rn/QIANQIAN/connopen.asp, 第 7 行rn
哪里错了???
刚刚接触水晶报表9.2 ,在vb里使用它,但很多地方不懂!请各位大侠帮帮忙!!!rn我的代码是这样的,不知什么地方出错了rnPrivate Sub Form_Load()rnrnDim oApp As New CRAXDRT.ApplicationrnDim oRpt As CRAXDRT.ReportrnDim reportName As StringrnDim StrTitle As StringrnrnStrTitle = "gggg"rnScreen.MousePointer = vbHourglassrnrnrnreportName = "\rpt\Pr2.rpt"rnrnSet oRpt = oApp.OpenReport(App.Path & reportName, 1)rn'Title是报表的一个公式字段rnoRpt.FormulaFields.GetItemByName("Title").Text = StrTitle rnrnoRpt.Database.SetDataSource rsrnoRpt.ReadRecordsrnrnCRViewer91.ReportSource = oRptrnrnCRViewer91.ViewReportrnScreen.MousePointer = vbDefaultrnrnrnEnd SubrnrnPrivate Sub Form_Resize()rnrnCRViewer91.Top = 0rnCRViewer91.Left = 0rnCRViewer91.Height = ScaleHeightrnCRViewer91.Width = ScaleWidthrnrnEnd SubrnrnPrivate Sub Form_Unload(Cancel As Integer)rn rn Set rs = Nothingrn rn Set conn = Nothingrn rn Unload Form2rn rnEnd Subrn调试的时候出错,错误提示是怎么的“剩余文本不是公式的一部分”rn究竟那里错了???
请问哪里错了
在数据库的表中还有id这列,我把它设置为int,自增rnrnPrivate Sub GetConnected()rn Set cn = New ADODB.Connectionrn cn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=hardware;Data Source=CHENDONG-2E7F71"rn cn.CommandTimeout = 30rn cn.OpenrnEnd SubrnrnPublic cn As ADODB.ConnectionrnDim str As StringrnDim rs As ADODB.RecordsetrnrnPrivate Sub Command1_Click()rn GetConnectedrn Set rs = New ADODB.Recordsetrn rs.Open str, cn, adOpenDynamic, adLockOptimisticrn rs.AddNewrn rs("type") = Text2.Textrn rs("brand") = Combo1.Textrn rs("info") = Text3.Textrn rs.UpdaternEnd Sub
语法哪里错了
[code=SQL]rncreate table t_user rn(ID varchar2(20),rnName varchar2(20))rnrninsert into t_user values('1','張三');rninsert into t_user values('2','李四');rnrnCREATE OR REPLACE PACKAGE pkg_user ASrn --定义返回值(游标类型)rn TYPE myrctype IS REF CURSOR;rn --定义查询过程rn PROCEDURE sp_userlist(cur_result OUT myrctype);rnEND pkg_user;rnrnCREATE OR REPLACE PACKAGE BODY "PKG_USER" ASrn --查询过程rn PROCEDURE sp_userlist(cur_result OUT myrctype) ISrn sqlstr VARCHAR2(500);rn BEGINrn OPEN cur_result FORrn select * from t_user;rn END sp_userlist;rnEND pkg_user;rnrnbegin sp_userlist ; end; rn[/code]rnrn出现错误如下:rn--------------------------------------------------------------------------------rnrnORA-06550: 第 1 行, 第 7 列: rnPLS-00201: 必须声明标识符 'SP_USERLIST'rnORA-06550: 第 1 行, 第 7 列: rnPL/SQL: Statement ignored
myEclipse哪里错了???!!!
type Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnorg.apache.jasper.JasperException: Unable to compile class for JSP: rnrnAn error occurred at line: 22 in the generated java filernThe method getJspApplicationContext(ServletContext) is undefined for the type JspFactoryrnrnStacktrace:rn org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)rn org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)rn org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:334)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)rn org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)rn org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:717)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/6.0.20 logs.rnrnrn--------------------------------------------------------------------------------rn
SQL语法哪里错了
哪里错了。rn[code=SQL]rndeclarern tname varchar2(60);rn cname varchar(100);rn dlength number;rn maxlength number;rnbeginrn maxlength := 0;rn for idx in (select u.TABLE_NAME,rn u.COLUMN_NAME,rn u.DATA_LENGTH,rn decode(mod(u.DATA_LENGTH, 2), 0, 'EVEN', 'ODD') ODD_EVENrn from user_tab_columns urn where u.DATA_TYPE = 'VARCHAR2'rn and u.TABLE_NAME inrn (select t.table_namern from all_tables trn where t.num_rows > 0rn and t.owner = 'BXDB')) looprn tname := idx.TABLE_NAME;rn cname := idx.COLUMN_NAME;rn dlength := idx.DATA_LENGTH;rn execute immediate 'select max(lengthb(' || cname || ')) from ' || tnamern into maxlength;rn if (1.5 * maxlength) > dlength thenrn if idx.odd_even = 'ODD' thenrn dbms_output.put_line('alter table ' || tname || ' modify ' ||rnrn cname || 'varchar2(' || 2 * maxlength || ');');rn elsern dbms_output.put_line('alter table ' || tname || ' modify ' ||rn cname || 'varchar2(' || 1.5 * maxlength || ');');rn end if;rn end if;rn end loop;rnend;rn[/code]
想知道哪里错了
代码如下:rn#include "stdio.h"rn#include "windows.h"rn#include "forC.h"rnrn#define re 10rnint main()rn rn int yr[re];rn int i,j,l;rn l=scanf("%d",&j);rn while(l)rn rn printf("Continue!\n");rn l=scanf("%d",&j);rn rn printf("Fail!%d\n",l);rn for(i=0;i);rn return 0;rnrn运行结果:rn4rnContinue!rn1rnContinue!rndrnFail!0rn-858993460rn-858993460rn-858993460rn-858993460rn-858993460rn-858993460rn-858993460rn-858993460rn-858993460rn-858993460rn请按任意键继续. . .rn按理来说while循环与下面的for循环没有关系的,为什么不进入到for的输入循环里?而且结果很奇怪
哪里错了呢?
照书上的rn//FrameTest.javarnimport java.awt.*;rnclass FrameTest extends Framernpublic boolean handleEvent(Event evt)rnif (evt.id==Event.WINDOW_DESTROY) System.exit(0);rn//书上原来是return super.handleEvent(e);rnreturn super.handleEvent(evt);rnrnrnpublic static void main(String[] args) rnrnFrame f=new Frame();rnf.resize(300,200);rnf.show();rnrnrnrnrnrn
归并排序,哪里错了
[code=C/C++]rnvoid merge(int a[], int low, int mid, int high)rnrn int n1 = mid - low + 1;rn int n2 = high - mid;rn int b[10];rn int c[10];rn int i, j, k;rnrn for(i = 0; i < n1; i++)rn b[i] = a[low+i-1];rn for(i = 0; i < n2; i++)rn c[i] = a[mid+i];rn i = 0;rn j = 0;rn k = 0;rn while((i < n1) && (j < n2) && (k < high))rn rn if(b[i] < c[j])rn rn a[k] = b[i];rn i++;rn rn else rn rn a[k] = c[j];rn j++;rn rn k++;rn rn rnrnrnrnvoid mergeSort(int a[], int low, int high)rnrn int mid;rn if(high >= low)rn rn mid = (low + high)/2;rn mergeSort(a, low, mid);rn mergeSort(a, mid, high);rn merge(a, low, mid, high); rn rnrnrnrnrn[/code]rnrn代码很乱,大家凑合看
这个哪里错了
[code=C/C++]#includern#includernusing namespace std;rnint main()rnrn vector snum;rn int count;rn cout<>count)rn snum.push_back(count);rn int *pt= new int[snum.size()];rn int *pt2=pt;rn for(vector::iterator i=snum.begin();i!=snum.end();++i,++pt)rn *pt2=*i;rn delete [] pt;rn for(int a=0;a!=sizeof(pt2)/sizeof(int);a++)rn cout<
哪里错了?求教!
rnclass kothread extends Threadrnrn int n;rn String st;rn public kothread(String ko)rn rn st=ko;rn rn public void run()rn rn for(n=0;n java.lang.NoSuchMethodError: kothread.start()Vrn at ko3.main(ko3.java:34)
读取文件哪里错了
import java.io.*;rnimport java.util.Scanner;rnrnrnrnpublic class FileRd rn public static void main(String[] agrs) throws Exceptionrn File file=new File("e:\\111.txt");rn Scanner sc=new Scanner(file);rn int num=0;rn int sum=0;rn if(sc.hasNextLine())rn sum=sum+sc.nextInt();rn num++;rn rn rn System.out.println("文件中的数据总和为:"+sum);rn System.out.println("文件中数据的平均值为:"+sum/num);rn rn rnrnrnrn打印结果只读入了文件的第一行数据,为什么??不知道问题出在哪里rn
不知道哪里错了
各位大哥好, 工作上临时需要用php操作个数据库, 但是不知道为什么一直无法成功Insert数据进Database, 想请各位帮忙检查一下哪里错了rnrnrn rnrn". $row1[0] . " ";rn rn rn rnrnelsernrn echo "different--->". $row[0]. " ";rn rn rn mysql_select_db("testPLM",$connect);rn rn mysql_query("SET NAMES utf8");rn //底下要把另一个数据库没有的数据加入, 可是都报错rn mysql_query("INSERT INTO version (name, time, description) VALUES('$row[0]', NULL, NULL)") or die('Insert data fail');rn rnrnrn rnrnrn rn?>
请问哪里错了???
rn想编写独立模块,不知道下面哪里错了,用的是python2.5rndef show():rn print 'i am a moudle'rn if _name_=='_main_':rn rn File "", line 3rn if _name_=='_main_':rn rn^rnIndentationError: unindent does not match any outer indentation levelrnrnrnrndef show():rn pirnt ' I am a module!'rnif _name_='_main_':rn show()rn print ' I am not a module!'rnrn rnrn
这个哪里错了?
test.jsprnrnrnrnrn rntestrnrnrnrn rn夺rnrnrnrnrnrntest1.jsprnrnrnrn rntest1rnrnrnrnrnrnrnrnrn在jbuilder里面显示是:before:'ÎÒ°®Äã'after:'�Ұ���rn在ie显示是:before:'我爱ä½?rnafter:'我爱�? rnrn该怎么解决这个乱码问题?
ifstream哪里错了
rn#include "stdafx.h"rn#include rn#include rnrnusing namespace std;rnrntypedef std::string String;rnrnvoid loadDirect(const String& filename)rnrn rn std::ifstream fp;//这句话编译的时候报错 “fp”使用未定义的 class“std::basic_ifstream”rn rn fp.open(filename.c_str(), std::ios::in | std::ios::binary);rn if(!fp)rn rn //..rn rn rnrnrnrnint _tmain(int argc, _TCHAR* argv[])rnrn cout<;rnrn return 0;rnrn
ObQueryNameString哪里错了
buf=*(ULONG*)irp->AssociatedIrp.SystemBuffer;rn pdev=(PDEVICE_OBJECT)buf;rn dev_name=(POBJECT_NAME_INFORMATION)ExAllocatePool(NonPagedPool,1024);rn status=ObQueryNameString((PVOID)pdev,dev_name,1024,rl);rn DbgPrint("%d",status);rn if(status==STATUS_INFO_LENGTH_MISMATCH)rn rn ExFreePool(dev_name);rn dev_name=(POBJECT_NAME_INFORMATION)ExAllocatePool(NonPagedPool,*rl);rn status=ObQueryNameString((PVOID)pdev,dev_name,*rl,rl);rn rn if(status==STATUS_SUCCESS)rn rn memcpy(irp->UserBuffer,(const void*)(dev_name->Name.Buffer),(dev_name->Name.Length));rn ExFreePool(dev_name);rn rn这儿buf是win32传进去的DEVICE_OBJECT的地址,地址是正确的,然后将设备名传出去rn编译正常但执行ObQueryNameString后它返回了-1073741819,怎么回事STATUS_INFO_LENGTH_MISMATCH应该是-1073741820
看看哪里错了
[code=C/C++]/*rn*图的邻接表存储rn*/rn#include/* EOF(=^Z或F6),NULL */rn#includern#includernrn#define MAX_VERTEX_NUM 20rn//#define MAX_NAME 5rnrntypedef int InfoType ;//存放网的权值rntypedef char VertexType[5];//字符串类型rnrntypedef enumrnrn DG,DN,UDG,UDNrnGraphKind;rntypedef struct ArcNode//表结点rnrn int adjvex;//弧所指向顶点的位置rn struct ArcNode *nextarc;//指向下条弧的指针rn InfoType info;//弧相关信息(权)rnArcNode;rntypedef struct VNode//头结点rnrn VertexType data;//顶点信息rn ArcNode *firstarc;//第一个表结点的地址,指向第一条依附该顶点的弧的指针 rnVNode,AdjList[MAX_VERTEX_NUM];rntypedef structrnrn AdjList vertices;rn int vexnum,arcnum;//图当前的顶点数和弧数rn int kind;rnALGraph;rnrnrn/* 采用邻接表存储结构,构造没有相关信息的图G*/rnvoid InitALGraph(ALGraph *G)rnrn printf("请输入图的类型(DG:0,DN:1,UDG:2,UDN:3)");rn scanf("%d",&(*G).kind);rn printf("请输入图的顶点数:");rn scanf("%d",&(*G).vexnum);rn printf("请输入图的边数:");rn scanf("%d",&(*G).arcnum);rn int i;rnrn printf("请输入定点向量:");rn for(i=0;iinfo=0;//初始化权值为0rn p1->nextarc=(*G).vertices[v1_site].firstarc;rn (*G).vertices[v1_site].firstarc=p1;rnrn switch((*G).kind)rn rn case DG:rn break;rn case DN:rn printf("请输入权值:");rn scanf("%d",&p1->info);rn break;rn case UDG:rn p2=(ArcNode *)malloc(sizeof(ArcNode));rn p2->adjvex=v1_site;rn p2->info=0;//初始化权值为0rn p2->nextarc=(*G).vertices[v2_site].firstarc;rn (*G).vertices[v2_site].firstarc=p2;//头插入rn break;rn case UDN:rn printf("请输入权值:");rn scanf("%d",&p1->info);rn p2=(ArcNode *)malloc(sizeof(ArcNode));rn p2->adjvex=v1_site;rn p2->info=p1->info;//初始化权值为0rn p2->nextarc=(*G).vertices[v2_site].firstarc;rn (*G).vertices[v2_site].firstarc=p2;//头插入rn break;rn default:rn exit(0);rn rn rnrnvoid printALGraph(ALGraph G)rnrn int i;rnrn for(i=0;iadjvex].data);rn break;rn case UDN:rn printf("%s --",G.vertices[i].data);rn printf("%s,%d",G.vertices[p->adjvex].data,p->info);rn break;rn case DG:rn printf("",G.vertices[i].data);rn printf("%s>",G.vertices[p->adjvex].data);rn break;rn case DN:rn printf("< %s ->", G.vertices[i].data);rn printf(" %s , %d >", G.vertices[p->adjvex].data, p->info);break;rn default:rn exit(0);rn rn p=p->nextarc;rn printf("\n\n");rn rn rnrnint main()rnrn ALGraph G;rnrn createALGraph(&G);rnrn printALGraph(G);rnrn return 0;rn[/code]
哪里错了
1.指出以下程序的错误,并说明原因rnvoid func2(int *value)rnrn *value = 2;rnrnvoid func1()rnrn int * p = 0;rn func2(p);rnrnrn2.rnint a = 9; int b = 10;rnvoid swap(int x,int y)rnrn int temp = x;rn x = y;rn y = x;rnrnswap(a,b);rnrn;rnrnint main()rnrn D cd;rn cd.a = 1000;rn cout << "a=" << cd.a << endl;rn return 0;rnrnrnrn3.class Exaplernrn public:rn Static double rate = 6.5;rn;rnrn
看下哪里错了???
rn文件:rnrnrn用:set objrs_new=server.CreateObject("adodb.recordset")rn objrs_new.open sql_now,con,1,3,1rn出现同样的问题.rnrnrn错误类型:rnMicrosoft OLE DB Provider for ODBC Drivers (0x80040E10)rn[Microsoft][ODBC Microsoft Access Driver] 参数不足,期待是 1。rn/e/now_re.asp, 第 15 行rnrnrn大家帮下忙啊,我做了一整天啦,都没有通过...^^rn
这个哪里错了
split函数rn格式: v=split(s,d])rn用法:把字符串s分割成字符串数组,分隔符为d.rn
代码哪里错了
[img=http://img.bbs.csdn.net/upload/201503/17/1426584852_757194.png][/img]
不知道哪里错了
[code=C#]rnrn protected void Button1_Click(object sender, EventArgs e)rn rn // int a = Convert.ToInt32(this.RadioButtonList1.SelectedValue);rn SqlConnection con = DB.createConnection();rn con.Open();rn SqlCommand cmd = new SqlCommand();rn cmd.Connection = con;rn cmd.CommandText = "update Title set titleID=Convert.ToInt32(this.RadioButtonList1.SelectedValue)";rn cmd.ExecuteNonQuery(); rn con.Close(); rn rnrnrn[/code]rn提示我“。”附近有错误。不知道是update写错了还是怎么了。rn之前我弄了个RadioButtonList,我想获得被选中项的this.RadioButtonList1.DataValueField的值,不知道this.RadioButtonList1.SelectedValue是不是这个值。rnrn我想用这个值更新一下下面的表[code=SQL]rncreate table Titlern(rn id int primary key, --编号rn titleID int default 1 not null --投票的标题序号rn)rnrninsert into Title values(1,1)rn[/code]rn之前还有一段我绑定控件的代码:rn[code=C#]rn protected void Page_Load(object sender, EventArgs e)rn rn SqlConnection con = DB.createConnection();rn con.Open();rn SqlCommand cmd = new SqlCommand("select * from voteMaster",con);rn SqlDataReader sdr = cmd.ExecuteReader();rn this.RadioButtonList1.DataTextField = "voteTitle";rn this.RadioButtonList1.DataValueField = "voteID";rn this.RadioButtonList1.DataSource = sdr;rn this.RadioButtonList1.DataBind();rn sdr.Close();rn con.Close();rn [/code]rnrn我就是想实现用voteMaster表中的voteID的值去更新Title表中的titleID。好心人帮帮忙吧,先谢了。
匿名方法,哪里错了
string[] strArr = "sdf", "df", "er", "tyyt", "uiyytr", "uyigf", "ewrfw", "e", "33" ;rnrn IEnumerable newArr = Enumerable.Where(strArr, rn rn new Delegate(string dd)rn int a;rn return int.TryParse(dd,out a);rn rn rn rn );
哪里错了啊?
考务管理系统中的自动安排考场和监考安排rnrn 哪里错了啊??rnrnpublic class Ramdrnpublic static int[] randoms()rnrnRandom r = new Random();rnint temp1,temp2;rnint send[] = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21;rnint len = send.length;rnint returnValue[] = new int[22];rnfor(int i=0;i<22;i++)rnrntemp1 = Math.abs(r.nextInt())% len;rnreturnValue[i] = send[temp1];rntemp2 = send[temp1];rnsend[temp1] = send[len-1];rnsend[len-1] = temp2;rnlen--;rnrnreturn returnValue;rnrnrnpublic static void main(String args[])rnrn int r;rn Ramd m=new Ramd();rn m.randoms();rn r=m.randoms();rn system.out.println(r);rnrnrnrn
不知道哪里错了:(
我想复制一个标记块,但就是出不来~rnrnrn rnrnrn rnrnrnrn其中book.xml为:rnrnrn rn 我rn Carl Saganrn Ballantine Booksrn rn rn Catwingsrn Ursula K. Le Guinrn Scholasticrn rn rn Home Townrn Tracy Kidderrn Random Housern rnrnrn就是跳不出什么东西来啊~
哪里错了呢???
# include rn# include rn# include rn# include rn# include rnusing namespace std;rnstring read_file_into_string()rn ifstream ifile("xxh.txt");rn ostringstream buf;rn char ch;rn while(buf && ifile.get(ch))rn buf.put(ch);rn //cout< lines_of_text;rn string::size_type pos=0,npos;rn%%%%%%%%%%%%%%%%%%%?????????????rn while(pos!=npos)rn rn pos=text.find('\n',pos);rn //cout<<
码出高效:Java开发手册
Java
【求助】 哪里错了
Inputrn每组输入数据占3行,第一行是2个整数 n ( 0 < n ≤ 100 ) 和 m ( 0 < m ≤ 100 ) ,分别表示集合A和集合B的元素个数。rn第二行是n个整数,表示集合A的n个元素。rn第三行是m个整数,表示集合B的m个元素。rn每个元素为不超出int范围的整数,元素之间有一个空格隔开。rn如果n=0并且m=0表示输入的结束,不做处理。rnrnOutputrn针对每组数据输出一行数据,表示A-B的结果,如果结果为空集合,则输出"NULL",否则从小到大输出结果。 两个元素之间有一个空格,行末没有空格。rnrnSample Inputrn3 3rn1 2 3rn1 4 7rn3 7rn2 5 8rn2 3 4 5 6 7 8rn0 0rnrnSample Outputrn2 3rnNULLrnrn[code=c]#includernvoid bubble(int p[],int t);rnint main()rnrn int i,j,n,k,m,t,a[101],b[101],p[101];rn while(scanf("%d%d",&n,&m)!=EOF)rn rn if(n==0&&m==0)rn break;rn t=n;rn for(i=0;ip[j+1])rn rn s=p[j];p[j]=p[j+1];p[j+1]=s;rn rn rn[/code]
克鲁斯卡尔算法哪里错了??
//克鲁斯卡尔算法rntypedef structrnrnint u;int v;int w;rnEdge;rnvoid Kruskal(Edge E[],int n,int e)rnrn int i,j,m1,m2,sn1,sn2,k;rn int vset[MAXVEX];rn for(i=0;i
哪里错了,非常感谢
[img=http://img.bbs.csdn.net/upload/201711/24/1511512807_958720.png][/img]
指点下哪里错了
下面的程序调试没错,就是在运行是你输入10个数字后选择一个排序方法输出,输出的都是0 0 0…………这是怎么回事啊?谁帮我解决下rnusing System;rnrn//接口ISort1,ISort2,ISort3,ISort4rninterface ISort1rnrn double[] getnumber();rnrnrninterface ISort2rnrn double[] numSort();rnrnrninterface ISort3rnrn void outplay();rnrnrninterface ISort4rnrn void Maopao(ref double[] numberValue);rnrn void insertSort(ref double[] numberValue);rnrnrnclass SetCountrnrn public static int num_count = 0;rn public double[] numberValue = new double[num_count];rnrn //ISort1接口方法实现,设置数组的长度rn public void setCount(int NumberCount)rn rn num_count = NumberCount;rn numberValue = new double[num_count];rn rnrnrnclass GetNumber : SetCount, ISort1rnrn //验证输入的数字rn private bool isNumber(string str)rn rn for (int i = 0; i < str.Length; i++)rn rn if (!char.IsNumber(str,i) && str.Substring(i,1) != ".")rn rn return false;rn rn rnrn return true;rn rnrn //ISort2接口方法实现,输入数组元素rn public double[] getnumber()rn rn string strline;rnrn for(int num = 0;num < num_count;num++)rn rn Console.Write("Enter the Number: ");rn strline = Console.ReadLine();rnrn if (isNumber(strline))rn rn numberValue[num] = double.Parse(strline);rn rn elsern rn Console.WriteLine("error! Input again!");rn num = num - 1;rn rn rnrn return numberValue;rn rnrnrnclass SortMethod : SetCount, ISort4rnrn //冒泡排序rn public void Maopao(ref double[] numberValue)rn rn double temp;rn for(int j = 0; j < numberValue.Length; j++)rn for(int k = j+1; k< numberValue.Length; k++)rn if(numberValue[j] < numberValue[k])rn rn temp = numberValue[j];rn numberValue[j] = numberValue[k];rn numberValue[k] = temp;rn rn rnrn //插入排序rn public void insertSort(ref double[] numberValue) rn rn for(int i = 1;i < numberValue.Length; ++i) rn rn double l = numberValue[i]; rn int j = i; rn while((j > 0) && (numberValue[j-1] > l)) rn rn numberValue[j] = numberValue[j-1]; rn --j; rn rn numberValue[j] = l; rn rn rnrnrnclass NumSort : SortMethod, ISort2rnrnrn //ISort3接口方法实现,选择要排序的方法rn public double[] numSort()rn rn int t;rn SortMethod sm = new SortMethod();rnrn Console.WriteLine("Please Choose which method you want to:1)MaoPao,2)InsertSort:");rn string choice=Console.ReadLine();rn t=Int32.Parse(choice);rn if(t==1)rn rn sm.Maopao(ref numberValue);rn rn else if(t==2)rn rn sm.insertSort(ref numberValue);rn rn elsern rn Console.WriteLine("No such Method!");rn rnrn return numberValue;rn rnrnrnclass OutPlay : SetCount, ISort3rnrnrn //ISort4接口方法实现,输出排序好的数组rn public void outplay()rn rn foreach(double i in numberValue)rn Console.Write(" " + i + " ");rn rnrnrnclass Testrnrnrn //控制台显示rn public static void Main()rn rn SetCount sc = new SetCount();rn sc.setCount(10);rn GetNumber gn = new GetNumber();rn gn.getnumber();rn NumSort ns = new NumSort();rn ns.numSort();rn OutPlay op = new OutPlay();rn op.outplay();rn rn
junit测试出错
在本地测试,用单元测试时,遇到的问题及解决方法 1.  sql语句出错,相看sql打印             如果是在log日志才能看到的时候,要在此项目的pom.xml中,在dependencies加入下列配置信息,并同时在相对应的jar包 org.apache.logging.log4j log4j-core 2.0.2 2.sqlMap出现错误:      
html页面出现404错误
如果表单中有文件类型的标签(intput type=file),需要在form表单中添加代码enctype="multipart/form-data"(该代码代表文件传输协议),否则页面会报404错误。
例题4-6 师兄帮帮忙 UVa12412
例题4-6 师兄帮帮忙 UVa12412 感悟。 1、阅读书中题目,从网站下载英文原题,重点在看输出数据与格式。 2、开始编码,先搭函数框架,具体功能实现,待主体框架打好后,再进行。 3、程序测试比较繁琐,有较多的输出输出,有些接近现实的应用程序了。 4、add功能还算顺利,数据采用结构体数组的方式存储。 5、query功能,发现要添加要在结构体中继续添加一些数据,还需在add功能
修改操作 出错了 !~ 哪里错了
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'contryTable_remark='jkkh' where contry_Id=1' at line 1rnrn请问这句话到底是什么意思啊 rnrn我是用 Hibernate + struts 修改但是在Hibernate里不能执行自己写的SQL我就用了 JDBCrn之后就出现了上边这个错误rnString s = "Update contrytable set contry_pronoun=?,contry_name=?,contry_en=?,contry_alphabetic=? contryTable_remark=? where contry_Id="+ ContryId;rn请问这条语句哪里出现错误了哦?rn高手帮帮忙!~
文件都出错了..真的
这个文件上传出错了.不要下了这个文件上传出错了.不要下了
请问是哪里错了
vote_test.htm:rnrn[code=HTML]rnrn 讨个老婆需要多少钱rn rn rn rn rn rnrnrn rn rn 你认为结婚成本比去年增加了多少?rn rn rn rn投票总人数:1344 rnrn没增加,结婚一点压力也没有rnrn         rn2票 (2%) rnrn增加了,已经超出自己的承担rnrnrn         rn2票 (2%) rnrn不清楚rnrnrn         rn2票 (2%) rnrn增加了,但自己还可以承担rnrn         rn2票 (2%) rnrn面对生活成本压力,不想结婚了rnrn         rn2票 (2%) rn rn rn[投票截止时间:2008-12-05 14:19:39]rn rn rnrnrn[/code]rnrnrnvote_test.jsp:rn[code=Java]rnrn< 5; j++)rn if(j == voteid)rn str=str+j+",30%,";rn elsern str=str+j+",10%,";rnrnout.println(str);rn%>[/code]
安装时哪里错了
刚刚安装的Redhat 7.1,它倒是能够启动但是启动菜单里没有别的只有linuxrn请问我如何进WIN2K?rn现在该怎么办?
求救不知道哪里错了
#includernrnrnrnrnrnstruct clientdatarnrn int num;rn char lastname;rn char firstname;rn float balance;rn;rnrnrnrnrnrnint enterchoice(void);rnvoid textfile(FILE *);rnvoid updaterecord(FILE *);rnvoid newrecord(FILE *);rnvoid deleterecord(FILE *);rnrnrnrnint main()rnrn FILE *ptr;rn int choice;rnrn if((ptr=fopen("credit.dat","r+"))==NULL)rn printf("file can't be opened\n");rn elsern rn while((choice=enterchoice())!=5)rnrn rn switch (choice)rn rn case 1:rn textfile(ptr);rn break;rn case 2:rn updaterecord(ptr);rn break;rn case 3:rn newrecord(ptr);rn break;rn case 4:rn deleterecord(ptr);rn break;rn rn rn rnrn fclose (ptr);rn return 0;rnrnrnrnrnint enterchoice(void)rnrn int menuchoice;rnrnrn printf("\n enter your choice\n");rn printf("1- 储存所有格式化帐号到txt文档中\n");rn printf("2- 更新帐号\n");rn printf("3- 添加帐号\n");rn printf("4- 删除一条记录\n"); rn printf( "5- 结束\n");rn scanf ("%d",&menuchoice);rn return menuchoice;rnrnrnrnvoid textfile(FILE * readptr)rnrn FILE *writeptr;rn struct clientdata client;rn if((writeptr=fopen("accounts.txt","w"))==NULL)rn printf("file can't be opened\n");rn elsern rn rewind(readptr);rn fprintf(writeptr,"%-6s%-16s%-11s\n","acct","last name","first name","balance");rnrn while(!feof(readptr))rn rn fread(&client,sizeof(struct clientdata),1,readptr);rn if(client.num!=0)rn fprintf(writeptr,"%-6d%-16s%-11s%-10.2f%\n",client.num,client.firstname,client.lastname,client.balance);rn rn rnfclose(writeptr);rnrnrnrnrnrnrnvoid updtarecord(FILE *ptr)rnrn int account;rn float tran;rn struct clientdata client;rnrnrn printf("enter account to updata (1-100):");rn scanf("%d",&account);rn fseek(ptr,(account-1)*sizeof(struct clientdata),SEEK_SET);rn fread (&client,sizeof(struct clientdata),1,ptr);rnrn if(client.num==0)rn printf("account # %d has no information\n",account);rn elsern rn printf("%-6d%-16s%-11s%-10.2f%\n\n",client.num,client.firstname,client.lastname,client.balance);rn printf("enter charge (+) or payment(-):");rn scanf("%f",&tran);rn client.balance+=tran;rn printf("%-6d%-16s%-11s%-10.2f%\n\n",client.num,client.firstname,client.lastname,client.balance);rn fseek(ptr,(account-1)*sizeof(struct clientdata),SEEK_SET);rn fwrite(&client,sizeof(struct clientdata),1,ptr);rn rnrnrnrnrnvoid deleterecord(FILE *ptr)rnrn struct clientdata client;rn struct clientdata blankclient=0,' ',' ',0;rnrn int account;rnrnrn printf("enter account number to delete (1-100):");rn scanf("%d",&account);rn fseek(ptr,(account-1)*sizeof(struct clientdata),SEEK_SET);rn fread (&client,sizeof(struct clientdata),1,ptr);rn rnrn if(client.num==0)rn printf("不存在\n");rn elsern rn fseek(ptr,(account-1)*sizeof(struct clientdata),SEEK_SET);rn fwrite(&blankclient,sizeof(struct clientdata),1,ptr);rn rnrnrnrnrnrnrnvoid newrecord(FILE *ptr)rnrn struct clientdata client;rn int account;rn printf("enter new account number (1-100)\n");rn scanf ("%d",&account);rn fseek(ptr,(account-1)*sizeof(struct clientdata),SEEK_SET);rn fread(&client,sizeof(struct clientdata),1,ptr);rnrnrn if(client.num!=0)rn printf("已经包含信息\n");rn elsern rn printf("enter lastname,fristname,balance\n");rn scanf("%s%s%f",client.lastname,client.firstname,&client.balance);rn client.num=account;rn fseek(ptr,(client.num-1)*sizeof(struct clientdata),SEEK_SET);rn fwrite(&client,sizeof(struct clientdata),1,ptr);rn rnrnrn这个程序编译通过 但是组建出错rn结果。。。。。。rnLinking...rna.obj : error LNK2001: unresolved external symbol _updaterecordrnDebug/a.exe : fatal error LNK1120: 1 unresolved externalsrn执行 link.exe 时出错.rnrna.exe - 1 error(s), 0 warning(s)rn
这段代码哪里错了
这段代码哪里错了?form1 为表单ID,checkbox 为checkbox 的名字rnrnif form1.checkbox.checked=false and form1.checkbox2 =false and form1.checkbox3 =false and form1.checkbox4 =false thenrnmsgbox("please enter the service")rnend if
帮我看一下哪里错了??????????
[code=VBScript]rnsql="select a.con_pro_class,case(case(b.wc_num*100.0/(case when c.pc_num=0 or c.pc_num is null then 1 else c.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash1,"rn sql=sql & "case(case(d.wc_num*100.0/(case when e.pc_num=0 or e.pc_num is null then 1 else e.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash2,"rn sql=sql & "case(case(f.wc_num*100.0/(case when g.pc_num=0 or g.pc_num is null then 1 else g.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash3,"rn sql=sql & "case(case(h.wc_num*100.0/(case when i.pc_num=0 or i.pc_num is null then 1 else i.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash4,"rn sql=sql & "case(case(j.wc_num*100.0/(case when k.pc_num=0 or k.pc_num is null then 1 else k.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash5,"rn sql=sql & "case(case(l.wc_num*100.0/(case when m.pc_num=0 or m.pc_num is null then 1 else m.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash6,"rn sql=sql & "case(case(n.wc_num*100.0/(case when o.pc_num=0 or o.pc_num is null then 1 else o.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash7,"rn sql=sql & "case(case(p.wc_num*100.0/(case when q.pc_num=0 or q.pc_num is null then 1 else q.pc_num end) as numeric(9,2)) as varchar)+'%' as e_cash8,"rn sql=sql & " from (select distinct con_pro_class from sale_tbl_contact) as a" rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-1-1' and '"&date_2y&"-1-31') group by con_tbl_class) as b on a.con_tbl_class=b.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-1-1' and '"&date_2y&"-1-31') group by con_tbl_class) as c on a.con_tbl_class=c.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-2-1' and '"&date_2y&"-2-29') group by con_tbl_class) as d on a.con_tbl_class=d.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-2-1' and '"&date_2y&"-2-29') group by con_tbl_class) as e on a.con_tbl_class=e.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-3-1' and '"&date_2y&"-3-31') group by con_tbl_class) as f on a.con_tbl_class=f.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-3-1' and '"&date_2y&"-3-31') group by con_tbl_class) as g on a.con_tbl_class=g.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-4-1' and '"&date_2y&"-4-30') group by con_tbl_class) as h on a.con_tbl_class=h.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-4-1' and '"&date_2y&"-4-30') group by con_tbl_class) as i on a.con_tbl_class=i.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-5-1' and '"&date_2y&"-5-31') group by con_tbl_class) as j on a.con_tbl_class=j.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-5-1' and '"&date_2y&"-5-31') group by con_tbl_class) as k on a.con_tbl_class=k.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-6-1' and '"&date_2y&"-6-30') group by con_tbl_class) as l on a.con_tbl_class=l.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-6-1' and '"&date_2y&"-6-30') group by con_tbl_class) as m on a.con_tbl_class=m.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-7-1' and '"&date_2y&"-7-31') group by con_tbl_class) as n on a.con_tbl_class=n.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-7-1' and '"&date_2y&"-7-31') group by con_tbl_class) as o on a.con_tbl_class=o.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-8-1' and '"&date_2y&"-8-31') group by con_tbl_class) as p on a.con_tbl_class=p.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_num) as pc_num from sale_tbl_contact where (pc_date bwtween '"&date_1&"' and '"&date_2&"') and (pc_date between '"&date_1y&"-8-1' and '"&date_2y&"-8-31') group by con_tbl_class) as q on a.con_tbl_class=q.con_pro_class"rn sql=sql & " LEFT OUTER JOIN (select con_pro_class,sum(e_fin_num) as wc_num from sale_tbl_contact where (wc_date bwtween '"&date_1&"' and '"&date_2&"') and (wc_date between '"&date_1y&"-9-1' and '"&date_2y&"-9-30') group by con_tbl_class) as r on a.con_tbl_class=r.con_pro_class"rn Set rs=Server.CreateObject("ADODB.RecordSet") rn rs.Open sql,Conn,3,1rn[/code]rn我写的这个语句运行时总提示:“as”附近有语法错误,我也找不出来哪里错了?有没有人能帮我看一下么??????
一个小问题,哪里错了
import java.applet.*;rnimport java.awt.*;rnimport java.awt.event.*;rnpublic class Exam_9 extends Applet implements ActionListenerrnrn Button left,center,right;rn public void init()rn rn left=new Button("左对齐");rn left.addActionListener(this);rn add(left);rn center=new Button("居中");rn center.addActionListener(this);rn add(center);rn right=new Button("右对齐");rn right.addActionListener(this);rn add(right);rn rn public void actionPerformed(ActionEvent e)rn rn int align=FlowLayout.LEFT;rn if(e.getSource==left)rn align=FlowLayout.LEFT;rn else if(e.getSource==right)rn align=FlowLayout.RIGHT;rn else if(e.getSource==center)rn align=FlowLayout.CENTER;rn setLayout(new FlowLayout(align));rn validate();rn rn
问下哪里错了呢?
#includern typedef structint b, p;A; rn void f(A c)rn rn int j; c.b+=1; c.p+=2;rn rn void main(void)rn rn int i; rn A a=1,2;rn f(a);rn printf("%d,%d\n",a.b,a.p);rnrn本意是用f(a)让a.b,a.p加1和加2为啥运行结果没加呢?
无法判断 哪里错了
rnrnrn胶内容rnrnrn玻璃内容rnrn rn
这样的语句哪里错了
sql="select * from 外出 where wcdate=date() and wcname='"&rs("name")&"'"rnrn
这段程序哪里错了
#include rn#include rnrnrnint main()rnrn int word_num=0;rn char ch;rn printf("请输入英文句子:");rn while (ch!='\r')rn rn scanf("%c",&ch);rn if (ch==' ') rn word_num++;rn rn printf("\n您输入的句子的字数为:%d\n",word_num);rn rn system("pause");rn return 0;rn
帮帮忙,看看哪里错了~!
import java.io.*; //从键盘输入一个整数,求100除以它的商,并显示。rnpublic class Test1 rn public static void main(String[] args)throws Exception rn tryrn byte buf[] = new byte[50];rn System.out.print("input:"); //输入小于100整数rn int count = System.in.read(buf);rn String strBuf = new String(buf,0,count);rn System.out.println(strBuf);rn int n=Integer.parseInt(strBuf);rn System.out.println("n:"+n);rn int m = 100/n;rn System.out.println(m);/**/rn rn catch(Exception e)System.out.print("Error:"+e.getMessage()); rn rn
这个php代码哪里错了?
[code=php](' ');[/code]rn我这个php 输出以后,那个"怎么样没有显示rnrnrn$s['title'] 显示了rnrn哪里错了吗?
程序不知道哪里错了
从网上找了段代码 test_05_04.txt的内容为1|2|3|4rn a|b|c|drnvoid CWCDMA_05_04Dlg::OnButton1() rnrn // TODO: Add your control notification handler code herern CStdioFile file; rnfile.Open( " C://Xworkspace//test_05_04.txt",CFile::modeReadWrite); rnCString sLine; rnBOOL bRead = file.ReadString(sLine); rnwhile(bRead == TRUE) rn rn //UpdateData(TRUE);rn CString sInfo;rn int nPos= sInfo.Find('|'); rn sInfo= sLine.Left(nPos); rn int nIdx = m_ListDisplay.InsertItem(m_ListDisplay.GetItemCount(),sInfo); rn sLine = sLine.Mid(nPos+1); rn nPos = sLine.Find('|'); rn sInfo = sLine.Left(nPos); rn m_ListDisplay.SetItemText(nIdx,1,sInfo); rn sLine = sLine.Mid(nPos+1); rn nPos = sLine.Find('|'); rn sInfo = sLine.Left(nPos); rn sLine = sLine.Mid(nPos+1); rn m_ListDisplay.SetItemText(nIdx,2,sInfo); rn m_ListDisplay.SetItemText(nIdx,3,sLine); rn bRead = file.ReadString(sLine); rn rnfile.Close();rnrn调试没问题 但是一按button1 就崩溃了 不能显示txt中的内容 rnrn请问是哪里错了??
以下排序程序哪里错了?
以下程序目的是取出str 里面的单词,再按字典顺序输出,怎么程序输出:rnirnamrnjavarnlearningrnprogramming呢?rnimport java.util.StringTokenizer;rnpublic class stringdemo1rnrn public static void main(String[]args)rn rn String str="I am learning java programming";rn StringTokenizer st=new StringTokenizer(str," ");rn String[]arr=new String[st.countTokens()];rn System.out.println(st.countTokens());rn for(int i=0;i
以下代码哪里错了
/*rn * Tests function scalern */rnrn #include rn rn /* Function prototypes */rn double scale(double x, int n);rn rn int rn main(void)rn rn double num_1;rn int num_2rn rn /* Get values for num_1 and num_2*/rn printf("Enter a real number> ");rn scanf("%1f", &num_1);rn printf("Enter an integer> ");rn scanf("%d", &num_2);rn rn /* Call scale and display result. */rn printf("Result of call to function scale is %f\n",rn scale(num_1, num_2));rn rn return (0);rn rn rn doublern scale(double x, int n)rn rn double scale_factor; /* local variable - 10 to power n*/rn scale_factor = pow(10, n);rn return (x * scale_factor);rn
sql语句哪里错了
错误类型:rnMicrosoft JET Database Engine (0x80040E14)rn/ftp/www/reg.asp, 第 26 行rn24行:sqlstr="insert into userinfo (username,password,diskquote,poweruser) values ('" & username &"','"& password &"','"& diskquote & "','" & poweruser & "')"rn25行:if userexits=false thenrn26行: conn.execute sqlstrrn
排序函数哪里错了
[code=c]rn#include "stdio.h"rn#define N 10rnint sc(int zz[],int c);rnint zj(int sc[],int c);rnint px(int px[]);rnint sc(int zz[],int c)rnrn int i,k;rn for(i=0;i=i;k--)rn rn if(px[k]
这代码哪里错了
[b]想在启动界面显示checkbox的上一次勾选[/b]rnrnrn[code=vb]Private Sub Check1_Click()rnIf Ceck1.Value = 0 Thenrn Dim success As Longrn success = WritePrivateProfileString("AA", "BB", "0", App.Path & "\Config.ini")rnElsern Dim successa As Longrn successa = WritePrivateProfileString("AA "BB "1", App.Path & "\Config.ini")rnCheck1.Value = 1rnEnd IfrnEnd SubrnrnrnrnPrivate Sub Form_Load()rn Dim ret As Longrn Dim buff As Stringrn buff = String(255, 0)rn ret = GetPrivateProfileString("AA "BB "BB buff, 256, App.Path & "\Config.ini")rn if buff = 1 ThenrnCheck1.Value = TruernEnd IfrnEnd sub[/code]
并查集不知道哪里错了
package com.company; import java.util.*; public class Main{ //并查集 static int N, M;//N个数字,M个操作 static int[]bcj=new int[10001]; static Scanner sc=new Scanner(System.in); static int F...
这个程序哪里错了
#include rnusing namespace std;rnrnvoid main()rnrn char file1[128];rn char file2[128];rnrn cout<<>a;rnrnrnrn运行结果:rn请输入字符串:rnpprnpprn你输入的字符串为:0rn请问这是怎么回事,哪里错了?rnrn
请教这是哪里错了
出现Cannot compile the file'E\lianxi\time\MainFrm.h':no compile tool is rnassociated with the file extensionrn请教这是哪里错了
请问哪里错了呢?
显示结果是这样,Warning: fread(): supplied argument is not a valid stream resource in C:\wamp\www\pic\put_pic.php on line 8rn下面是我的代码rn
SpringCloud微服务入门
springCloud是基于SpringBoot的一整套实现**微服务**的框架。因为它不是一个组件,而是许多组件的集合。他提供了微服务开发所需的**配置管理、服务发现、负载均衡、熔断器、断路器、智能路由、微代理、控制总线、全局锁、决策竞选、分布式会话**和**集群状态管理**等组件
我们是很有底线的