我这哪里错了 [问题点数:20分,结帖人lnklo]

Bbs1
本版专家分:11
结帖率 100%
Bbs8
本版专家分:42492
Blank
红花 2010年7月 C/C++大版内专家分月排行榜第一
2010年6月 C/C++大版内专家分月排行榜第一
2010年4月 C/C++大版内专家分月排行榜第一
Blank
蓝花 2010年5月 C/C++大版内专家分月排行榜第三
2010年3月 C/C++大版内专家分月排行榜第三
2010年1月 C/C++大版内专家分月排行榜第三
哪里错了??????????????????????????/
beginrnif name.Text='' thenrnbeginrn name.SetFocus;rn Application.MessageBox('没有输入用户名','提示',mb_ok);rnend;rnif password.Text='' thenrnbeginrn Application.MessageBox('没有输入密码','提示',mb_ok);rn password.SetFocus;rnend;rnif (strcomp(password.Text,'')<>0 and strcomp(name.Text,'')<>0)thenrnbeginrn.rn.rn.rn.rnend;rn请问最后那个if怎么<em>错了</em>呢?应该怎么改呢?
这句话哪里错了
StrSql="Insert Into studentinfo(LoginID,name,Password) Values('" & varLoginID & "', & " GetDate(), " & " GetDate()," & )" rnrn老提示语句未结束
这句话哪里错了
[img=https://img-bbs.csdn.net/upload/201403/20/1395326525_915702.jpg][/img]
这语句哪里错了
[code=SQL]ALTER proc [dbo].[Search] rn@tabel varchar(10), /*表名*/rn@a varchar(10),/*列名*/rn@b VarChar(50)/*查询参数*/rnas rnbegin rndeclare @sql as varchar(100) rnrnset @sql='select * from '+@tabel+' where '+@b+' =aa' --这里提示列名aa无效rnrnexec(@sql) rnend[/code]
这句话哪里错了
rnrnrn估计是sql = "select * from customers where Employee_ID = '"&Employee&"'" 出错,得出结果没有select到,出来的数据全是customers的,没有判断到,大家帮帮忙看看问题在<em>哪里</em>~◎◎
这语句哪里错了???
File flFile = new File("H:\firefox\javatest\helloworld.java");rnrn错误提示rnFileAttributeDemo.java:15:illegal escape characterrn File flFile = new File("H:\firefox\javatest\helloworld.java");rn ^rnFileAttributeDemo.java:15:illegal escape characterrn File flFile = new File("H:\firefox\javatest\helloworld.java");rn ^rn
哪里错了?
-
我这显示页码的代码哪里错了
rn结果当第一页时,还是显示1,2,3都有链接,怎样使第N页,页码N就没有链接呢?
这问这里我哪里错了?
CString sPath;rn CString sexename;rnrn GetModuleFileName(AfxGetInstanceHandle(),sPath.GetBufferSetLength (MAX_PATH+1),MAX_PATH); rn sPath.ReleaseBuffer();rn int nPos; rn nPos=sPath.ReverseFind ('\\'); rn sexename = sPath.Right(sPath.GetLength()-nPos-1);rn sPath=sPath.Left (nPos); rnrnrn //读取要运行的文件rn CString HOOKDOTEXE;rn GetPrivateProfileString("HOOKEXE","exename",rn "HOOKDOTEXE.EXE",HOOKDOTEXE.GetBuffer(MAX_PATH),MAX_PATH,rn sPath + "\\config.ini");rnrnCString temp = sPath + "\\" + HOOKDOTEXE;rnrnMessageBox(NULL,temp,"x",MB_OK);rnrn//这里的temp的值<em>错了</em>,还是等于sPath,为什么?rnrnrnrnrnconfig.ini内容rn[HOOKEXE]rnexename=dd.exernrnrnCString + CString 有错的??
这题哪里错了,急
#include "stdafx.h"rn#include "malloc.h"rnstruct Nodern char data[20];rn struct Node *next;rn;rntypedef struct Node LNode;rntypedef LNode *Linklist;rnrn//int _tmain(int argc, _TCHAR* argv[])rn//rn// Linklist la;rn// la =(Linklist)malloc(sizeof(LNode));rn// la->data =73;rn// la->next =NULL;rn// scanf("%d",&la->data);rn// printf("%d",la->data);rn//rn//rnvoid Createlist_L(Linklist&L,int n)rn L=(Linklist)malloc(sizeof(LNode));rn L->next =NULL;rn Linklist p;rn for(int i = n;i>0;i=i-1)rn rn p=(Linklist)malloc(sizeof(LNode));rn scanf("%s ",&p->data);rn p->next=L->next;rn L->next=p;rn rnrnrnvoid Travellist_L(Linklist&L)rnrnrn Linklist p;rn p=L->next;rn printf("线性链表数据结点的值为:");rn while(p!=NULL)rn rn printf("%s",p->data);rn p=p->next;rn rn printf("\n");rnrnint _tmain(int argc, _TCHAR* argv[])rnrn int n;rn printf("请输入线性链表数据结点的个数n=");rn scanf("%d",&n);rnrn Linklist La;rn Createlist_L(La,n);rn Travellist_L(La);rn
告诉我这哪里错了,怎么改
rn这是我的作业,要编一个程序 rn要求创建一个无向图,对这个图进行先序遍历,并输出遍历序列.我的程序是这样的,运行后提示是第三行"说明语法错误"第八和第十行是"变量列表语法错误",我不知道怎么改,大家帮帮我啊 rn程序如下: rntypedef int status rn#define ok 1 rntypedef struct rnint vexnum; rnint arcnum; rnchar vexs[10]; rnint arcs[10][10]; rnmgraph; rnint visited[10]; rnvoid createudn(mgraph *g) rnint i,j,k; rnchar v1,v2; rnint w; rnprintf("please input vexnum and arcnum:") rnscanf("%d,,%d",&g->vexnum,&g->arcnum); rnprintf("please input vexs:"); rnscanf("%s",g->vexs); rn  for(i=0;ivexnum;i++) rn   for(j=0;jvexnum:j++) rnprintf("%d\n",g->arcnum); rnprintf("please input v1,v2,w:"); rn for(k=0:karcnum;k++) rn scanf("%c,%c,%d",&v1,%v2,&w); rn  i=locatevex(g,v1); rn  j=locatevex(g,v2); rn  g->arcs[i][j]=w; rn  g->arcs[j][i]=g->arcs[i][j]; rn  rn rninit locatevex(mgraph *g,char v) rnint i; rnfor(i=0;ivexnum:i++) rn  if(g->vexs==v) rnreturn i; rn rnvoid traver(mgraph *g) rnint i; rnfor(i=0;ivexnum;i++) rn  visited=0; rnfor(i=0;ivexnum;i++) rn  if(visited==0) rndfs(g,i); rnstatus dfs(mgraph &g,int v) rnint i,w; rnprintf("%c",g->vexs[v]); rnvisited[v]=1; rnfor(i=0;ivexnum;i++) rn  if(g->arcs[v]!=32767&&visited==0) rn   dfs(g,i); rnreturn ok; rn rnint nextvex(mgraph * g,int v) rnint w,i; rnfor(i=0;ivexnum;i++) rn  if(g->arcs[v]=32767) rnreturn 1; rn rnmain() rnmgraph g; rncreateudn(&g); rntraver(&g); rnrnrn
这代码哪里错了
[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]
看下这sql哪里错了
在tmp_hotel 中有一些重复的数据 , 根据 TELEPHONE 字段来判断是否重复。rnrn[code=sql]rnrnselect th1.ID , th2.IDrnfrom tmp_hotel th1 rnleft join tmp_hotel th2rnon th1.TELEPHONE = th1.TELEPHONE ;rn[/code]rnrn结果如下:rn[img=http://img.my.csdn.net/uploads/201301/18/1358473621_9607.JPG][/img]
这小段代码哪里错了
structrnrn long data[256];rntblockrnlong *screen;rnint Wscreen,Hscreen;rnrnvoid displayblock(int x,int y,tblock *b)rnrnint i,j;rnfor(i = 0;i < 16;i++)rnrn for(j = 0;j < 16;j++)rn rn screen[x-1+j+(y-1)*Wscreen+j*16] = b.data[j+i*16];rn rnrn
这程序不知哪里错了~~~
帮看看下边的DLL程序,我只想禁止打开指定的窗口,而不是全部的,但使用下边的程序后,全部的窗口打不开,要怎样改呢?rn#includernextern "C"__declspec(dllexport) void sethook(char *s);//s指要禁止打开的窗口名字rnextern "C"__declspec(dllexport) void stophook();rnrnHHOOK hook=NULL;rnchar title[255];rnrnLRESULT CALLBACK CBTproc(int nCode,WPARAM wparam,LPARAM lparam)rnrn if(nCode),0);rn rnrnrnvoid stophook()rnrn if(hook!=NULL)rn UnhookWindowsHookEx(hook);rn hook=NULL;rnrn
帮忙看下,这哪里错了,........
visual foxpro的..rnrnrnrn题目要求:输入下面程序并将其中的两处错误改正。不允许增加、删行,也不得更改程序结构。然后以F1G.PRG为文件名存入考生文件夹中。rn 题目:快速查找姓名为“张玲”的学生并显示。rn SET TALK OFFrn USE D:\考生文件夹\D1rn STORE “张玲” TO XMMrn INDEX ON XM TO XMSYrn SEEK &XMM rn IF FOUND()rn DISPrn ELSErn ?”无此学生!”rn ENDDOrn USErn SET TALK ONrn RETUrn
帮我看一下,这哪里错了!
myever.asprnfunction ifdel(val)rnrn alert(val);//这边可以弹出我要的值出来rn if (confirm('你确实要删除这条记录吗?'))rn rn form1.DelId.value=val;rn return true;rn rn elsern return false;rnrnrn rnrn rnrnrnrn现在我在myeverdel.asp里面用response.write(request.form("DelId"))rn怎么值为空?rn
PHP这IF语句,哪里错了
alert('参数错误!!');window.history.back(-1);";rn exit;rnrn?>rn真奇怪!!
这语句哪里错了?很急!!!!!!
for i=0 to lmzd_count-1rn mc=lmzd_mc_s(i)rn mc1=lmzd_bm_s(i)rn 'name1="d" & cstr(i)rn name1=biaodanyu_array(i)rn cd1=lmzd_cd_s(i)rn if cd1>50 then cd1=50rn '依据字段类型rn select case lmzd_lx_s(i)rn case "int"rn'文本框不可修改rnif lm_id<>"15" and lm_id<>"16" and lm_id<>"17" thenrn'if name1<>"txt_hybmid" and name1<>"txt_hybm" and name1<>"txt_cpdlbmid" and name1<>"txt_xlbm" thenrn Response.Write "" & mc1 & ":*要求输入整数" & vbEnterrnelseif lm_id="15" thenrn Response.Write "" & mc1 & ":*要求输入整数15" & vbEnterrnelseif lm_id="16" thenrn Response.Write "" & mc1 & ":*要求输入整数16" & vbEnterrnelseif lm_id="17" thenrn Response.Write "" & mc1 & ":*要求输入整数17" & vbEnterrnend ifrnrnrnrn为什么会出错呢???????????rnif不能这么用么??
我这哪错了
#include "stdafx.h"rn#include "stdio.h"rnstruct aarnint x;rnstruct aa *next;rnrnrnint main()rnrn int x;rnstruct aa y,y1,*p;rny.x =90;y1.x =80;rnp=&y;rn(*p).x=0;rnprintf("%d\n",y=x);rnreturn y;rn
我这那里错了...
Private Sub mnuopen_Click()rnDim filedata As String, mychar As StringrnCommonDialog1.Filter = "Text Files (*.TXT)|*.txt|All Files (*.*)|*.*"rnCommonDialog1.Flags = &H4rnCommonDialog1.ShowOpenrnIf CommonDialog1.FileName = "" Then Exit SubrnOpen CommonDialog1.FileName For Input As #1rn Do While Not EOF(1)rn Line Input #1, mycharrn filedata = filedata & mychar & Chr$(13) & Chr$(10)rn Text1.Text = fildatarn LooprnEnd Subrn目的是在文本筐里显示打开文件的内容!!!!!rn在立即窗口是能显示.但在文本筐中不能显示~~~~
我的代码哪里错了
If Check1.Value = 1 And Check2.Value = 0 And Check3.Value = 0 And Check4.Value = 0 ThenrnAdodc1.RecordSource = "select * from 项目信息 where 申报日期 between '" + Chr(35) + Str(DTPicker1.Value) + Chr(35) + "' and '" + Chr(35) + Str(DTPicker2.Value) + Chr(35) + "'"rnAdodc1.RefreshrnEnd Ifrnrn这个代码老是出现说对象refresh方法的IACODC失败
哪里错了
题目:rn编写一个整钱兑零程序,该程序能够将用double类型表达的钱数兑换成相应的硬币,要求精确到分。(硬币的面值有1元、5角、1角、5分、2分、1分,如果输入:12.53,结果应该为:12(1元),1(5角),1(2分),1(1分))。rnrnrn我写的代码如下,大家可以运行下,看看,有BUG,但我没找出错在哪rn[code]import javax.swing.*;rnpublic class Ex_1rn rnpublic static void main(String args[])rnrnString amountString=JOptionPane.showInputDialog(null,"请输入钱数","整钱兑零",JOptionPane.QUESTION_MESSAGE); rndouble amount=Double.parseDouble(amountString);rnint y=(int)amount; //把amount转换为整型rndouble y2=(double)y; //把y转换为double型rnint j5=(int) ((amount-y2)/0.5);rnint j1=(int)((amount-y2-j5*0.5)/0.1);rnint f5=(int)((amount-y2-j5*0.5-j1*0.1)/0.05);rnint f2=(int)((amount-y2-f5*0.05-j5*0.5-j1*0.1)/0.02);rnint f1=(int)((amount-y2-f5*0.05-j5*0.5-j1*0.1-f2*0.02));rnSystem.out.println(y+"(1元)"+j5+"(5角)"+j1+"(1角)"+f5+"(5分)"+f2+"1(2分)"+f1+"(1分)");rnrnrn[/code]
我的概念哪里错了
我想问的是(1)我标红的地方全部都用到了下面标蓝的地方的隐式转换吗?rn (2)我的程序为什么显示的是faem1:delete2.Farm`1[delete2.Cow] farm2:delete2.Farm`1[delete2.Animal],以我的概念应该显示faem1:delete2.Farm`1[delete2.Animal] farm2:delete2.Farm`1[delete2.Animal],因为以我的概念传给重载运算符的参数应该是这样的形式:Farm farm1=dairyFarm,Farm farm2=farm,由于T是约束类型Animal代入到T,应该是我划红的地方第一个参数应该是这样的形式Farm farm1=dairyFarm,由于dairyFarm是Farm,因此调用隐式转换public static implicit operator Farm(Farm farm) 我的概念<em>哪里</em><em>错了</em>?请高人指点 谢谢了 高分献上rnrn代码如下:rnusing System;rnusing System.Collections.Generic;rnusing System.Linq;rnusing System.Text;rnusing System.Threading.Tasks;rnusing System.Collections;rnnamespace delete2rnrn public class Farm : IEnumerablern where T : Animalrn rn private List animals = new List();rn public List Animalsrn rn getrn rn return animals;rn rn rnrn public IEnumerator GetEnumerator()rn rn return animals.GetEnumerator();rn rnrn IEnumerator IEnumerable.GetEnumerator()rn rn return animals.GetEnumerator();rn rnrn public void MakeNoises()rn rn foreach (T animal in animals)rn rn animal.MakeANoise();rn rn rn public void FeedTheAnimals()rn rn foreach (T animal in animals)rn rn animal.Feed();rn rn rnrn public Farm GetCows()rn rn Farm cowFarm = new Farm();rn foreach (T animal in animals)rn rn if (animal is Cow)rn rn cowFarm.Animals.Add(animal as Cow);rn rn rn return cowFarm;rn rn rnrn public static Farm operator +([color=#FF0000]Farm farm1, Farm farm2[/color])rn rn Console.WriteLine("faem1:0 farm2:1", farm1.GetType(), farm2.GetType());rn Farm result = new Farm();rn foreach (T animal in farm1)rn rn result.Animals.Add(animal);rn rn foreach (T animal in farm2)rn rn if (!result.Animals.Contains(animal))rn rn result.Animals.Add(animal);rn rn rn return result;rn rnrn [color=#0000FF]public static implicit operator Farm(Farm farm)rn rn Farm result = new Farm();rn foreach (T animal in farm)rn rn result.Animals.Add(animal);rn rn return result;rn [/color]rn rnrn public class SuperCow : Cowrn rn public void Fly()rn rn Console.WriteLine("0 is flying!", name);rn rn public SuperCow(string newName)rn : base(newName)rn rn public override void MakeANoise()rn rn Console.WriteLine("0 says 'here I come to save the day!'", name);rn rn rnrn public class Cow : Animalrn rn public void Milk()rn rn Console.WriteLine("0 has been milked.", name);rn rn public Cow(string newName)rn : base(newName)rn rn public override void MakeANoise()rn rn Console.WriteLine("0 says 'moo!'", name);rn rn rnrn public class Chicken : Animalrn rn public void LayEgg()rn rn Console.WriteLine("0 has laid an egg.", name);rn rn public Chicken(string newName)rn : base(newName)rn rn rn public override void MakeANoise()rn rn Console.WriteLine("0 says 'cluck!';", name);rn rn rnrn public abstract class Animalrn rn protected string name;rn public string Namern rn getrn rn return name;rn rn setrn rn name = value;rn rn rn public Animal()rn rn name = "The animal with no name";rn rn public Animal(string newName)rn rn name = newName;rn rn public void Feed()rn rn Console.WriteLine("0 has been fed.", name);rn rn public abstract void MakeANoise();rn rnrnrn class Programrn rn static void Main(string[] args)rn rn Farm farm = new Farm();rn farm.Animals.Add(new Cow("Jack"));rn farm.Animals.Add(new Chicken("Vera"));rn farm.Animals.Add(new Chicken("Sally"));rn farm.Animals.Add(new SuperCow("Kevin"));rn farm.MakeNoises();rnrn Farm dairyFarm = farm.GetCows();rn dairyFarm.FeedTheAnimals();rnrn foreach (Cow cow in dairyFarm)rn rn if (cow is SuperCow)rn rn (cow as SuperCow).Fly();rn rn rnrn Farm newFarm =dairyFarm+ farm ;rnrn rn Console.ReadKey();rn rn rn
哪里错了
string b = "102648455";rn string MessageBody = "请进行邮箱验证来完成您注册的最后一步,点击下面的链接激活您的帐号: 激活"; //邮件内容 (一般是一个网址链接,生成随机数加验证id参数,点击去网站验证。)rn Response.Write(MessageBody);rnrnrn输出后的按钮超链接 都是rnhttp://www.jj86.com/OK?id=rnrn后面的都没有了。。
我的javascript哪里错了
rnrnrn rn rnrnrn rnrnrn我的程序<em>哪里</em><em>错了</em>? rn我获得了钥匙 但是去门那里的时候总是提示我没有钥匙?
我不知道哪里错了。。
rnimport java.util.Scanner;rnrnpublic class NewClass rn Student student = new Student();rn int n;rn public void init(Student student) rn System.out.println("How many students do you want to input?");rn Scanner str = new Scanner(System.in);rn n = str.nextInt();rn student.scores = new int[n];rn student.number = new String[n];rn student.name = new String[n];rn System.out.println("Please input " + n + " students' number,name and scores");rn Scanner string = new Scanner(System.in);rn Scanner string1 = new Scanner(System.in);rn Scanner string2 = new Scanner(System.in);rn for (int i = 0; i < n; i++) rn student.number[i] = string.nextLine();rn student.name[i] = string1.nextLine();rn student.scores[i] = string2.nextInt();rn rn sort(student);rn rnrn public void sort(Student student) rnrn String numbertemp, nametemp;rn int scorestemp;rn for (int i = 0; i < n - 1; i++) rn for (int j = 1; j < n; j++) rn if (rn student.scores[i] < student.scores[j]) rn numbertemp = student.number[i];rn student.number[i] = student.number[j];rn student.number[j] = numbertemp;rn nametemp = student.name[i];rn student.name[i] = student.name[j];rn student.name[j] = nametemp;rn scorestemp = student.scores[i];rn student.scores[i] = student.scores[j];rn student.scores[j] = scorestemp;rn rn rn rn output(student);rn rnrn public void output(Student student) rn for (int i = 0; i < n; i++) rn System.out.println(student.name[i]);rn rn rnrn public static void main(String args[]) rn NewClass application = new NewClass();rnrn application.init(student);rn rnrnclass Studentrn rn String number[];rn String name[];rn int scores[];rn Student(String number[],String name[],int scores[])rn this.name = name;rn this.number = number;rn this.scores = scores;rn rnrn Student() rn throw new UnsupportedOperationException("Not yet implemented");rn rn
我这里哪里错了
不管我数据库里面有没有数据,response.write(check.eof)rn输出TRUE,怎么回事,check.eof,我感觉就有点象结束判断标志,但我看很多程序都是用的它,我也用了,是不是<em>错了</em>?该用什么判断我的SQL找到结果了,rn
我的strcpy哪里错了?
void mystrcpy (char* to, const char* from)rnrn to = new char[mystrlen(from)+1];rn for (; *from != 0; ++from, ++to)rn rn *to = *from;rn rn *to = 0;rnrn运行时说一段内存不能读,正确的该怎么写?
insert into 我哪里错了?
INSERT INTO worker(TeamName, WorkerID, WorkerName, WorkerType)rnVALUES ((SELECT teamID FROM list_banzu WHERE teamName = 'MK60_A'), '1111111', '111111',rn (SELECT id FROM list_type WHERE workType = '班组长'))rnrnselect出的值肯定都唯一的 , 帮忙看看我<em>哪里</em><em>错了</em>
请教!我哪里错了
#includerndouble sum(int k) /*计算该学生平均成绩,输出该学生课程最低成绩*/rn int i,j;rn int f=0, sum=0,a[3][5];rn printf("输入0-2的学号: \n");rn scanf("%d",&i);rn for (j=0;ja[i][l])rn a[i][l+1]=a[i][l];rn l--;rn rn a[i][l+1]=t;rnrnprintf("学号为%d 的同学各科成绩从高到低分别是: ",i);rnfor (j=0;j);rn rnrnrnrn我输入成绩时总是说错误``rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrn
哪里错了 数据库连接?
[code=C#] private void button1_Click(object sender, EventArgs e)rn rn conn = new SqlConnection("server=.;database=depot;uid=sa;pwd=hhh");rn conn.Open();rnrn int id = int.Parse(textBox1.Text);rn int postcode = int.Parse(textBox3.Text);rn int weight = int.Parse(textBox4.Text);rn //实例化对象 sqlcommandrn string str = "insert into depot values (" + id + "," + numericUpDown2.Value + ","rn + dateTimePicker1.Value + "," + dateTimePicker2.Value + ","rn + comboBox1.Text + "," + textBox12.Text + ","rn + textBox11.Text + "," + postcode + ","rn + weight + ")";rn SqlCommand cmd = new SqlCommand(str, conn);rn int i = Convert.ToInt32(cmd.ExecuteNonQuery());rn if (i != 0)rn rn MessageBox.Show("输入成功!");rn rnrn [/code]rnrnrn谢谢 大家!
哪里错了
[code=C/C++]rn下列指令能通过编译的是 ( 1 )rn 1、 div [32] rn 2、 mov ax,ds:[bp] rn 3、 int 121h rn 4、 jmp 32 rnrn 在执行int指令前各个寄存器的值如下 rn AX=1221 BX=0005 CX=0014 DX=0000 SP=0016 BP=0000 SI=0000 DI=0000 rn DS=B800 ES=13F4 SS=1404 CS=1404 IP=0012 NV UP EI PL NZ NA PO NC rn 则int指令执行后内存SS:[12H]处的字单元的内容为 ( 3 )rn 1、 B800H rn 2、 3202H rn 3、 1404H rn 4、 0012H rnrn关于在执行中断程序前将TF位设置为0下列说法l;正确的是 ( 2 )rn 1、 设置rep movsb指令的传送方向为正 rn 2、 关闭单步中断 rn 3、 屏蔽中断 rn 4、 没有任何作用 [/code]rnrn<em>哪里</em>出<em>错了</em>? 我认为全对啊 没地方出错啊 rnrn请高人指点。。。 在说一下理由rn
哪里错了呢?
main()rnrn int n;rn printf("请输入学生个数");rn scanf("%d",&a);rn int a(n);rn ........rn .......rn ........rnrn我<em>错了</em><em>哪里</em>?
哪里错了??????
****-**-** 22:26:22 **rn你好rnrn****-**-** 22:26:06 mern大富翁你经常去嘛rnrn****-**-** 22:27:00 **rn是的 rnrn****-**-** 22:26:41 mern昨天怎么不回答我的话了rnrn****-**-** 22:27:28 **rn什么rnrn****-**-** 22:27:22 mern你现在工资多少rnrn****-**-** 22:28:26 **rn5000,还有自己的公司rnrn****-**-** 22:28:10 mern自己的公司都有了才5000rn为什么rnrn****-**-** 22:29:58 **rn你<em>错了</em>,那5000是在国营研究所,自己开公司,就不知道数字了; )rnrn****-**-** 22:30:40 mern我现在在国家的研究所工作rn我们那里也可以,我能半年基本上没有任何事情做rn每个月2500,有宿舍,平常还老发钱rn真不知道要不要离开rnrn****-**-** 22:31:31 **rn你在<em>哪里</em>?也许我们是一个系统的;)rnrn****-**-** 22:31:07 mern**科研所rnrn****-**-** 22:31:48 **rn不错啊,在北京rnrn****-**-** 22:31:27 mern你计算机本科?rn我是在北京rnrn****-**-** 22:32:09 **rn在读研究生rnrn****-**-** 22:31:52 mernhttp://www.delphibbs.com/delphibbs/dispq.asp?lid=1287049rnrn看着贴子。。。原来大家拿那么少rnrn****-**-** 22:32:21 mern你是什么所得rnrn****-**-** 22:33:02 **rn造船的rnrn****-**-** 22:33:02 mern哦rn你说我走不走rn其实瞒不错的,而且我现在觉得有很多东西要先学rnrn****-**-** 22:34:00 **rn那要看你自己,我劝你要在IT做,最好去读MSErnrn****-**-** 22:34:12 mern我可对技术更感兴趣rn不过起步晚rnrn****-**-** 22:35:14 **rnMSE是必须永远站在技术前沿的人rnrn****-**-** 22:35:35 mernok!!!!3ksrn现在我还没有考虑过这些,因为摆在面前有很多东西学rn我看还是用这大好时间学习技术然后考mse,你说呢rnrn****-**-** 22:36:50 **rn你<em>错了</em>,MSE可以让你站在更高的层次看IT,所以学它很好,而且以后很容易进入高层rnrn****-**-** 22:36:21 mern现在做软件的好像远不如前两年rnrn****-**-** 22:36:38 mern那我现在就靠mse?rnrn****-**-** 22:37:22 **rn对rnrn****-**-** 22:37:22 mern你考了马rnrn****-**-** 22:39:11 **rn准备rnrn****-**-** 22:39:11 mernMSE这一年多才刚兴起来rn难道学习MSE就不用学习技术了吗?rn既然是要站在技术前沿,那我现在学习基本技术有什么不好rnrn****-**-** 22:40:18 **rn因为那样的人永远是工人,看的也不远!rnrn****-**-** 22:40:20 mern那jjhou是哪一种人rnrn****-**-** 22:41:41 **rn自由业者,但是他的成功标准和我不一样,我要成为成功的IT职业经理人rnrn****-**-** 22:41:47 mern他是职业技术作家rn他不是经理也站在技术前沿了呀rnrn****-**-** 22:43:08 **rn但是他只能有一个,懂吗?他强别人就要弱;(rnrn****-**-** 22:44:47 mern我总觉得计算机软件方面“美国的今天,就是中国的明天”rn我觉得直接MSE心里没有低,应该一步一步来,中国技术人员起点本来就底。,所以学习历程更要长一点rnrn****-**-** 22:45:49 **rn你<em>错了</em>,MSE是长期投资,而且比较起技术来更容易rnrn****-**-** 22:46:01 mern你说的更容易,是赚钱更容易,还是成为技术专家更容易rnrn****-**-** 22:46:19 mern在职的怎么读?rnrn****-**-** 22:47:38 **rn呵呵,MSE就是在职的;)rnrn****-**-** 22:47:16 mern哦rn我还想观望两年。。。。rn在这两年里我还想涉及unix开发rnrn****-**-** 22:47:43 mern其实我想把老外上学走过的路走一边rnrn****-**-** 22:48:29 **rn什么rnrnrn****-**-** 22:48:50 mern他们的课程设计的比较好rn我想照他们那样学习几年rnrn****-**-** 22:49:19 mern(****-**-** 22:46:01) mern你说的更容易,是赚钱更容易,还是成为技术专家更容易rnrn****-**-** 22:49:55 **rn我看我们可能理念不同,算了,你好自为之把rnrn****-**-** 22:51:23 mern很感谢你跟我交流rn我是想学好技术,我打算长期做程序员,可能35以后也是rn因为你看国外很多人都这样rnrn****-**-** 22:52:01 mern为什么外国人能有大师,我们不能有rn出来很多mse,也不管用呀rnrn****-**-** 22:53:19 mern可能我发不了财,但我想这样我可能会开心rnrn****-**-** 22:53:57 mern??rnrn****-**-** 22:54:59 mern潘爱民也不是MSE那种人吧rnrn你怎么拒绝跟我说话了rnrn
我到底哪里错了
Under DBCS, a given string can contain[color=#FF0000] all single-byte ANSI characters, all double-byte characters, or a combination of the two[/color]. These possibilities require special care in parsing strings, including CString objects.rnrnhttp://technet.microsoft.com/zh-cn/subscriptions/ey142t48(v=vs.71).aspxrnrn如果这段英文是真实的,那么下面的英文就有问题吗?rnrnrnrnSourceType/DestinationTypernDescriptionrnArnANSI character string.rnWrnUnicode character string.rnTrnGeneric character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise).rnOLErnOLE character string (equivalent to W).rnrnhttp://msdn.microsoft.com/en-us/library/87zae4a3.aspxrnrnrnW2A 中的a是ansi ? rnrn擦,如果真是ansi, 那么我们代码必然有问题。为什么这么说呢?rnrn一个宽字节版本的字符串,包含了中英文, 一旦用w2a转换, rn效果为:宽字节字符像ansicc(ansi )转换,我靠,中文转换为anicc ?这是啥子效果啊。rnrn我希望这个[color=#FF0000]a是指: mbcs , 而不是单纯的( ascii) !!!![/color]rnrn
我想知道哪里错了
题目要求:rn设n个人围坐在一个圆桌周围,现在从第s个人开始报数,数到第m个人,让他出局;然后从出局的下一个人重新开始报数,数到第m个人,再让他出局,……,如此反复直到所有的人全部出局为止。采用数组表示作为求解过程中使用的数据结构。然后使用n = 9, s = 1, m = 5,以及n = 9, s = 1, m = 0,或者n = 9, s = 1, m = 10作为输入数据,检查你的程序的正确性和健壮性。 rn这是我的代码:rn #includern using namespace std;rn int main()rn rn int total=9,alter=4,start=2;rn int s[9];rn int count[9];rn int i, j, k =0;rn for (i = 0; i = 2; i--)rn rn start= (start + alter - 1) % i;rn if (start == 0) rn start = i; rn count[k] = s[start]; rn k++; rn for (j = start + 1; j <
我到底哪里错了?
Under DBCS, a given string can contain all [color=#FF0000]single-byte ANSI characters, all double-byte characters, or a combination of the two[/color]. These possibilities require special care in parsing strings, including CString objects.rnrnhttp://technet.microsoft.com/zh-cn/subscriptions/ey142t48(v=vs.71).aspxrnrn如果这段英文是真实的,那么下面的英文就有问题吗?rnrnrnrnSourceType/DestinationTypernDescriptionrn[color=#FF0000]ArnANSI character string.[/color]rnWrnUnicode character string.rnTrnGeneric character string (equivalent to W when _UNICODE is defined, equivalent to A otherwise).rnOLErnOLE character string (equivalent to W).rnrnhttp://msdn.microsoft.com/en-us/library/87zae4a3.aspxrnrnrnW2A 中的a是ansi ? rnrn擦,如果真是ansi, 那么我们代码必然有问题。为什么这么说呢?rnrn一个宽字节版本的字符串,包含了中英文, 一旦用w2a转换, rn效果为:宽字节字符像ansicc(ansi )转换,我靠,中文转换为anicc ?这是啥子效果啊。rnrn我希望这个a是指: mbcs , 而不是单纯的( ascii) !!!!rnrnrnrn
求救 我哪里错了???
using System;rnusing System.Collections.Generic;rnusing System.Text;rnusing System.Web;rnusing System.Data.SqlClient;rnusing System.Drawing;rnusing System.Drawing.Design;rnusing System.Web.UI;rnusing System.Data;rnusing System.Data.OleDb;rnusing System.Runtime.Remoting.Contexts;rnrnrnnamespace BlogInfornrn public class BlogInforn rn static string sql;rn // public System.Data.SqlClient.SqlDataAdapter rs;rn //static DataSet ds;rn // static System.Data.SqlClient.SqlConnection connectionString = new SqlConnection(ConfigurationSettings.AppSettings["connectionString"]);rnrn #region LeftDiskrn public static string UserLogin(string Userid, string FileSize)rn rn System.Data.DataSet ds;rn SqlConnection connectionString = new SqlConnection(ConfigurationSettings.AppSettings["connectionString"]);rn SqlDataAdapter ds = new SqlDataAdapter();rn SqlCommand cmd = new SqlCommand("BlogLeftSize", connectionString);rn cmd.Connection = connectionString;rn cmd.CommandType = CommandType.StoredProcedure;rnrn SqlParameter prm1 = new SqlParameter("@BlogID", SqlDbType.NVarChar, 100);rnrn SqlParameter prm2 = new SqlParameter("@FileSize", SqlDbType.NVarChar, 50);rn prm1.Value = Userid;rn prm2.Value = FileSize;rnrn cmd.Parameters.Add(prm1);rn cmd.Parameters.Add(prm2);rn connectionString.Open();rnrn tryrn rn cmd.ExecuteNonQuery();rn rn catchrn rn HttpContext.Current.Response.Output.WriteLine("
我的代码哪里错了
Private Sub cmdok_Click()rnIf Trim(txtUserName.Text) = "" ThenrnrnExit SubrnEnd IfrnrnIf Trim(txtPassword.Text) = "" Thenrn'MsgBox "ÃÜÂë²»ÄÜΪ¿Õ£¡", , "µÇ½"rnExit SubrnEnd IfrnrnrnrnPwdcount = Pwdcount + 1rnIf Pwdcount > 3 ThenrnMsgBox "ÄúµÄÃÜÂë´íÎó£¡", , "Í˳ö"rncmdCancel_ClickrnExit SubrnEnd IfrnrnrnSysop_id = Trim(txtUserName.Text)rnSysOP_Password = Trim(txtPassword.Text)rnrnrs.MoveFirstrnrn这是我做的简单的登陆,可是总是出问题!
哪里错了
#includernint main(void)rnrn int sum=0;rn int cj;rn int js=0;rn printf("scanf cj");rn scanf("%d",&cj);rn while(cj!=0)rn rn sum+=cj;rn ++js;rn printf("scanf cj");rn scanf("%d",&cj);rn rn if(js!=0)rn rn sum/=js;rn rn else printf("no");rn return 0;rnrnrnrn错误提示:rn1>------ 已启动生成: 项目: will, 配置: Debug Win32 ------rn1>生成启动时间为 2012/4/16 23:39:48。rn1>InitializeBuildStatus:rn1> 正在对“Debug\will.unsuccessfulbuild”执行 Touch 任务。rn1>ClCompile:rn1> hello.crn1>d:\users\start\documents\visual studio 2010\will\will\hello.c(8): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.rn1> d:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : 参见“scanf”的声明rn1>d:\users\start\documents\visual studio 2010\will\will\hello.c(14): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.rn1> d:\program files (x86)\microsoft visual studio 10.0\vc\include\stdio.h(304) : 参见“scanf”的声明rn1>ManifestResourceCompile:rn1> 所有输出均为最新。rn1>LINK : fatal error LNK1168: 无法打开 D:\Users\Start\Documents\Visual Studio 2010\will\Debug\will.exe 进行写入rn1>rn1>生成失败。rn1>rn1>已用时间 00:00:00.15rn========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========rn
哪里错了???!!!
看看这段程序rnimport java.io.*;rnimport java.lang.*;rnimport javax.servlet.*;rnimport javax.servlet.http.*;rnpublic class Morning extends HttpServletrnrn public void service(HttpServletRequest req,rn HttpServletResponse res)rn throw ServletException,IOExceptionrn rn res.setContentType("text/html; charset=Big5");rn PrintWriter pw=res.getWriter();rn pw.println("");rn pw.println("");rn pw.println(" Moring");rn pw.println("");rn pw.println("");rn pw.println(" GOOD MORNING!! ");rn pw.println("");rn pw.println("");rn rnrn同志们运行一下 为什么会报那样的错呢?
我这句哪里错了
[code=C#]rnnew SqlParameter("@Win",DWin.Text.Equals("") ? DWin.Text : Convert.ToBoolean(DWin.Text)), rn[/code]rn错误提示:无法确定条件表达式的类型 "String" 转换 "bool" 没有隐式转换rn出问题的语句: Convert.ToBoolean(DWin.Text)),
哪里错了?//
rnrnrnrnrn 显示用户留言页面rnrnrnrn rn rnrnrn rn rn rn rnrnrnrnrn
我想知道我哪里错了.
rn Movie Review Databasernrn rn $num_movies MoviesrnrnENDHTML;rnecho $table;rn?> rn rn Movie Titlern Year of Releasern Movie Directorrn Movie Lead Actorrn Movie TypernrnENDHTML;rnwhile ($row=mysql_fetch_assoc($result))rn rn extract($row);rn $director=get_director($movie_director);rn $leadactor=get_leadactor($movie_leadactor);rn $movietype=get_movietype($movie_type);rn rn $table.=<< $movie_namern $movie_yearrn $movie_directorrn $movie_leadactorrn $movie_typern rnENDHTML;rn rn$table.=<<
我这代码错了??怎么改?
rn rn rn rn rn rnrnrn rn rn rn rnrn rn rnrn rn rn rn rn rnrn rn rnrn rn rn rn rn rnrn
帮我看一下这程序哪里错了
这是题目:rnGalactic Importrnrn--------------------------------------------------------------------------------rnrnTime Limit: 1 Second Memory Limit: 32768 KB rnrn--------------------------------------------------------------------------------rnWith the introduction of the new ThrustoZoom gigadimensional drive, it has become possible for HyperCommodities, the import/export conglomerate from New Jersey, to begin trading with even the most remote galaxies in the universe. HyperCommodities wants to import goods from some of the galaxies in the Plural Z sector. Planets within these galaxies export valuable products and raw materials like vacuuseal, transparent aluminum, digraphite, and quantum steel. Preliminary reports have revealed the following facts: rnEach galaxy contains at least one and at most 26 planets. Each planet within a galaxy is identified by a unique letter from A to Z.rnrnEach planet specializes in the production and export of one good. Different planets within the same galaxy export different goods.rnrnSome pairs of planets are connected by hyperspace shipping lines. If planets A and B are connected, they can trade goods freely. If planet C is connected to B but not to A, then A and C can still trade goods with each other through B, but B keeps 5% of the shipment as a shipping fee. (Thus A only receives 95% of what C shipped, and C receives only 95% of what A shipped.) In general, any two planets can trade goods as long as they are connected by some set of shipping lines, but each intermediate planet along the shipping route keeps 5% of what it shipped (which is not necessarily equal to 5% of the original shipment).rnrnAt least one planet in each galaxy is willing to open a ThrustoZoom shipping line to Earth. A ThrustoZoom line is the same as any other shipping line within the galaxy, as far as business is concerned. For example, if planet K opens a ThrustoZoom line to Earth, then the Earth can trade goods freely with K, or it can trade goods with any planet connected to K, subject to the usual shipping fees. rnrnHyperCommodities has assigned a relative value (a positive real number less than 10) to each planet's chief export. The higher the number, the more valuable the product. More valuable products can be resold with a higher profit margin in domestic markets. The problem is to determine which planet has the most valuable export when shipping fees are taken into account. rnrnrnInputrnrnThe input consists of one or more galaxy descriptions. Each galaxy description begins with a line containing an integer N which specifies the number of planets in the galaxy. The next N lines contain descriptions of each planet, which consist of: rnrnrn1. The letter used to represent the planet.rn2. A space.rn3. The relative value of the planet's export, in the form d.dd.rn4. A space.rn5. A string containing letters and/or the character `*'; a letter indicates a shipping line to that planet, and a `*' indicates a willingness to open a ThrustoZoom shipping line to Earth. rnrnrnOutputrnrnFor each galaxy description, output a single line which reads ``Import from P'' where P is the letter of the planet with the most valuable export, once shipping fees have been taken into account. (If more than one planet have the same most valuable export value then output the plant which is alphabetically first). rnrnrnSample Inputrnrn1rnF 0.81 *rnrn5rnE 0.01 *ArnD 0.01 A*rnC 0.01 *ArnA 1.00 EDCBrnB 0.01 A*rnrn10rnS 2.23 Q*rnA 9.76 CrnK 5.88 MIrnE 7.54 GCrnM 5.01 OKrnG 7.43 IErnI 6.09 KGrnC 8.42 EArnO 4.55 QMrnQ 3.21 SOrnrnrnSample OutputrnrnImport from FrnImport from ArnImport from Arnrnrn这是我的程序:rnrn#includern#includern#includernrnusing namespace std;rnrnstruct data rn char name;rn double rate;rn string str;rn bool toEarth;rn;rnrndata d[26];rnchar best;rnint n;rndouble dmax;rnrnrnvoid process(data da,double rate,char name) rn if( da.toEarth ) rn if( rate==dmax && da.namedmax ) rn best=name;rn dmax=rate;rn rn rn return;rn rn rn for(int i=0;i>n ) rn for(int i=0;i>d[i].name>>d[i].rate>>d[i].str;rn rn if( d[i].str.find('*')!=-1 ) rn d[i].toEarth=true;rn d[i].str.erase(d[i].str.find('*'));rn rn rn rn dmax=0.0;rn for(int j=0;j
这代码哪里错了啊?请指点!
rnrn<em>哪里</em>有<em>错了</em>!
这小程序哪里错了呢?
#include rnrnvoid copy_string(char *from,char *to)rnrnfor(;*from!='\0';from++,to++)rnrn *to=*from;rnrn*to='\0';rnrnrnrnrnrnvoid main()rnrnchar *a="I am a teacher. ";rnchar *b="you are a student.";rnprintf("string a=%s\nstring b=%s\n",a,b);rncopy_string(a,b);rnprintf("string a=%s\nstring b=%s\n",a,b);rnrnrn以我的智商加上浅陋的功底是在找不出错误了...rnrn高人指点..谢rnrncompiled under VC6.0rn
这语句哪里错了,帮忙啊
我的源码:rnrn private void btnadd_click(object sender, System.EventArgs e)rn rn string clubid=Request.QueryString["clubid"].ToString();rn uid=Session["uid"].ToString();rn rn strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("../")+"data/users.mdb"; rn strSQL="select top 1 id from activity where clubid='"+clubid+"'"; rn cn=new OleDbConnection(strConn);rn cmd=new OleDbCommand(strSQL,cn);rn cn.Open();rn dr=cmd.ExecuteReader();rn while(dr.Read())rn rn actid=dr["id"].ToString();rn rn cn.Close();rn rn rn rn rn strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+Server.MapPath("../")+"data/users.mdb"; rn strSQL="INSERT INTO addactivity (activity,user) VALUES('"+actid+"','"+uid+"')";rn Page.Response.Write(strSQL);rn cn=new OleDbConnection(strConn);rn cmd=new OleDbCommand(strSQL,cn);rn cn.Open();rn cmd.ExecuteNonQuery();rn cn.Close();rn rn rn rnrnrn rnrn相关变量已经定义。rnrn错误如下:rnrnrnINSERT INTO 语句的语法错误。 rn说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 rnrn异常详细信息: System.Data.OleDb.OleDbException: INSERT INTO 语句的语法错误。rnrn源错误: rnrnrn行 90: cmd=new OleDbCommand(strSQL,cn);rn行 91: cn.Open();rn行 92: cmd.ExecuteNonQuery();rn行 93: cn.Close();rn行 94: rn rnrn源文件: D:\heilsin\1\www\new\club\clubinfo.aspx 行: 92 rnrnrnrn
帮我看一下,这语句哪里错了
帮我看一下,这语句<em>哪里</em><em>错了</em>,vb里实现。。。rnselect * into opendatasource('Microsoft.Jet.OLEDB.4.0','Data Source="C:\aaaa.mdb";Jet OLEDB:Database Password=')...表1 from Table1
帮我看下这ARRAY哪里错了
'替换的关键词'rn'wordpress' => 'wordpress');rn$tmpfilename='1.txt';//格式为prom|http://www.baidu.comrn$str = file_get_contents($tmpfilename);//获得内容 rn$arr = explode("\n",$str);//分行存入数组 rnforeach($arr as $row)//遍历每行 rn $keys=explode("|",$row);rn $replace[$keys[0]]=$keys[1]; //这里为什么没有成功添加进去呢rn rn rnrn$replace['excerpt'] = 'cool';rn$text = str_replace(array_keys($replace), $replace, $text);rnreturn $text;rnrnecho replace_text_wps('prom dresses wordpress excerpt');rn?>
看看我这代码哪里错了
#include rn#include rn#includernrnstruct guandaornrn float x[100];rn float y[100];rn g;rnmain()rnrn FILE *in=fopen("in.txt","r") ;rn FILE *out=fopen("out.txt","w");rn int i,j;rn float temp;rn for(i=0;ig.y[i+1])rn rn temp=g.x[i];rn g.y[i]=g.y[i+1];rn g.y[i+1]=temp;rn rn rn if(j/2==0)rn fprintf(out,"%f\n",(g.y[j]+g.y[1])/2);rn elsern fprintf(out,"%f\n",(g.y[j/2+1]));rnrn fclose(in);rn fclose(out);rn return 0;rnrnrnrn平行与X轴修建一条主管线,使其到个接口的距离最短(接口用平行与Y的管道链接主管线)rn我这个输入坐标时不按大小顺序输入就出错误的结果,帮帮芒
麻烦大家看一下,这哪里错了?
..... rnrnadostoredproc1.Connection :=adoconnection1;rnadostoredproc1.ProcedureName :='sp_addumpdevice';rnadostoredproc1.Parameters.ParamByName('@devtype').value:='disk';rnadostoredproc1.Parameters.ParamByName('@logicalname').value:='temp';rnadostoredproc1.Parameters.ParamByName('@physicalname').value:='d:\temp.bak';rn adostoredproc1.Prepared;rnadostoredproc1.ExecProc ;rnrn........rnrnrn错误信息为:rn Project servermanage,exe raised exception class EDatabaseErrror with message 'ADOStoredProc1:Parameter '@devtype' not found',Process stopped.rnuse Step or Run to continue.rnrn明明有@devtype参数呀
这语法是哪里错了,执行不了!
这语法是<em>哪里</em><em>错了</em>,执行不了!
python这哪里错了,检查了好多遍啊
rnrn```rn #!/usr/bin/pythonrn# Filename: func_global.pyrnrndef func():rn global xrn rnprint 'x is',x 在这显示global name 'x' is not definedrnx = 2rnprint 'Changed local x to',x rnrnx = 50rnfunc()rnprint 'Value of x is',xrn```rnrn
谁能帮帮我,这究竟是哪里错了.........
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rn
新人求解,这到底哪里错了
public class Circle1rn public static void main(String[] args)rn Circle1 circle1 = new Circle1();rn System.out.println("The area of the circle of radius" + circle1.radius + "is" + circle1.getArea());rn rn Circle1 circle2 = new Circle1(25);rn System.out.println("The area of the cirlce of radius " + circle2.radius + "is" + circle2.getArea());rn rn Circle1 circle3 = new Circle1(125);rn System.out.println("The area of the cirlce of radius " + circle3.radius + "is" + circle3.getArea());rn rn circle2.radius = 100;rn System.out.println("The area of the cirlce of radius " + circle2.radius + "is" + circle2.getArea());rn rnrnrn double radius;rn rn Circle1()rn radius = 1.0;rn rnrn Circle1(double newRadius)rn radius = newRadius;rn rnrn double getArea()rn return radius *radius * Math.PI;rn rn
这几条语句哪里错了?
第一种方法:rnsql1="select max(num) from del_score_log where cardid="&scardidrnset rs=conn.execute(sql1)rnrs.deleternrs.updatern第二种方法:rnset rs=server.CreateObject("adodb.recordset")rn sql="select max(num) from del_score_log where cardid="&scardidrn rs.open sql,conn,1,2rn rs.deletern rs.updatern rs.closern set rs=nothingrn我用了上面两种方法,帮了半天都实现不了,我实在郁闷死了,请高手帮我看看,
哪里错了,下面是错误提示
#if !defined(AFX_MYSOCK_H__D1D42143_4B76_441A_8C13_175959EBE042__INCLUDED_)rn#define AFX_MYSOCK_H__D1D42143_4B76_441A_8C13_175959EBE042__INCLUDED_rnrn#if _MSC_VER > 1000rn#pragma oncern#endif // _MSC_VER > 1000rn// MySock.h : header filern//rnrnrnrn/////////////////////////////////////////////////////////////////////////////rn// MySock command targetrnrnclass MySock : public CAsyncSocketrnrn// Attributesrnpublic:rnrn// Operationsrnpublic:rn MySock();rn virtual ~MySock();rn BOOL m_bConnected;rn UINT m_nLength;rn char m_szBuffer[4096];rnrn// Overridesrnpublic:rn // ClassWizard generated virtual function overridesrn //AFX_VIRTUAL(MySock)rn public:rn virtual void OnReceive(int nErrorCode);rn virtual void OnSend(int nErrorCode);rn virtual void OnConnect(int nErrorCode);rn //AFX_VIRTUALrnrn // Generated message map functionsrn //AFX_MSG(MySock)rn // NOTE - the ClassWizard will add and remove member functions here.rn //AFX_MSGrnrn// Implementationrnprotected:rn;rnrn/////////////////////////////////////////////////////////////////////////////rnrn//AFX_INSERT_LOCATIONrn// Microsoft Visual C++ will insert additional declarations immediately before the previous line.rnrn#endif // !defined(AFX_MYSOCK_H__D1D42143_4B76_441A_8C13_175959EBE042__INCLUDED_)rnrn--------------------Configuration: CSockClient - Win32 Debug--------------------rnCompiling...rnCSockClient.cpprng:\cstudy\csockclient\mysock.h(16) : error C2504: 'CAsyncSocket' : base class undefinedrnCSockClientDlg.cpprng:\cstudy\csockclient\mysock.h(16) : error C2504: 'CAsyncSocket' : base class undefinedrnG:\CSTUDY\CSockClient\CSockClientDlg.cpp(184) : error C2039: 'ShutDown' : is not a member of 'MySock'rn g:\cstudy\csockclient\mysock.h(15) : see declaration of 'MySock'rnG:\CSTUDY\CSockClient\CSockClientDlg.cpp(185) : error C2039: 'm_hSocket' : is not a member of 'MySock'rn g:\cstudy\csockclient\mysock.h(15) : see declaration of 'MySock'rnrnrn光标停在class MySock : public CAsyncSocket的下面.rn
大家帮我看看,这哪里错了??
// test.cpp : Defines the entry point for the console application.rn//rnrn#include "stdafx.h"rn#include rn#includern#define SZ 20rnrnstruct holderrnprivate:rn int a[SZ];rnpublic:rn void initialize();rn struct pointer //首先声明一个struct,然后声明为全局范围内的友元.rn private:rn holder* h;rn int *p;rn public:rn initialize(holder* H);rn void next();rn void previous();rn void top();rn void end();rn int read();rn void set(int i);rn ;rn friend holder::pointer;rn;rnrnvoid holder::initialize()rnrn memset(a,0,SZ* sizeof(int));rnrnrnvoid holder::pointer::initialize(holder* H)rn h = H;rn p = h->a;rnrnrnvoid holder::pointer::next()rnrn if(pa[SZ-1])) p++;rnrnrnvoid holder::pointer::previous()rn if(p>&(h->a[0])) p--;rnrnrnvoid holder::pointer::top()rnrn p = &h->a[0];rnrnrnvoid holder::pointer::end()rnrn p = &h->a[SZ-1];rnrnrnint holder::pointer::read()rn return *p;rnrnrnvoid holder::pointer::set(int i) rn *p = i;rnrnrnint main(int argc, char* argv[])rnrn holder h;rn holder::pointer hp,hp2;rn int i;rnrn h.initialize();rn hp.initialize(&h);rn hp2.initialize(&h);rn for(i=0;i
我这程序哪里错了?(关于顺序建立链表的)
#include rn#include rnstruct nodernrn int data;rn struct node *next;rn;rnstruct node *creat(int n)rnrn struct *head,*tail,*p;rn int i;rn head=(struct node *)malloc(sizeof(struct node));rn head->next=NULL;rn tail=head;rn for(i=1;idata);rn p->next=NULL;rn tail->next=p;rn tail=p;rn rn return(head);rnrnvoid main()rnrn int n;rn struct node *head;rn scanf("%d",&n);rn head=creat(n);rn struct node *r;rn r=head;rn while(r->next!=NULL)rn rn if(r->next->next==NULL)rn printf("%d",r->next->data);rn elsern printf("%d ",r->next->data);rn r=r->next;rn rn printf("\n");rn
用asp修改注册表,我这代码哪里错了
rn想修改注册表让IE总是允许172.18.100.16弹出窗口。rn 的根路径无效。 rnrn/Chkadmin.asp,行 10 rnrn有人能帮我把代码改正确吗?rn
哪里错了,为什么没有结果?我的电脑有问题?
declare @sql nvarhcar(1000);rnset @sql='select * from city';rnprint @sql;rn仅仅弹出窗口:1行 被上次查询影响。你们的电脑出结果吗?在企业管理器里面执行。我的sql server有问题了吗?
我这图片解码哪里错了 ,大家帮忙看看。
[img=https://img-bbs.csdn.net/upload/201405/07/1399462692_168491.png][/img]rn[img=https://img-bbs.csdn.net/upload/201405/07/1399462714_269960.png][/img]rnrn当是像素32×32 和64×64的时候能正确解析出来 但是 16×16 和48×48 就解析不出来 (代码2楼)
[求助]这句话哪里错了啊?
@echo offrnSETLOCAL ENABLEDELAYEDEXPANSIONrnrnfor %%a in (c d e f g h i j k l m n o p q r s t u v w x y z) do (rnif exist %%a:\nul (rnfor /f "tokens=3" %%b in ('dir /-c %%a:\^|find "可用字节"') do set freesize=%%brnset /a freesize=!freesize:~0,-3!/1049>nulrnif !freesize! GTR ^18432 && md %%a:\Temprnpausern)rn)rnecho 各磁盘空间均小于18G,按任意键退出。rnpause>nulrnexit rnrnrn里面的if !freesize! GTR ^18432 && md %%a:\Temprn这个地方的&&是错的,应该改成什么??rnrn怎么<em>错了</em>啊?rn
请问我这程序哪里错了?
void ClientSock::Init(CFiveDlg *fiveDlg)rnrn m_clientSockFile = new CSocketFile(this); [color=#FF0000]//到这里出错[/color]rn m_aSessionIn = new CArchive(m_clientSockFile,CArchive::load);rn m_aSessionOut = new CArchive(m_clientSockFile,CArchive::store);rn m_fiveDlg = fiveDlg;rnrn弹出如下错误:rn[img=http://img.my.csdn.net/uploads/201204/14/1334394321_7261.jpg][/img]rn点重试断点在rn[img=http://img.my.csdn.net/uploads/201204/14/1334394585_6886.jpg][/img]
大侠帮忙看看,这哪里错了
import java.util.*;rnpublic class EmployeeTest rnrn public static void main(String[] args)rn rn //fill the staff array with three Employee objectsrn Employee[] staff = new Employee[3];rn rn staff[0] = new Employee ("Carl Cracker",75000,1987,12,15);rn staff[1] = new Employee ("Harry Hacker",50000,1989,10,1);rn staff[2] = new Employee ("Tony Tester",40000,1990,3,15);rn rn //raise everyone's salary by 5%rn for (Employee e : staff)rn e.raiseSalary(5);rn rn //print out information about all Employee objectsrn for (Employee e :staff)rn System.out.println("name="+e.getName()+",salary="+e.getSalary()+",hireDay="+e.getHireDay());rn rn class Employee rn rn public Employee(String n, double s, int year,int month,int day)rn rn name=n;rn salary=s;rn GregorianCalendar = new GregorianCalendar(year,month,-1,day);rn //GregorianCalendar uses o for Januanryrn hireDay = calendar.getTime();rn rnrn public String getName()rn rn return name;rn rnrn public double getSalary()rn rn return salary;rn rnrn public Date getHireDay()rn rn return hireDay;rn rn public void raiseSalary(double bypercent)rn rn double raise =salary *bypercent/100;rn salary+=raise;rn rn rn rn private String name;rn private double salary;rn private Date hireDay;rn rnrn运行的时候:出现以下提示:rnException in thread "main" java.lang.Error: Unresolved compilation problems: rn No enclosing instance of type EmployeeTest is accessible. Must qualify the allocation with an enclosing instance of type EmployeeTest (e.g. x.new A() where x is an instance of EmployeeTest).rn No enclosing instance of type EmployeeTest is accessible. Must qualify the allocation with an enclosing instance of type EmployeeTest (e.g. x.new A() where x is an instance of EmployeeTest).rn No enclosing instance of type EmployeeTest is accessible. Must qualify the allocation with an enclosing instance of type EmployeeTest (e.g. x.new A() where x is an instance of EmployeeTest).rnrn at EmployeeTest.main(EmployeeTest.java:11)rn
dbutils 这几行代码,哪里错了
[code=Java]rnClass.forName("com.mysql.jdbc.Driver");rnString url = "jdbc:mysql://localhost/ly_blog";rnString username = "root";rnString password = "root";rnconn = DriverManager.getConnection(url, username, password);rnString sql = "insert into blog(title,category_id,context,created_time) values(?,?,?,now())";rnString[] params = title, category, content;rnQueryRunner qr = new QueryRunner();rnresult = qr.update(conn, sql, params);rn[/code]rnnew QueryRunner()的时候没有用到DataSource。rn[color=#FF0000]改成这样也是不行。[/color]rn[code=Java]result = qr.update(sql, conn, params);[/code]
请帮我看一下这哪里错了.
rn
这2个 代码哪里错了
public void fenye(int yd)rn rn string sql = "select top 10 * from leave where id not in(select top 10*(" + yd + "-1) from leave order by id ) ".ToString();rn Class1.ExecuteNonQuery(sql);rn rn public DataTable GetliAll(string id)rn rn string sql = "select * from chat,youkeinfo where youke= '" + id + "'";rn return Class1.ExecuteDataSet(sql).Tables[0];rn
哪里错了,摸不着头脑,求解答!
[code=c]void manager::select() //这是一个manager类的成员函数rnrn int a;rn cout << "欢迎进入服装销售管理系统" << endl;rn cout << endl;rn cout << "请选择身份进入系统" << endl;rn cout << "1.管理员入口" << " " << "2.销售员入口" << endl;rn docout << "请输入正确的指令序号:"; cin >> a; while (a != 1 && a != 2);rn switch (a)rn rn case 1: manager choose1; choose1.manage(); break; rn default: saler choose2; choose2.salers(); break; //saler是另一个类 salers()是saler类中的成员函数 编译错误指在这行rn rn[/code]rnrn[img=https://img-bbs.csdn.net/upload/201408/10/1407638367_728453.png][/img]rn这到底是什么原因?看了大半天了到找不到答案,望各位大神帮忙,急~~~
这几行代码是哪里错了
#includernint main()rnrn char life_insurance[1];rn char health[1];rn int age=50;rn health='B';rn if (age<>age;rn return 0;rnrnrn//编译通不过,我按照书上原文写的。
帮我看一下,这代码哪里错了
procedure TForm4.FormShow(Sender: TObject);rnvar str:string;rnbeginrnstr:='DBQ='+'database\database.mdb'+';Driver=Driver do Microsoft Access (*.mdb);DriverId=25;FIL=MS Access;UID=admin;UserCommitSync=Yes;';rnadoconnection1.Close;rntryrnadoconnection1.ConnectionString :=str;rn//ADOQuery1.Close;rnADOQuery1.Connection :=adoconnection1;rnexceptrnmessagedlg('数据连接失败!',mterror,[mbok],0);rnend;rnrnend;rnrnprocedure TForm4.SpeedButton1Click(Sender: TObject);rnbeginrnadoQuery1.SQL.Clear;rnadoQuery1.SQL.Text := 'Insert Into user ([密码]) Values (' + '''' + edit1.Text + '''' + ')' ;rn//adoQuery1.SQL.Add('Insert Into user ([密码])');rn//adoQuery1.SQL.Add('Values ("abc")');rn//adoQuery1.SQL.Add('Values (' + '''' + edit1.Text + ''''+ ')');rn//ADOQuery1.SQL.Text := ' Where 用户名='+label1.Caption;rnadoQuery1.ExecSQL;rnend;
这串代码哪里错了?拜托拜托
rnrnrn```rn#include rn#include rnusing namespace std;rnrn//基类rnclass Emloyeernpublic:rn Emloyee(int no,string na)rn rn number=no;rn name=na;rn rnprotected:rn int number; //编号rn string name; //姓名rn double Salary; //月工资 rn;rnrnclass Technican:public Emloyee //技术员类 rnpublic:rn Technican(int no,string na):Emloyee(no,na)rn rn hourlyrate=150;rn rn void Print()rn rn cout<<>workhours;rn Salary=hourlyrate*workhours; rn cout<<>SalesVolume;rn Salary=ratio*SalesVolume;rn cout<<>SalesVolume;rn Salary=(monthpay+SalesVolume*ratio);rn cout<<
[求助]我这连接sqlserver的语句哪里错了
rn我的sqlserver用的是系统验证,没有密码。rnrn connSQLStr="driver=SQL Server;server=(local);Integrated Security=SSPI;database=TomBBS"rnrnrnrnrn错误类型:rnMicrosoft OLE DB Service Components (0x80040E21)rn多步 OLE DB 操作产生错误。如果可能,请检查每个 OLE DB 状态值。没有工作被完成。rn
到底我哪里定义错了, 自定义异常, 哪里错了?
rnpublic class TestException rnrn public static void main(String[] args)rn rn tryrn rn int result = new Test().devide( 3, 0 );rn //int result = new Test().devide( 3, -1 );rn //int result = new Test().devide( 3, 1 );rn System.out.println("the result is " + result );rn rn catch(DevideByMinusException e)rn rn System.out.println("program is running into"+rn "DevideByMinusException");rn System.out.println(e.getMessage());rn System.out.println("the devisor is " +rn e. getDevisor());rn rn catch(ArithmeticException e)rn rn System.out.println("program is running into"+ rn "DevideByMinusException");rn System.out.println(e.getMessage());rn rn catch(Exception e)rn rn System.out.println("program is running into"+rn "other unknowned Exception");rn System.out.println(e.getMessage());rn rn System.out.println("program is running here ,that is normal !");rn rn
哪里错了哪里错了我是按照书上写的
main()nnint shuzu[5]=1,4,2,8,7;nint i,j;nfor(i=0;ishuzu[j])nnint a=shuzu[j-1];nshuzu[j-1]=shuzu[j];nshuzu[j]=shuzu[j-1];nnfor(i=0;i,shuzu[i]);n
我的这个递归哪里错了
[code=c]#include rn#include rnint xp(char s[],int y)rnrnint i,l=strlen(s);rnif(l==0) return y;rnfor(i=0;i
我想知道哪里错了
#include "stdafx.h"rn#include rnrnusing namespace std;rnrndouble p(double x,double n);rnrnint main()rnrn double x,n,m;rn cout<<>x,n;rn m=p(x,n);rn cout<<1) return ((2*n-1)*p(x,(n-1))-(n-1)*p(x,n-2))/(double)n;rnrn【是不是递归是出<em>错了</em>】rn
我的连接类哪里错了
index1.jsp传递参数给index2.jsp检验rnindex2.jsp代码:rnrnrnrnrnrn正在登录中......rnrnrnrnrnrn但一直出现空指针问题:rnrnorg.apache.jasper.JasperException: Exception in JSP: /page/index2.jsp:12rnrn9: if(request.getParameter("username")!=null&&request.getParameter("password")!=null)rn10: String sql="select username from member where username='"+request.getParameter("username")+"'and password='"+request.getParameter("password")+"'"; rn11: ResultSet rs=db.executeQuery(sql); rn12: if(rs.next())rn13: String username=new String(request.getParameter("username").toString().getBytes("ISO-8859-1"),"GB2312"); rn14: rn15: session.setAttribute("username",username);rnrnrnStacktrace:rn org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:506)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrn起 因 rnrnjava.lang.NullPointerExceptionrn org.apache.jsp.page.index2_jsp._jspService(index2_jsp.java:63)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrn我不知道是<em>哪里</em><em>错了</em>,我怀疑是连接类的问题,大家帮我看下~!rnrnsqlBean类:rnrnpackage javabean;rnimport java.sql.*;rnimport java.io.*;rnrnpublic class sqlBean rnpublic Connection conn = null;rnpublic ResultSet rs = null;rnpublic String user = "sa";rnpublic String password = "123";rnprivate String DatabaseDriver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";rnprivate String DatabaseConnStr = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Tea";rnrnpublic void setDatabaseDriver(String Driver) rnthis.DatabaseDriver = Driver;rnrnrnpublic String getDatabaseDriver() rnreturn (this.DatabaseDriver);rnrnrnpublic void setDatabaseConnStr(String ConnStr) rnthis.DatabaseConnStr = ConnStr;rnrnrnpublic String getDatabaseConnStr() rnreturn (this.DatabaseConnStr);rnrnrnpublic sqlBean() rntry rnClass.forName(DatabaseDriver);rn catch (java.lang.ClassNotFoundException e) rnSystem.err.println("加载驱动器有错误:" + e.getMessage());rnSystem.out.print("执行插入有错误:" + e.getMessage());rnrnrnrnpublic String getString(String name) throws SQLException rnif (rs == null)rnthrow new SQLException("ResultSet is null");rnreturn String.valueOf(rs.getString(name));rnrn rnpublic void executeInsert(String sql) rntry rnConnection conn = DriverManagerrn.getConnection(rn"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Tea","sa", "123");rnStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);rnstmt.executeUpdate(sql); rn rncatch(SQLException ex) rnSystem.err.println("执行插入有错误:"+ex.getMessage() ); rnSystem.out.print("执行插入有错误:"+ex.getMessage());//输出到客户端 rn rn rnrnpublic ResultSet executeQuery(String sql) rnResultSet rs = null;rntry rnConnection conn = DriverManagerrn.getConnection(rn"jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=Tea",rn"sa", "123");rnStatement stmt = connrn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,rnResultSet.CONCUR_UPDATABLE);rnrs = stmt.executeQuery(sql);rnrn catch (SQLException ex) rnSystem.err.println("执行查询有错误:" + ex.getMessage());rnSystem.out.print("执行查询有错误:" + ex.getMessage());rnrnreturn rs;rnrnrnrnrnpublic void CloseDataBase() rntry rnconn.close();rn catch (Exception end) rnSystem.err.println("执行关闭Connection对象有错误:" + end.getMessage());rnSystem.out.print("执行关闭Connection对象有错误:" + end.getMessage());rnrnrnrnrnrn
我这个哪里错了
"rnrn错误信息rnrnCS1502: 与“System.Web.HttpServerUtility.UrlEncode(string)”最匹配的重载方法具有一些无效参数
关于判断,我哪里错了?
select a.user_no,rn a.user_name,rn a.office_no,rn b.office_name,rn a.password,rn a.user_post,rn a.user_post_name,  rn a.sex,rn sex_name=((case when a.sex = '0' then '男'),rn (case when a.sex = '1' then '女')),rnfrom user_info a,office_info brnwhere a.office_no = b.office_norn
我写的哪里错了,求助
#include n#includenvoid main(void)nn char str1[30]=0;n char str2[30]=0;n char str3[30]=0;n printf("Please input the first number:");n gets(str1);n printf("Please input the second number:");n gets(str3);n add(str1 str2 str3);nnvoid add((char str3[] char str5[] char str6[])nn char str7[30];n void format(char str3[] char str5[])n str7[20]='.';n str6[29]=(str3[m]-'0')+(str5[m]-'0')%10;n for(m=28;m>-1;m--)n n str6[m]=(str3[m]-'0')+(str5[m]-'0')%10+(str3[m+1]-'0')+(str5[m+1]-'0')/10;n n for(b=0;b'9')n n if(str[i]!='.')n n printf("data error");n return(-1);n n elsen n point++;n sign_point=i;n n n if(point>1)n n printf("data error");n return(-1);n n i++;n n if(point==1)n n int k=0,a=0,n=0;n for(j=sign_point;str[j]=0;j++)n k=j;n for(j=sign_point;str[j]=0;j++)n n str4[20+a]=str[j];n a++;n n for(j=sign_point;j=0;j--)n str4[20-n]=str[j];nn n return str4[];nnvoid miu(char str9[] char str10[] char str11[])nn char str12[30];n void format(char str9[] char str12[])n str12[20]='0';n int n2=0;n n2=str9[]-'0')*10-(str10[m]-'0')%10n for(m=28;m>-1;m--)n n str11[m]=((str9[m]-'0'+n2-1)*10-str10[m]-'0')%10;n n2=str9[m]-'0')*10-(str10[m]-'0')/10;n n for(b=0;b<30;b++)n str12[c]=str11[c];n puts(str12);n return 0;nn
我这么写哪里错了???
我一点详细信息就提示Info1为空或不是对象rnrn详细信息rn rn......rn
我写的堆栈哪里错了
我自己写了一个堆栈,rntype TStack=classrnprivaternsize:Integer;rncontainer:array [1..20] of Integer;rnpublicrnconstructor Create();rnfunction Push(aNode:Integer):boolean;rnfunction Pop(out aNode:Integer):boolean;rnend;rnrnrnimplementationrnrnconstructor TStack.Create();rnbeginrnsize:=0;rnend;rnrnfunction TStack.Push(aNode:Integer):boolean;rnbeginrn if(size>=20) thenrn beginrn Exception.Create('Stack is full!');rn result:=false;rn endrn elsern beginrn container[size]:=aNode;rn Inc(size);rn result:=True;rn end;rnrnend;rnrnfunction TStack.Pop(out aNode:Integer):boolean;rnbeginrnif (size);rn result:=False;rn endrn elsern beginrn aNode:=container[size];rn dec(size);rn result:=True;rn end; rnrnend;rn测试代码如下,运行后点击pop,push就会出现内存冲突,请问怎么回事?rnvarrn Form1: TForm1;rn S1:TStack;rnprocedure TForm1.Button1Click(Sender: TObject);rnbeginrnS1.Push(StrToInt(Edit1.Text));rnend;rnrnprocedure TForm1.Button2Click(Sender: TObject);rnvarrnmsg:String;rnnode:Integer;rnbeginrn S1.Pop(node);rn msg:=IntTostr(node);rn Showmessage(msg);rnend;
jMAIL 我在哪里错了
rnrn在机器上运行后,点SUBMIT无法提交(没有反应),每刷新一次这个asp程序页面,信箱里就会多一封空信,是程序写<em>错了</em>,还是把这段程序放错地方了。高手们救我,我很菜。
我究竟哪里错了-hibernate
我的配置信息rnrnD:\hibernate-2.1\src\hibernate.properties注释HypersonicSQL取消MYSQL注释,修改如下rnhibernate.dialect net.sf.hibernate.dialect.MySQLDialectrnhibernate.connection.driver_class org.gjt.mm.mysql.Driverrnhibernate.connection.driver_class com.mysql.jdbc.Driverrnhibernate.connection.url jdbc:mysql://localhost:3306/testrnhibernate.connection.username rootrnhibernate.connection.passwordrnrnD:\Middlegen-Hibernate-r5\config\database\mysql.xml修改如下rnrnrnrnrnrnrnrnrnD:\Middlegen-Hibernate-r5\build.xml修改如下rn第24行rn第51行rn第158行 rn第185行package="edu"rnrnrn用hbm2java生成了java文件新建工程Hiber,包edu,将abc.java,abc.hbm.xml,hibernate.properties放入包中导入了D:\hibernate-2.1\hibernate2.jar,D:\hibernate-2.1\lib\*.jar,和mysql.jarrnrn测试代码如下rnrnpackage edu;rnimport net.sf.hibernate.HibernateException;rnimport net.sf.hibernate.MappingException;rnimport net.sf.hibernate.Session;rnimport net.sf.hibernate.SessionFactory;rnimport net.sf.hibernate.Transaction;rnimport net.sf.hibernate.cfg.Configuration;rnrnpublic class test rn public static void main(String[] args) throws MappingException, HibernateException rn SessionFactory sf=new Configuration().addClass(Abc.class).buildSessionFactory();rn Session s=sf.openSession();rn Transaction trans =s.beginTransaction();rn Abc aaa=new Abc();rn aaa.setId(new Integer(2));rn aaa.setName("bbb");rn aaa.setScore(new Integer(100));rn s.save(aaa);rn trans.commit();rn s.close();rn sf.close();rn rnrnrn出错信息如下rnrn2005-12-3 19:19:09 net.sf.hibernate.cfg.SettingsFactory buildSettings警告: No dialect set - using GenericDialect: The dialect was not set. Set the propertyrnrn。。。。。rnrn2005-12-3 19:19:10 net.sf.hibernate.impl.SessionFactoryObjectFactory addInstance信息: no JNDI name configuredrnjava.lang.UnsupportedOperationException: The user must supply a JDBC connection at net.sf.hibernate.connection.UserSuppliedConnectionProvider.getConnectionrnrnrn(UserSuppliedConnectionProvider.java:32)rn at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)rn at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264)rn at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244)rn at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)rn at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransactionrnrnrn(JDBCTransactionFactory.java:19)rn at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2195) at edu.test.main(test.java:16)Exception in thread "main"rnrnrn在hibernate.properties和mysql.xml中我已经修改好了driver和url,为什么总提示The user must supply a JDBC connection。rn我还有哪一步没有作,或者哪一步作<em>错了</em>?rn
哪里错了?求解答
[img=http://www.kuaipan.cn/file/id_19059312512991241.html][/img]rnrn我选择是B,<em>哪里</em><em>错了</em>?为什么答案是A
我这个存储过程哪里错了
[code=SQL]rnCreate proc SaveProtectedUnitInforn@PUI_ID varchar(50),rn@PUI_Name varchar(50),rn@Address varchar(50),rn@Longitude double,rn@Latitude double,rn@BaseInfo varchar(50),rn@DangrSubstCharact varchar(50),rn@Notes varchar(50)rnasrn[/code]rnrn这里 @Longitude double, 报错说:消息 102,级别 15,状态 1,过程 SaveProtectedUnitInfo,第 9 行rn',' 附近有语法错误。!!!怎么回事啊?
我的代码到底是哪里错了?
rivate Sub CommandButton1_Click()rnDim dateCounter As RangernDim Number As RangernDim t1 As RangernDim t2 As Rangernrnt1 = TextBox1.Textrnt2 = TextBox2.TextrnrnSet Number = Worksheets("数据元").Range("A2:A12")rnFor dateCounter = t1 To t2rnWorksheets("Sheet4").Columns(2).Value = NumberrnrnDim day As RangernDim i As IntegerrnFor i = 1 To 11rnday = dateCounterrnWorksheets("sheet4").Colmuns(1).Value = dayrnNext irnNext dateCounterrnEnd Subrnrnrn我需要生成一个第一列是日期,第二列是号码(来自"数据元"表)的表格,由于有11个号码,所以每个日期必须循环11次,格式如下:rnrn日期1 号码1rn日期1 号码2rn...rn日期1 号码11rn日期2 号码1rn日期2 号码2rn...rn日期2 号码11rn...rnrnt1和t2用来导入起始日期和终止日期.
CDMA蜂窝移动通信系统基站子系统介绍下载
介绍中兴CDMA蜂窝移动通信系统基站子系统 相关下载链接:[url=//download.csdn.net/download/arirangjin/3396093?utm_source=bbsseo]//download.csdn.net/download/arirangjin/3396093?utm_source=bbsseo[/url]
mini2440原理图及封装库下载
友善之臂mini2440官方原理图及封装库 相关下载链接:[url=//download.csdn.net/download/chengsir2009/6284135?utm_source=bbsseo]//download.csdn.net/download/chengsir2009/6284135?utm_source=bbsseo[/url]
OI,ACM国家集训队2014论文集下载
2014年信息学奥林匹克中国国家队论文集.pdf 相关下载链接:[url=//download.csdn.net/download/sy2766/7565869?utm_source=bbsseo]//download.csdn.net/download/sy2766/7565869?utm_source=bbsseo[/url]
相关热词 c# 去空格去转义符 c#用户登录窗体代码 c# 流 c# linux 可视化 c# mvc 返回图片 c# 像素空间 c# 日期 最后一天 c#字典序排序 c# 截屏取色 c#中的哪些属于托管机制
我们是很有底线的