Re: Kruskal algorythm.



On 10 Gen, 02:48, Lew <no...@xxxxxxxxxxxxx> wrote:
noaco wrote:
[I]'m developing with eclipse, and [I] don't understand for example why,
if [I] try to instance asdlab.libreria.Grafi.GrafoLA graph = new
asdlab.libreria.Grafi.GrafoLA which should be a class gives me an
error.
Syntax error on token(s), misplaced construct(s).

Sounds like you didn't include the parentheses, or else didn't make the
statement inside the correct set of curly braces.  WSithout the context of the
source code or the exact, complete error message, it's hard to be certain..

The error message should have come with a little circumflex pointer (^)
indicating which token gave it trouble.

public abstract class Nodo implements Rif{
public Object info;
public Nodo(object info { this.info = info; }

This line is not syntactically correct.  Spelling and punctuation ('Object',
parentheses) count.

public abstract Object contenitore();*
}

When you post code, please indent it properly for readability.  Two, maybe up
to four, spaces per indent level makes the code on Usenet much easier to
understand for those who wish to help.

Member variables usually should not be 'public', but 'private' and accessed
through "accessor" ('getInfo()') and "mutator" ('setInfo()') methods.

--
Lew

This is the code.

public class principale {


asdlab.libreria.Grafi.GrafoLA graf = new
asdlab.libreria.Grafi.GrafoLA;


public static void main(String[] args) {

}


}

My libraries are jar files included through the referenced libraries
method.
public Nodo(object info { this.info = info; } was as a matter of fact
public Nodo(object info) { this.info = info; }.
So, to create the Graph, should i instance first nodes and edges or it
inherits it?
eh ok.
Thanks.
Bye.
Ciao.
Andrea.
.



Relevant Pages

  • Re: installing BLT 2.4z
    ... > even get the actual error message down. ... graph appear in blue, but I can't roll over a point and have ... barchart1.tcl - crashes, instruction 0x1004ab96 referenced memory ... barchart2.tcl - fails, invalid command name, ".header.stacked" ...
    (comp.lang.tcl)
  • Re: AVStream Driver filter: GraphEdt initiating stop
    ... seconds and then the graph edt application initiates a stop operation. ... Catastrophic failure ... Under what situation does the graphedit gives such a error message and stops ... error received on an input pin write or output pin read. ...
    (microsoft.public.development.device.drivers)
  • persistent "invalid reference" error message
    ... This is in Excel 2007. ... So I have this embedded graph that I'm updating using VB. ... the error message seems to persist after I think I've gotten ... I save my workbook and invalid reference. ...
    (microsoft.public.excel)
  • question about importing txt file into matlab
    ... I am trying to make a routine that reads multiple files containing numbers and plot a graph based on that. ... string= sprintf('Enter filename %2f',p(i)); ... I got an error message: ...
    (comp.soft-sys.matlab)