Java怎么修正错误,求指点

图片说明Exception in thread "main" java.lang.Error:Unresolved compilation problem:Syntax error on token "=",Name expected after this token

0

10个回答

数组声明可以这样试试
String[] aArray = new String[5];

String[] bArray = {"a","b","c", "d", "e"};

String[] cArray = new String[]{"a","b","c","d","e"};

3
qq_37022283
qq_37022283 谢谢大神帮忙-v-。
2 年多之前 回复

String[] words = {"boy","girl","bird"};这样就OK了

2
qq_37022283
qq_37022283 谢谢大神帮忙-v-。
2 年多之前 回复

String[] str = {'1','2','3'};
String[] 代表字符串型的数组,{...}里面是数组的数据

1

{}的同学。。。。。。。。。。。。。。。。。。。

1

** 把()改成{}就 ok了!**

1

把你的()小括号 换成 { } 花括号

1

数组那边的()小括号 换成 { } 花括号,碰到这种问题首先要先看一下错误提示,然后第一步检查自己的拼写语法是否问题

1

遇到这种问题 点击小红叉有说明的..

1

数组内容要用"{ }"

1

数组是用小括号么???用 [ ] 就好了吧

0
dz_xiaobai
DZ_XIAOBAI Java中的数组实例化使用大括号括起来,而不是用小括号
2 年多之前 回复
qq_35712550
集盛网络科技有限公司 把你的()小括号 换成 { } 花括号
2 年多之前 回复
shadowfromsun
shadowfromsun 搞错了 是 { } 这个花括号
2 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
求错误修正
#include rnusing namespace std;rnrnclass daternrnpublic:rn date() rn void SetDay(int d)day=d;rn void SetMonth(int m)month = m;rn void SetYear(int y)year = y;rn void showdate();rnprivate:rn int year,month,day;rn;rnrnvoid date::showdate()rnrn cout<>number;rn a.setnumber(number);rn cout<<"请输入人员姓名:";rn cin>>name;rn a.setname(name);rn cout<<"请输入人员性别:";rn cin>>sex;rn a.setsex(sex);rn cout<<"请输入人员id:";rn cin>>id;rn a.setid(id);rn cout<<"请输入人员classno:";rn cin>>classno;rn a.setclassno(classno);rn cout<<"请输入人员principalship:";rn cin>>principalship;rn a.setprincipalship(principalship);rn cout<<"请输入人员department:";rn cin>>department;rn a.setdepartment(department);rn cout<<"请输入人员subject:";rn cin>>subject;rn a.setsubject(subject);rn cout<<"请输入人员teacheradviser:";rn cin>>teacheradviser;rn a.setteacheradviser(teacheradviser);rnrn cout<
求帮助~求修正错误
//client.hrn#ifndef Client_Hrn#define Client_Hrnrn#include rnusing namespace std;rnrnclass CLIENTrnrnprivate:rn static char ServerName;rn static int ClientNum;rnpublic:rn CLIENT()ClientNum++;;rn ~CLIENT()ClientNum--;;rn static int GetClientNum();rn static void ChangServerName(char name);rn static char GetServerName();rn void showclient();rn;rnrn#endifrnrn//client.cpprn#include "client.h"rnrnint CLIENT::ClientNum = 0;rnrnint CLIENT::GetClientNum() rnreturn ClientNum;rnrnvoid CLIENT::ChangServerName(char name)rnServerName=name;rnrnchar CLIENT::GetServerName() rnreturn ServerName;rnrnchar CLIENT::ServerName= 'A';rnrnvoid CLIENT::showclient()rnrn cout << "服务器名称为:" << CLIENT::GetServerName()<< endl;rn cout << "客户机数量为:" << CLIENT::GetClientNum()<< endl;rnrnrn//lab.cpprn#include "client.h"rnrnint main()rn rn CLIENT::showclient();rn CLIENT::ChangServerName('B');rn CLIENT a;rn CLIENT::showclient();rn CLIENT b;rn CLIENT::showclient();rn b.~CLIENT();rn CLIENT::showclient();rnrnrnrnrn结果rnrn服务器名:Arnrn客户总数:0rnrn服务器名:Brnrn客户总数:1rnrn服务器名:Brnrn客户总数:2rnrn服务器名:Brnrn客户总数:1rnrn
这些错误怎么修正?
Buildrn [Error] Unit1.pas(29): Statement expected but 'FUNCTION' foundrn [Error] Unit1.pas(48): Declaration expected but 'IF' foundrn [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'rnrnrnrnunit Unit1;rnrninterfacernrnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, StdCtrls,TLHelp32;rnrntypern TForm1 = class(TForm)rn Label1: TLabel;rn Edit1: TEdit;rn procedure FormCreate(Sender: TObject);rn privatern Private declarations rn publicrn Public declarations rn end;rnrnvarrn Form1: TForm1;rnrnimplementationrnrn$R *.dfmrnrnprocedure TForm1.FormCreate(Sender: TObject);rnbeginrn function FindProcess(AFileName: string): boolean;rnvarrnhSnapshot: THandle;//用于获得进程列表rnlppe: TProcessEntry32;//用于查找进程rnFound: Boolean;//用于判断进程遍历是否完成rnbeginrnResult :=False;rnhSnapshot := CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);//获得系统进程列表rnlppe.dwSize := SizeOf(TProcessEntry32);//在调用Process32First API之前,需要初始化lppe记录的大小rnFound := Process32First(hSnapshot, lppe);//将进程列表的第一个进程信息读入ppe记录中rnwhile Found dornbeginrnif ((UpperCase(ExtractFileName(lppe.szExeFile))=UpperCase(AFileName)) or (UpperCase(lppe.szExeFile )=UpperCase(AFileName))) thenrnbeginrnResult :=True;rnend;rnFound := Process32Next(hSnapshot, lppe);//将进程列表的下一个进程信息读入lppe记录中rnend;rnend;rnif FindProcess('StarCraft.exe') then edit1.text:='星际';rnend.rn
【修正】2018-12 错误修正
错误三点: 第一:圆括号改为花括号。 第二:声明变量错误。 第三:文本型数据未加入双括号。 改正后代码如下: #include &amp;amp;amp;amp;amp;amp;amp;lt;stdio.h&amp;amp;amp;amp;amp;amp;amp;gt; int main(void){ int wl; wl=100; printf(&amp;amp;amp;amp;amp;amp;quot;姓名:%s 门派:%s 武力:%d\n&amp;amp;amp;amp;amp;am
修正错误?
我定义了一个一维数组和二维数组rnusesrn Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,rn Dialogs, ExtCtrls, TeeProcs, TeEngine, Chart, Menus, TeeTools,rn TeeDragPoint, Series, TeeBezie, DBChart, Grids, TeeChartGrid, StdCtrls,rn Buttons, TeeURL, TeeSeriesTextEd, TeePageNumTool, TeeFunci, DB, TeeData,rn TeeEdit, TeeNavigator, Spin,IniFiles, DBTables;rnrntypern Ay=array [1..288] OF real;rn Ay2=array [1..288,1..288] of real;rnrn负初始值时rnVar p,Q,QP,QC:ay;QpD,Qc1:ay2;i,j,w,z:integer;Min,min1,S,K:real;rn BoolQ:Boolean;rnbeginrnrn FOr i:=1 To 288 Dorn Beginrn p[i]:=0;rn Q[i]:=0;rn QP[i]:=0;rn QC[i]:=0;rn FOr j:=1 to 288 Dorn Beginrnrn QPD[i,j]:=0;rn Qc1[i,j]:=0;rn End;rnrn End;rn End;rn提示下错误:rnproject paraopconf.exe raised exception class EStackOverflow with message 'StackrnOverflow'.Process Stopped .Use Step Or Run To Continue.rn如果我把 Qc1[i,j]:=0;删除就能通过。为何;rn如果是你你应该如何写,写下代码。rn请立刻回答。rn
错误修正
import javax.swing.*;rnrnpublic class test4rn public static void main(String args[])rn int a[] = new int [10];rn rn for (int counter =0; counter<=a.length;counter++)rn a[counter] = 2*counter;rn rn String output ="INDEX\tVALUE\n";rn rn rn for (int counter=0; counter<=a.length; counter++)rn output += counter+"\t"+a[counter]+"\n";rn rn JTextArea outputArea = new JTextArea();rn outputArea.setText(output);rn rn JOptionPane.showMessageDialog( null, outputArea,"shuzu",JOptionPane.INFORMATION_MESSAGE);rn System.exit( 0 );rn rnrn
两个Array的方法,求高手指点修正
'删除数组中的重复项rn 'arrayList 数组rn '返回值 Arrayrn Public Function RemoveRepeat(ByVal arrayList)rn Dim intI,intJ,intK,NewArrayrn ReDim NewArray(0)rn NewArray(0) = arrayList(0)rn For inti = 1 To Ubound(arrayList)rn intK = 0 rn For intJ = 0 To Ubound(NewArray)rn intK = intK + 1rn if arrayList(inti) = NewArray(intJ) Then Exit Forrn Next rn if intK = intJ Then NewArray = Me.Append(NewArray,arrayList(inti)) '方法,在数组后面追加一个新的元素rn Nextrn RemoveRepeat = NewArrayrn End Functionrn rn '对数组进行排序,冒泡排序法rn 'ASC字符排序法则,即计算字符串中的第一个字符的ASC码rn 'ArrayList 数组rn 'isAsc 是否为升序排列rn '返回值 Arrayrn Public Function Sort(ByVal ArrayList,ByVal isAsc)rn Dim intI,intJ,NewArray,CacheArray,CacheTemp,ArrTemp,intCountrn ReDim CacheArray(Ubound(ArrayList))rn NewArray = ArrayListrn intCount = Ubound(NewArray)rn For intI = 0 To intCountrn CacheArray(intI) = Asc(NewArray(intI))rn Nextrn If IsAsc Thenrn For intI=0 To intCountrn For intJ = intCount - 1 To intI Step -1rn If CacheArray(intJ) > CacheArray(intJ + 1) Thenrn CacheTemp = CacheArray(intJ)rn CacheArray(intJ) = CacheArray(intJ + 1)rn CacheArray(intJ + 1) = CacheTemprn rn ArrTemp = NewArray(intJ)rn NewArray(intJ) = NewArray(intJ + 1)rn NewArray(intJ + 1) = ArrTemprn End Ifrn Nextrn Nextrn Elsern For intI=0 To intCountrn For intJ = intCount - 1 To intI Step -1rn If CacheArray(intJ) < CacheArray(intJ + 1) Thenrn CacheTemp = CacheArray(intJ)rn CacheArray(intJ) = CacheArray(intJ + 1)rn CacheArray(intJ + 1) = CacheTemprn rn ArrTemp = NewArray(intJ)rn NewArray(intJ) = NewArray(intJ + 1)rn NewArray(intJ + 1) = ArrTemprn End Ifrn Nextrn Nextrn End ifrn Sort = NewArrayrn End Functionrnrn我认为这两个方法都可以再简化.只是实在想不出.请高手指点!!
求达人指点错误!!
#include rn#include rn#include rn#include rn#include rnrnconst int NULL = 0;rn//枚举类型:无效的数组大小、内存分配错误、下标越界rnenum ErrorTypeinvalidArraySize,memoryAllocationError,indexOutOfRange;rn//指针数组,分别指向不同的错误类型字符串rnchar *errorMsg[] = "Invalid array size","Memory allocation error","Invalid index:";rnrntemplate rnclass Arrayrnrnprivate :rn T* alist;rn int size;//数组大小rn //把错误信息进行输出,并输出错误下标位置,常成员函数rn void Error(ErrorType error, int badIndex=0)const;rnrnpublic :rn Array(int sz=50);//构造函数rn Array(const Array &A);//拷贝构造函数rn ~Array();//析构函数rn Array& operator =(const Array &rhs);//运算符重载,实现赋值运算rn T& operator [](int i);//[]运算符重载rn operator T*()const;//rn int ListSize()const;//返回数组的大小 rn void Resize(int sz);//改变数组的大小rn;rnrntemplate rnvoid Array::Error(ErrorType error, int danIndex)constrnrn cout<rnArray::Array(int sz)rnrn if(sz<=0)//sz为数组大小,若小于0,则输出错误信息rn Error(invalidArraySize);rn size = sz;//将元素个数赋值给变量sizern alis = new T[size]; //动态分配size个T类型的元素空间rn if(alist == NULL)//如果分配内存不成功,输出错误信息rn Error(memoryAllocationError);rnrnrntemplate rnArray::~Array()rnrn delete []alist;rnrnrntemplate rnArray::Array(const Array &X)//深拷贝构造函数rnrn //从对象X取得数组大小,并赋值给当前对象成员rn int n = X.size;rn size = n;rnrn //为对象申请内存并进行出错检查rn alist = new T[n];//动态分配n个T类型的元素空间rn if(alist == NULL)rn Error(memoryAllocationError);rnrn //从对象X复制数组元素到本对象rn T* srcptr = X.alist;//X.alist是对象X的数组首地址rn T* destptr = alist;//alist是本对象中的数组首地址rn while(n--)//逐个复制数组元素rn *destptr++ = *srcptr++;rnrnrntemplate rnArray& operator =(const Array &rhs)//重载"="运算符,将对象rhs复制给本对象.实现对象之间的整体赋值rnrn int n = rhs.size;//取rhs的数组大小rnrn //如果本对象中数组大小与rhs不同,则删除数组原有内存,然户重新分配rn if(size != n)rn rn delete []alist;//删除原有数组rn alist = new T[n];//重新分配n个元素的内存rn if(alist == NULL) //如果分配不成功,输出错误信息rn Error(memoryAllocationError);rn size = n; //记录本对象的数组大小rn rnrn //从rhs向本对象复制元素rnrn T* destptr = alist;rn T* srcptr = rhs.alist;rn while(n--)rn *destptr++ = *srcptr++;rn return *this;rnrnrn//重载下标操作符,实现与普通数组一样通过下标访问元素,并且具有越界检查功能rntemplate rnT& Array::operator[](int n)rnrn //检查下标是否越界rn if(n<0||n>size-1)rn Error(indexOutOfRange,n);rn //返回下标为n的数组元素rn return alist[n];//返回引用,具有左值功能,可以出现在赋值号的左边,对其进行赋值rnrnrn//重载指针转换操作符,将Array类的对象名转换为T类型的指针rn//指向当前对象中的私有数组rn//因而可以像使用普通数组首地址一样使用Array类的对象名rnrntemplate rnArray::operator T*()constrnrn return alist;rnrnrn//取当前数组的大小rntemplate rnint Array::ListSize()constrn return size; rnrn//将数组大小修改为szrntemplate rnvoid Array::Resize(int sz)rnrn //检查是否sz<=0;rn if(sz<=0)rn Error(invalidArraySize);rn //如果指定的大小与原有大小一样,什么也不做rn if(sz == size) return ;rn //申请新的数组内存,并测试是否申请成功rn T* newlist = new T[sz];rn if(newlist == NULL)rn Error(memorryAllocationError);rn //将sz与size中较小的一个赋值给nrnrn int n = (sz<=size)?sz:size;rn //将原有数组中前n个元素赋值到新数组中rn T* srcptr = alist;rn T* destptr = newlist;rn while(n--) //逐个复制数组元素rn *destptr++ = *srcptr++;rn delete []alist;//删除原数组rn alist = newlist;//更新alistrn size = sz;//更新sizernrnrnvoid main()rnrn Array A(10);rn int n;rn int primecount =0,i,j;rnrn cout<<"Enter a value>=2 as upper limit for prime numbers:";rn cin>>n;rn A[primecount++] = 2;//2是第一个质数rnrn for(i = 3;i
代码错误,求指点。
[code=c]#includernclass Cpersonrnrnprivate:rn int m,y;rnpublic:rnrn Cperson(int yes)rn rn y=yes;rn rn int gety()rn rn return y;rn rn;rnmain()rnrn int n;rn Cperson one;rn Cperson(5);rn n=one.gety();rn cout<
缓冲区溢出错误,求指点
各位前辈:rn这两天写了个求圆心的程序,程序的结构是,写了一个类,类里面用一个成员函数是通过空间中的三个点求取圆心:rn类声明:rnclass CirClernrnpublic:rn double *CalCircleCenter(double *P0, double *P1, double *P2); rnprivate:rn double O[3]; //存储圆心坐标rn;rnrn成员函数定义:rndouble *CirCle::CalCircleCenter(double *a, double *b, double *c)rn rn double P[2][2],D[2];rn Eigen::MatrixXd A(3,3),B(3,3);rn Eigen::Vector3d v1,O1;rn P[0][0] = a[1]*b[2] - a[1]*c[2] - a[2]*b[1] + a[2]*c[1] + b[1]*c[2] - c[1]*b[2];rn P[0][1] = -a[0]*b[2] + a[0]*c[2] + a[2]*b[0] - a[2]*c[0] - b[0]*c[2] + c[0]*b[2];rn P[0][2] = a[0]*b[1] - a[0]*c[1] - a[1]*b[0] + a[1]*c[0] + b[0]*c[1] - c[0]*b[1];rn P[1][0] = 2 * (b[0] - a[0]);rn P[1][1] = 2 * (b[1] - a[1]);rn P[1][2] = 2 * (b[2] - a[2]);rn P[2][0] = 2 * (c[0] - a[0]);rn P[2][1] = 2 * (c[1] - a[1]);rn P[2][2]= 2 * (c[2] - a[2]);rn D[0] = -a[0]*b[1]*c[2] + a[0]*c[1]*b[2] + b[0]*a[1]*c[2] - c[0]*a[1]*b[2] - b[0]*c[1]*a[2] + c[0]*b[1]*a[2];rn D[1] = a[0] * a[0] + a[1] * a[1] + a[2] * a[2] - b[0] *b[0]- b[1] *b[1] - b[2] *b[2];rn D[2] = a[0] * a[0] + a[1] * a[1] + a[2] * a[2] - c[0] *c[0] - c[1]*c[1] - c[2] *c[2];rn A(0, 0) = P[0][0];rn A(0, 1) = P[0][1];rn A(0, 2) = P[0][2];rn A(1, 0) = P[1][0];rn A(1, 1) = P[1][1];rn A(1, 2) = P[1][2];rn A(2, 0) = P[2][0];rn A(2, 1) = P[2][1];rn A(2, 2) = P[2][2];rn v1(0) = D[0];rn v1(1) = D[1];rn v1(2) = D[2];rn B = -(A.inverse());rn O1= B*v1;rn cout << O1; //程序到这里没有问题rn O[0] = O1(0);rn O[1] = O1(1);rn O[2] = O1(2);rn //cout << O1(0)<
java错误,新人求指点。。。谢谢
Exception in thread "main" java.lang.NoClassDefFoundError: SimpleEditor (wrong nrname: book/gui/SimpleEditor)rn at java.lang.ClassLoader.defineClass1(Native Method)rn at java.lang.ClassLoader.defineClassCond(Unknown Source)rn at java.lang.ClassLoader.defineClass(Unknown Source)rn at java.security.SecureClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.defineClass(Unknown Source)rn at java.net.URLClassLoader.access$000(Unknown Source)rn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rnCould not find the main class: SimpleEditor. Program will exit.
数组 冒泡排序法输出错误,求修正
本来应该是0,1,2,3,4,5,6,7,8,9rn结果输出了一串排错的顺序9,8,4,2,0,0,7,5,6,1rnpublic class ShuZuMPpaixu rnrnpublic static void main(String[] args)rn rn int arr[]=0,4,8,7,9,5,2,3,6,1;rn arrprint(arr);rn arrMPpaixu(arr);rn arrprint(arr);rn rnpublic static void arrprint(int[] arr)rnrn for(int i=0;i
求 vs 2005 一个错误的修正方法
vs2005本来用的好好的。现在出现一个比较郁闷的问题,如果解决不了的话,估计我得手写代码。rn用2005添加类或者变量的时候出现这样一个错误:rnrn脚本错误:rn对象不支持该属性 或方法rnrnfile://F:\Program Files\Microsoft Visual Studio 8\VC\VCWizards\CodeWiz\MFC\Simple\HTML\1033\default.htmrnrn请教各位高手,如何解决。rn重装的方法就没有必要说了,我已经试过。
ASP中出现了运行时间错误,怎么修正?
ASP中出现了运行时间错误,类型不匹配,怎么修正?
3000XP错误修正
把这个文件解压覆盖到 C:\百威软件\百威3000XP商业管理系统(超市版)\bwpos
matlab7.0.1错误修正文档
matlab7.0.1虽然修复了无法启动的bug,不过启动后还是会有许多问题 解决方法如下: 在我的电脑-高级-环境变量里面添加 X:\MATLAB7\bin\win32\atlas_Athlon.dll 然后将 X:\MATLAB7\toolbox\ccslink\ccslink 目录下的info.xml替换 (原本的info.xml代码有少许问题)
数据库错误修正
今天早上启动数据,发现了一下错误。 java.sql.SQLException: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist 解释为ORACLE_HOME或者ORACLE_SID设置不正确。但检查bash_profile以后没有发现错误;錯誤點,沒有開啟oracle服務;解決辦...
DRC检查及修正错误
<span style="color:#212121;">由于每天都有很多很多的网友问我问题,有一些简单的问题,或者类型一样的问题,一个个回答台耗时间,通过这一套高质量的最新版本软件实战视频,可以帮助新手或者基础不好的朋友快速入门,快速理清一些设计的概念,希望大家多多关注志博PCB,我们会不定时上新。</span>
cdh安装及错误修正
我起初看的是cdh官方文档,经过摸索path-C所给的安装方法比较靠谱,不依赖网络,如果实在看不懂官方文档的可以参考下面这个视频连接。 http://www.56.com/w32/play_album-aid-14422115_vid-MTQxOTEyMDQ0.html path-C的安装文档 http://www.cloudera.com/documentation/enterpris
GDI错误修正了
错误修正了。rnrn问题:rn[url=http://topic.csdn.net/u/20110320/19/d9126c82-8734-4b1c-b0e5-dec0623675a7.html?50464][/url]rnrnrnrn修正前的照片:rnrnrn[img=http://hi.csdn.net/space-124729-do-album-picid-767828-goto-down.html][/img]rnrnrn修正后的图片:rnrn[img=http://topic.csdn.net/u/20110320/19/d9126c82-8734-4b1c-b0e5-dec0623675a7.html?50464][/img]
错误公式的修正
【学前声明】rn本课程不是简单的函数罗列和说明,而是通过一个个贴近工作的案例讲解函数的组合应用,并力图给大家思路上的启发;rn 【学后收获】rn学习本课程后,你不仅可以了解每一个函数的功能,还可以逐渐熟悉在遇到不同问题时函数的选择思路,丰富函数的使用技巧,进而提升自己的办公效率;
VC++6.0打开错误修正
VC++6.0打开错误修正!! VC++6.0打开错误修正!! 一用,马上就OK了!
Linux 时间错误的修正
Linux 时间错误的修正使用命令 ntpdate pool.ntp.org 如果 ntpdate命令未找到,则使用yum -y install ntp.x86_64 进行下载配置
ajaxFileUpload中的错误修正
jQuery.extend({ createUploadIframe: function(id, uri) { //create frame var frameId = 'jUploadFrame' + id; var iframeHtml = ' + frameId + '" name="' + fram
如何修正错误?
运行后网页总提示"错误!img未定义",请问该如何修改阿?我是菜鸟,别吐口水哦!rn rn
AXMLPrinter2错误修正版本
解决AXMLPrinter2反编译的时候报错问题。 java.lang.ArrayIndexOutOfBoundsException: 128 at android.content.res.StringBlock.getShort(StringBlock.java:231) at android.content.res.StringBlock.getString(StringBlock.java:91) at android.content.res.AXmlResourceParser.getName(AXmlResourceParser.java:140) at test.AXMLPrinter.main(AXMLPrinter.java:56)
sendip-2.5.tar.bz2 (安装过程错误修正)
linux下 灵活的发包工具 对安装过程中可能出现的错误进行了源码修改
php-excel-reader 修正错误警告
pdfReader, 因为版本久远,修正提示的一些警告,可以正常显示excel
一些部署错误的修正
开发中遇到的一些部署问题
ubuntu 错误修正
ubuntu 16.04出现软件中心闪退现象首先ubuntu的software-center是可以卸载和重装的对此情况重装就好了。2.关于有些软件安装失败的问题,这个问题得具体分析,有种是从某种源取回失败的错误,这很可能是因为其他需要添加了 ppa而后这种ppa因为非官方导致失败,这时只要删除失败的ppa 就可以了sudo add-apt-repository -r ppa:xxxx
算法代码错误修正
<p>rn <br />rn</p>rn<p>rn <p>rn <p>rn 20周年限定:唐宇迪老师一卡通!<span style="color:#337FE5;">可学唐宇迪博士全部课程</span>,仅售799元(原价10374元),<span style="color:#E53333;">还送漫威正版授权机械键盘+CSDN 20周年限量版T恤+智能编程助手!</span>rn </p>rn <p>rn 点此链接购买:rn </p>rn <table>rn <tbody>rn <tr>rn <td>rn <span style="color:#337FE5;"><a href="https://edu.csdn.net/topic/teachercard?utm_source=jsk20xqy" target="_blank">https://edu.csdn.net/topic/teachercard?utm_source=jsk20xqy</a><br />rn</span>rn </td>rn </tr>rn </tbody>rn </table>rn </p>rn</p>rn购买课程后,请扫码进入学习群,获取唐宇迪老师答疑rn<p>rn <br />rn</p>rn<p>rn <img src="https://img-bss.csdn.net/201908070536506163.jpg" alt="" /> rn</p>rn<p>rn Python<span>机器学习实训营(原理推导</span><span>+</span><span>代码复现</span><span>+</span><span>实验分析)</span><span>课程</span><span>旨在帮助同学们在机器学习领域打下坚实基础。课程注重算法原理讲解与数学公式推导并基于</span>Python<span>语言给出完整的代码实现,从零开始实现每一模块功能(非调用工具包)通过代码实例演示算法工作流程与实现方法,基于案例进行实验分析,算法涉及核心知识点全方位解读。整体风格通俗易懂,</span>建议同学们在学习过程中先掌握算法原理,基于数学推导公式进行代码复现与实战演练。课程提供全部课程所需PPT,数据,代码。rn</p>
java乱码问题怎么解决,求指点
具体出现的情况就是,在别人电脑上考的,到我这里就乱了如图![图片说明](https://img-ask.csdn.net/upload/201703/03/1488531174_992162.png)
java 泛型怎么那么奇怪? 求指点
java 泛型不太懂 rn比如:rn[code=java]rnpublic void func() rn[/code]rn这里 既然都 void 了, 为什么还要 rn为什么不是 rn[code=java]public void func() [/code]rn还有rn[code=java]rnpublic T naiveCast(T t, Object o) rn return (T) o; rnrn[/code]rn这里的 T 甚是疑惑 要么 或者 T 即可. 如:rn[code=java]rnpublic naiveCast(T t, Object o) rn return (T)o;rnrn[/code]或rn[code=java]rnpublic T naiveCast(T t, Object o) rn return (T)o;rnrn[/code]rnrn热心人指点一下.rn有关java泛型易错需要注意的地方也帮忙指出来, 谢谢!
php 错误 ,求大神指点
[code=php]rnpm.max_children = 100rnrn; The number of child processes created on startup.rn; Note: Used only when pm is set to 'dynamic'rn; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2rnpm.start_servers = 64rn[/code]rn这是php-fpm的配置rnrn这是报的错误提示rn[code=php]rn[09-Sep-2013 18:34:08] NOTICE: [pool www] child 17687 exited with code 0 after 946.277592 seconds from startrn[09-Sep-2013 18:34:08] NOTICE: [pool www] child 17863 startedrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17695 exited with code 0 after 943.633570 seconds from startrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17864 startedrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17680 exited with code 0 after 951.201460 seconds from startrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17865 startedrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17688 exited with code 0 after 947.766371 seconds from startrn[09-Sep-2013 18:34:10] NOTICE: [pool www] child 17866 startedrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17684 exited with code 0 after 950.690947 seconds from startrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17867 startedrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17699 exited with code 0 after 944.328420 seconds from startrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17868 startedrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17691 exited with code 0 after 947.741519 seconds from startrn[09-Sep-2013 18:34:12] NOTICE: [pool www] child 17869 startedrn[09-Sep-2013 18:34:13] NOTICE: [pool www] child 17692 exited with code 0 after 947.166478 seconds from startrn[09-Sep-2013 18:34:13] NOTICE: [pool www] child 17870 startedrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17681 exited with code 0 after 955.295629 seconds from startrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17872 startedrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17694 exited with code 0 after 949.284417 seconds from startrn[09-Sep-2013 18:34:15] NOTICE: [pool www] child 17873 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17703 exited with code 0 after 946.927298 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17874 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17690 exited with code 0 after 952.074412 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17875 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17685 exited with code 0 after 954.224209 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17876 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17700 exited with code 0 after 948.412473 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17877 startedrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17682 exited with code 0 after 956.122602 seconds from startrn[09-Sep-2013 18:34:16] NOTICE: [pool www] child 17878 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17697 exited with code 0 after 950.541924 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17879 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17696 exited with code 0 after 951.072985 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17880 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17704 exited with code 0 after 948.670996 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17881 startedrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17710 exited with code 0 after 946.850688 seconds from startrn[09-Sep-2013 18:34:17] NOTICE: [pool www] child 17882 startedrn[/code]
408/409 错误 求指点!
访问在部署在websphere中的一个项目,出现如下错误,不知是何原因,还望指点!rnrn目前网页不可用 rn由于当前访问量很大,您要查看的页现在不能传送。 rn--------------------------------------------------------------------------------rnrn单击刷新按钮,或以后再试。rnHTTP 错误 408 / 409 - 无法接受 / 资源冲突 rnInternet Explorer rn
求指点一个错误的地方
CREATE PROCEDURE gc_yyhzrn @tj int, --判断查询rn @cxsql nvarchar(200) --查询语句rnASrn BEGINrn IF (@tj>=3)rn BEGINrn select dt.DeptNo, --部门编号rn dt.DeptName, --部门名称rn COUNT(Xf.hrCode) as xfcont, --消费笔数rn COUNT(DISTINCT Xf.hrCode) as xfrs, --消费人数rn Convert(decimal(18,2),SUM( ISNULL(Xf.smm1,0)/100.0*-1)) as grxf, --个人钱包扣款/累计钱包扣款rn Convert(decimal(18,2),SUM( ISNULL(Xf.smm2,0)/100.0*-1)) as btxf, --补贴钱包扣款 rn Convert(decimal(18,2),SUM(ISNULL(Xf.smm1+Xf.smm2,0)/100.0*-1)) as hj, --合计消费rn Xf.recdt --日期时间rn from fs_dept as dt rn left join VWpersonal as vp rn on rn dt.DeptNo=vp.DeptNorn left join xfsourceRec as xf rn on rn vp.emCode=xf.hrCode where @cxsqlrn group by rn dt.DeptNo,dt.DeptName,Xf.recdtrn ENDrn IF (@tj=4)rn BEGINrn select * from VWpersonalrn ENDrn rn ENDrnrnrn这句 where @cxsql 我想传一个查询字符串进去,比如 名字等于什么,加日期等于什么,类似这样,如何写,我现在写语法错rnrn
求大神指点:cudaError_enum的错误
[color=#FF0000]出错信息:[/color]“test.exe”: 已加载“D:\HealthWay\FDKdll\Debug\test.exe”,已加载符号。rn“test.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”rn“test.exe”: 已加载“D:\HealthWay\FDKdll\Debug\FDK.dll”,已加载符号。rn“test.exe”: 已加载“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.2\bin\cudart32_42_9.dll”,未使用调试信息生成二进制文件。rn“test.exe”: 已加载“D:\HealthWay\FDKdll\Debug\cufft32_42_9.dll”,[color=#0000FF]未使用调试信息生成二进制文件[/color]。rn“test.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.30729.1_none_bb1f6aa1308c35eb\msvcr90d.dll”,已加载符号。rn“test.exe”: 已加载“C:\Windows\SysWOW64\apphelp.dll”rn“test.exe”: 已加载“C:\Windows\AppPatch\AcLayers.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\sspicli.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\msvcrt.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\rpcrt4.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\cryptbase.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\sechost.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\user32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\gdi32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\lpk.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\usp10.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\advapi32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\shell32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\shlwapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\ole32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\oleaut32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\userenv.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\profapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\winspool.drv”rn“test.exe”: 已加载“C:\Windows\SysWOW64\mpr.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\imm32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\msctf.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\nvcuda.dll”,未使用调试信息生成二进制文件。rn“test.exe”: 已加载“C:\Windows\SysWOW64\setupapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\cfgmgr32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\devobj.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\ws2_32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\nsi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\dwmapi.dll”rn“test.exe”: 已卸载“C:\Windows\SysWOW64\dwmapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\nvapi.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\version.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\wintrust.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\crypt32.dll”rn“test.exe”: 已加载“C:\Windows\SysWOW64\msasn1.dll”rntest.exe 中的 0x753eb9bc 处最可能的异常: Microsoft C++ 异常: 内存位置 0x001ff388 处的 cudaError_enum。rntest.exe 中的 0x753eb9bc 处最可能的异常: Microsoft C++ 异常: 内存位置 0x001ff314 处的 cudaError_enum。rntest.exe 中的 0x040956a1 处最可能的异常: 0xC0000005: 读取位置 0xbaadf00d 时发生访问冲突rntest.exe 中的 0x777915de 处未处理的异常: 0xC0000005: 读取位置 0xbaadf00d 时发生访问冲突rnrn[color=#FF0000]出错语句:cufftPlan1d(&plan, filterlength, CUFFT_C2C, prjParam->iPrjX);[/color]rnrnrn[color=#FF0000]部分源代码:[/color]rnvoid runFDK(int NumofScan, int totScan, const ProjParameter *prjParam, float voxelsize, int reconSize, float* d_filter, int filterlength, unsigned short* d_bk, unsigned short* d_img, rn cufftComplex* d_data, float* d_filterImg, cudaArray *filteredImg,cudaPitchedPtr devPitchedPtr, cudaExtent extent, const CalibParameter *calib)rnrn //初始化复数投影,同时补零rn CUDA_SAFE_CALL(cudaMemset(d_data,0,sizeof(cufftComplex) * (prjParam->iPrjX) * filterlength));rnrn //GPU上投影预修正、重排rn dim3 threads(16, 16);rn dim3 grid(96, 120); rn preprocessKernel<<< grid, threads >>>(d_bk,d_img,d_data,calib,filterlength, (prjParam->iPrjX));rn cudaThreadSynchronize();rnrn //傅里叶变换rn cufftHandle plan;rn cufftPlan1d(&plan, filterlength, CUFFT_C2C, prjParam->iPrjX);rn rn //cufftExecC2C(plan, d_data, d_data,CUFFT_FORWARD);rnrn
pascal错误,求高手指点
rnrn[img=https://img-bbs.csdn.net/upload/201705/30/1496156488_962329.jpg][/img]rn出现错误:p55-repeat.pas(126,24) Error: Incompatible types: got "Extended" expected "LongInt"
ORA-01733 错误,求高手指点
写存储过程时建立了一个视图,现在需要根据视图中的列名 更新某列的数据并保存,怎么实现?
求大神指点上传图片错误
Microsoft VBScript 编译器错误 '800a0400' rnrn缺少语句 rnrn\web\ZhiEditor\upload_json.asp, line 2 rnrnrnrn--------------------------------------------------------------------------------rnHost by NetBox Version 2.8 Build 4128rnrnrnrnweb\ZhiEditor\upload_json.asp如下rn<%@ CODEPAGE=65001 %>rn<% Option Explicit %>rn<% Response.CodePage=65001 %>rn<% Response.Charset="UTF-8" %>rnrnrn<%rnDim aspUrl, savePath, saveUrl, maxSize, fileName, fileExt, newFileName, filePath, fileUrl, dirNamernDim extStr, imageExtStr, flashExtStr, mediaExtStr, fileExtStrrnDim upload, file, fso, ranNum, hash, ymd, mm, dd, resultrnrnaspUrl = Request.ServerVariables("SCRIPT_NAME")rnaspUrl = left(aspUrl, InStrRev(aspUrl, "/"))rnrn'文件保存目录路径rnsavePath = "../upload/"rn'文件保存目录URLrnsaveUrl = aspUrl & "../upload/"rn'定义允许上传的文件扩展名rnimageExtStr = "gif|jpg|jpeg|png|bmp"rnflashExtStr = "swf|flv"rnmediaExtStr = "swf|flv|mp3|wav|wma|wmv|mid|avi|mpg|asf|rm|rmvb"rnfileExtStr = "doc|docx|xls|xlsx|ppt|htm|html|txt|zip|rar|gz|bz2"rn'最大文件大小rnmaxSize = 5 * 1024 * 1024 '5MrnrnSet fso = Server.CreateObject("Scripting.FileSystemObject")rnIf Not fso.FolderExists(Server.mappath(savePath)) Thenrn showError("上传目录不存在。")rnEnd IfrnrndirName = Request.QueryString("dir")rnIf isEmpty(dirName) Thenrn dirName = "image"rnEnd IfrnIf instr(lcase("image,flash,media,file"), dirName) < 1 Thenrn showError("目录名不正确。")rnEnd IfrnrnSelect Case dirNamern Case "flash" extStr = flashExtStrrn Case "media" extStr = mediaExtStrrn Case "file" extStr = fileExtStrrn Case Else extStr = imageExtStrrnEnd Selectrnrnset upload = new AnUpLoadrnupload.Exe = extStrrnupload.MaxSize = maxSizernupload.GetData()rnif upload.ErrorID>0 then rn showError(upload.Description)rnend ifrnrn'创建文件夹rnsavePath = savePath & dirName & "/"rnsaveUrl = saveUrl & dirName & "/"rnIf Not fso.FolderExists(Server.mappath(savePath)) Thenrn fso.CreateFolder(Server.mappath(savePath))rnEnd Ifrnmm = month(now)rnIf mm < 10 Thenrn mm = "0" & mmrnEnd Ifrndd = day(now)rnIf dd < 10 Thenrn dd = "0" & ddrnEnd Ifrnymd = year(now) & mm & ddrnsavePath = savePath & ymd & "/"rnsaveUrl = saveUrl & ymd & "/"rnIf Not fso.FolderExists(Server.mappath(savePath)) Thenrn fso.CreateFolder(Server.mappath(savePath))rnEnd Ifrnrnset file = upload.files("imgFile")rnif file is nothing thenrn showError("请选择文件。")rnend ifrnrnset result = file.saveToFile(savePath, 0, true)rnif result.error thenrn showError(file.Exception)rnend ifrnrnfilePath = Server.mappath(savePath & file.filename)rnfileUrl = saveUrl & file.filenamernrnSet upload = nothingrnSet file = nothingrnrnIf Not fso.FileExists(filePath) Thenrn showError("上传文件失败。")rnEnd IfrnrnResponse.AddHeader "Content-Type", "text/html; charset=UTF-8"rnSet hash = jsObject()rnhash("error") = 0rnhash("url") = fileUrlrnhash.FlushrnResponse.EndrnrnFunction showError(message)rn Response.AddHeader "Content-Type", "text/html; charset=UTF-8"rn Dim hashrn Set hash = jsObject()rn hash("error") = 1rn hash("message") = messagern hash.Flushrn Response.EndrnEnd Functionrn%>rn
相关热词 c# 线程顺序 c#昨天当前时间 c# 多进程 锁 c#mysql图片存取 c# ocx 委托事件 c# 读取类的属性和值 c# out 使用限制 c#获取url的id c#怎么进行分页查询 c# update 集合