Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 23 results for
chidren
- Page 1
Arrays in Family class
Programming
Software Development
15 Years Ago
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
14 Years Ago
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
10 Years Ago
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
18 Years Ago
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
17 Years Ago
by ~s.o.s~
MANY schools work with any
chidren
Re: Word Change Game
Community Center
Geeks' Lounge
17 Years Ago
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
13 Years Ago
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
5 Years Ago
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
5 Years Ago
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
5 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
15 Years Ago
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
14 Years Ago
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
14 Years Ago
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
14 Years Ago
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
10 Years Ago
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
10 Years Ago
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…
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC