Trouble with array of linked_list elements
by Creative Bachkhoa (modified: 2009 Nov 11)
I represent an adjacency list of graph G(V,E).
The compile said "expression cannot be used as instruction" at the stage "create adj_list[i].make " Does it make sense? Can anybody help me fix it?
You should ask your question to http://groups.eiffel.com.
The issue here is that you need to create an entity and then assign it to the array.
adj_list [i] := create {LINKED_LIST [INTEGER]}.make
thanks, it works well.