class phpParser{ public $pageString; //some other properties and methods class software{ private $baseName; private $url; private $html; public initiateValues (){ $this->html = new phpParser (); } } // Now how to access properties and methods of phpParser class through software class member $html (which is actually object // of phpParser class). I think i should be something like this $mySoftware = new software(); $mySoftware->html->pageString; //this not work how i access please help me please urgently i am pending my work untill you //guys answer me

Member Avatar
Member Avatar
+0 forum 5

write a template for a function called total . the function should keep a running total of values entered by the user , then return the total . the argument sent into the function should be the number of values the function is to read . Test the template in a simple driver program that sends valuse of various types as arguments and displays the results

Member Avatar
+0 forum 0

Does anybody know where I can find a c++ object oriented library for my c++ project where in short I can set each pixel on each frame to a specified color and saving the result to a .avi file preferably compressed. I know this sounds simple in theory but I have googled not just for avi but for many codecs and found nothing. Anybody with greater knowledge know where I can find such a library?

Member Avatar
Member Avatar
+0 forum 1

If my goal is to consider f1 and f2 to hold the numerator and denominator of two fractions and multiply f1(9,8) by f2(2,3). i don't understand how to write the MultipliedBy function if I only have two member variables in the class it's self. I feel like i'm just missing something. Does MulitplyedBy get passes f1 and f2? does it need 4 arguments ? int main() { fraction f1(9,8); fraction f2(2,3); fraction result; cout << "The result starts off at "; result.print(); cout << endl; cout << "The product of "; f1.print(); cout << " and "; f2.print(); cout << …

Member Avatar
Member Avatar
+0 forum 11

hi!guys i am very glade to told you that you guys must learn java programing language because i think aproximate one billion devices are running java...so first of all i recommeded you that you guys get the "The complete Java reference book 2"it is the best book for you guys believe me and if you guys take some interest in java you have a greate future .. thanks you guys ask me questions or whatever i help you thanks..............

Member Avatar
Member Avatar
-3 forum 7

Hello, I am new in trying to figure out how to use two classes together. One class is called circle, and is supposed to hold attributes of radius and area. It is also supposed to have the methods of print and computeArea. public class Circle { //global data private double radius; private double area; //constructor /** * <pre> * Description: This is a constructor * * Pre: None * * Post: Creates an object of type circle * </pre> */ public Circle() { } //work methods /** * <pre> * Description: This computes the area * * Pre: None * …

Member Avatar
Member Avatar
+0 forum 4

any one help me???????????????????????????????? how to convert text file to kml file using java???

Member Avatar
Member Avatar
+0 forum 1

I have created a basic object oriented database of a list of shoes containing the shoe name, number and shoe size. I am trying to sort the list of shoes alphabetially by name and by shoe size. I have the following code: Shoes.h: #include <iostream> #include <fstream> #include <string> #ifndef Shoes_Shoes_h #define Shoes_Shoes_h using namespace std; class Shoe { public: //Constructors Shoe(); Shoe(string Name_, double ShoeSize_, int Number_); //Destructor ~Shoe(); //Getters string getName() const; double getShoeSize() const; int getNumber() const; //Setters void setName(const string Name_); void setShoeSize(const double ShoeSize_); void setNumber(const int Number_); //Variables string Name; double ShoeSize; int Number; …

Member Avatar
Member Avatar
+0 forum 13

I am trying to create a function which adds an array to another array and replaces the data in the 1st array with the new data. For example, A=A+B. However, when I write my code as below, I get the error C2676:binary '[' : 'const Matrix' does not define this operator or a conversion to a type acceptable to the predefined operator. void Matrix::add(const Matrix&m){ for(int i=0; i<9; i++){ data[i]=data[i]+m[i]; } } Thanks in advanced for the help!

Member Avatar
Member Avatar
+0 forum 2

Hi. I am a very beginner at Java. I am taking an online course on Java and I'm stuck on an assignment. Anyone who is good with Java, can you please take a look at my code? This assignment was due yesterday but I couldn't finish it. It is very unfinished, but I'm not sure how to continue because I'm still not familiar with the concept of object oriented programming (getters, setters, constructors, etc). Could anyone please explain more object oriented programming to me? Also what do getters and setters do? And can you give me an example of using …

Member Avatar
Member Avatar
+0 forum 4

This code is supposed to respond on (w,s,a,d and q) key press..... On "w" the character ( actually the $ sign ) should move up similarly s =down , a is for left and d to move right.......... and 'q' is to quit!! Sometimes on a very few (beginning key presses) the character responds as it has to !!! then some kind of malfunctioning starts ... and $$$$$$$$$$$$$$$$$$$$ are constintly streamed on the console (it doesn't erases da old 1 in dis case) extract and add these files to a project and execute! I'm using Visual c++

Member Avatar
+0 forum 0

I need help with this code Constructer is abnormally called again n again.... add these file 2 a project n run ...i've given given constant messages in da code to explain the problem! Hit (1) two tyms i.e GetInput function in da menu.... u'll get 2 knw wat da problem is... i've created an array of objects ....n when i jump 2 da next index da values of old index's r chenged to da default values ( da values assinged in constructer)!!!! i've attached the files of prject...!

Member Avatar
Member Avatar
+0 forum 2

I need help with this code Constructer is abnormally called again n again.... add these file 2 a project n run ...i've given given constant messages in da code to explain the problem! Hit (1) two tyms i.e GetInput function in da menu.... u'll get 2 knw wat da problem is... i've created an array of objects ....n when i jump 2 da next index da values of old index's r chenged to da default values ( da values assinged in constructer)!!!! i've attached the files of prject...!

Member Avatar
Member Avatar
+0 forum 3

Hi, I am trying to make a round corners script in object oriented programming method. This is purely for learning purposes. The script is no where near complete but I am already having problems with it. I am trying out the techniques described in 'David Flanagan ' text book 'JavaScript: The Definitive Guide, 5th Edition' This code is called from html page which once working will place a round container around element [COLOR="green"]*******Additional information**********[/COLOR] The selector parameter in Custom_rounded_container function is defined because only the else part of the if statement in Custom_rounded_container is executing. I put this in because …

Member Avatar
Member Avatar
+0 forum 1

I need to link an access database to my visual vasic express 2008 class i have made (as been set an object orientated project) but am struggling to link the database and get it to show the information from the database through the class to the product form. I'll attach what code i have done (i have 2 different lots as one i tried to follow another one on the internet, but just ended up confusing myself (as im a fairly basic amateur)) The one i have tried myself looks as follows: [code] Public Class clsItems Dim cn As New …

Member Avatar
Member Avatar
+0 forum 2

Hi, Say i have 2 functions with same name and same parameters but different return type, then would that be functions following function overloading concept? Kindly give me a reference of the same..

Member Avatar
Member Avatar
+0 forum 1

Hi, my goal is to implement a program (in OO style) for cruise booking system that can accept and maintain customers’ reservation. Whenever a customer visits, that program should show him/her the current availablility of cabins. A customer can choose any available cabin with specified level (0 – 2, down to up), row (0-3, left to right) and cabin number (0-12, front to back). Once a cabin is reserved, it should be marked as unavailable. My program should be able to read from a text file with the information of cabin distribution and availability. It should be able to save …

Member Avatar
Member Avatar
+0 forum 12

Hello all, I have a question about coupling C++ classes to a GUI, in a nice Object Oriented solution. The problem is as follows: I have designed a GUI application in a separate class Gui for instance, in a other source file I designed a hierarchical statemachine for my GUI application. Now has my Gui class a serial port interface object in it as pointer member, when data is received by the serial port a event is raised and a function is called. This function calls the statemachine, but in the statemachine I want to make changes in the Gui …

Member Avatar
Member Avatar
+0 forum 5

Hey guys, I have started java for a uni class. I am now using object oriented programming. I have taken vb so i know what functions/methods are. however i am having a hard time coding some programs for an assignment. I will try to make this thread as descriptive as possible so you can help me better. The text book i am using is murach's java se 6. its a pretty good book, but i am lost in this object oriented and methods part. i do not know how to have user input from one class passed through to another …

Member Avatar
Member Avatar
+0 forum 5

The End.