Arrays in Family class Programming Software Development by Achupa …, mother (both Adult) and Child[] which is an array of chidren. The problem is in the main method: [code] Child[] children… Java to C++ help Programming Software Development by Izarian … is a Number as a return type, each of its chidren return a different type (int, double, float etc). Also have… Using GET function to link two pages Programming Web Development by Octavian_1 … among other the following fields CREATE TABLE IF NOT EXISTS `chidren` ( `ChildID` int(11) NOT NULL AUTO_INCREMENT, `EmployeeID` int(11) DEFAULT… Re: Whacko Jacko? Community Center by server_crash …'s no doubt in my mind that he did molest chidren...But that means nothing. The prosecution was terrible in this… Re: Word Change Game Community Center Geeks' Lounge by ~s.o.s~ MANY schools work with any chidren Re: Word Change Game Community Center Geeks' Lounge by roryt MY schools work with any chidren Re: URGNT HELP!!create a tree(simple m-ary),each node having MAX 4 dataitems & 5 children Programming Software Development by simmi... Node-1 with 5 chidren nodes node2 node3 node4 node5 node6........... Node-1 contains 4 … Re: how to fetch array data from one table and insert into another table in php Programming Web Development by alan.davies …(1)->children(0)->plaintext ); //pages $data[] = $html->chidren(1)->children(1)->plaintext; } $html->clear(); unset… Re: how to fetch array data from one table and insert into another table in php Programming Web Development by Gurjit_2 … error `Fatal error: Uncaught Error: Call to undefined method simple_html_dom_node::chidren() in /var/www/parser16.php:26 Stack trace: #0 /var… Re: how to fetch array data from one table and insert into another table in php Programming Web Development by alan.davies …'s a new "flatten" function. Also a typo *chidren* to *children* And the DOI link should have the children… Re: Arrays in Family class Programming Software Development by ~s.o.s~ Whenever in need of a sane string representation of your instance, override the [ICODE]toString()[/ICODE] method for the given class. This makes sure that each class is responsible for giving out its own representation without having to write the same temporary code again and again. For pretty printing arrays, convert them first to a list using [… Re: Arrays in Family class Programming Software Development by Achupa [QUOTE=~s.o.s~;722328]Whenever in need of a sane string representation of your instance, override the [ICODE]toString()[/ICODE] method for the given class. This makes sure that each class is responsible for giving out its own representation without having to write the same temporary code again and again. For pretty printing arrays, convert them … Re: Arrays in Family class Programming Software Development by ~s.o.s~ > aah! its seems we're not communicating! You are complicating the code further Yes, rightly said, because it is what you asked for in the first place. Re-read your first post: [quote]any help on how to modify the code so that it can print out all the family members. [/quote] > NOTE: Other sections have no problem except this array … Re: Arrays in Family class Programming Software Development by stultuske [QUOTE=Achupa;722373] to get an output like this: Movie goers: [John , Mary, Frank, Lisa] as in the names of Adult and Child given.[/QUOTE] your code works and does exactly what you programmed it to do. just as ~s.o.s~ pointed out, whenever you try to print an Object or a list of Objects, you'll call the toString method of the class. … Re: Arrays in Family class Programming Software Development by Achupa thanks, i've corrected it. I have another problem with a List in a class called Mammal. The code is like this: [code] import java.util.*; public abstract class Mammal { Head head; char gender; public String name; protected int age = 0; private List <Limb> limbs; String myArm,myLeg; protected Mammal()… Re: Arrays in Family class Programming Software Development by ~s.o.s~ Use the [icode]addAll[/icode] method of the [icode]ArrayList[/icode] class; it's a good idea to consult the documentation once in a while, at least for the classes which you plan on using. Re: Arrays in Family class Programming Software Development by Achupa Looking at my code, is this comment true: [B] You have not instatiated the limbs list, how can you then call its add() method - You are trying to cast a List into a Limb. this cant work.[/B] and if so how can I correct it. Re: Arrays in Family class Programming Software Development by ~s.o.s~ > - You are trying to cast a List into a Limb. this cant work. Yes, it's true; look at my previous post for the answer. > You have not instatiated the limbs list, how can you then call its add() method This comment seems weird since you have instantiated the `[ICODE]limbs[/ICODE]' list in the [ICODE]Mammal [/ICODE]constructor. BTW… Re: Java to C++ help Programming Software Development by StuXYZ Have a look at the boost::any class. [URL="http://www.boost.org/doc/libs/1_41_0/doc/html/any.html"]http://www.boost.org/doc/libs/1_41_0/doc/html/any.html[/URL] If you combine it with some of the typelist ideas in the boost::mpl then you can basically do what you want. The downside is that this style of programming often looses type… Re: Java to C++ help Programming Software Development by Izarian I am trying to stay away from Boost if possible, and use the built in typical standard libraries. Is there not a way to do it with templates and the like? It's been a while since I had to do any template wrangling, but I will head to boost as a last resort if I can just yank out the few headers that are needed and not have to install it onto the … Re: Java to C++ help Programming Software Development by Izarian Oh I probably should mention, this code will get ported to Solaris 8, so trying to minimize anything that might not port well. Re: Using GET function to link two pages Programming Web Development by LastMitch >I have a login scrip (downloaded from the internet) that I have adapted to my database. I However have a problem with linking from the login to a page in my system with details of the user that has logged in. **@Octavian_1** Where did you get the code? It's not that hard to learn mysqli. It seems you are making this harder than it looks. … Re: Using GET function to link two pages Programming Web Development by Octavian_1 Sure enought I have found a way out (of course after going through several web pages). I agree it is easy to learn but the difficulty is which books and when you are in the third world as i am the options really narrow down $query = "SELECT * FROM holder WHERE EmployeeID = :employeeID;"; // Construct the query. $statement = $db…