Giuseppe Di Guglielmo wrote: > Dear all, > the function > > print_obj(Obj) :- dim(Obj, [N]), ( for(J,1,N), param(Obj) do Ob is Obj[J], > printf("%1d", Ob) ), nl. > > permits to print on console the values of an array. How can I append all > this value to create a EC_word? > > Best regards, > Giuseppe > > ---------------------------------------------------------------------------- > Giuseppe Di Guglielmo Dept. of Computer Science - University of > Verona > Strada le Grazie, 15 - 37134 Verona - Italy > > Phone Office: +39 045 8027049 Fax: +39 045 8027068 > Phone Home: +39 045 6152251 Mobile: +39 347 0493371 > > WWW: http://profs.sci.univr.it/~diguglielmo > > email: giuseppe.diguglielmo_at_univr.it > email: diguglielmo_at_certess.com Skype: giuseppe.diguglielmo > Hi Giuseppe, I am not quite sure what you are asking. An array is simply a structure (the array notation just allow structures to be used more like conventional array syntax), and you can pass a structure to your C++ as an EC_word. You don't need to construct it if the structure already exist in ECLiPSe. Cheers, Kish -- This e-mail may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply e-mail and delete all copies of this message. Cisco Systems Limited (Company Number: 02558939), is registered in England and Wales with its registered office at 1 Callaghan Square, Cardiff, South Glamorgan CF10 5BT.Received on Fri Oct 17 2008 - 02:47:59 CEST
This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET