Hello, my question is this.
In C++, how do i call a method member of class A from a class B, using a pointer.
By the way Class A and B are of different types.
I read that when a pointer is pointing to member function it can only point member functions within the class. But how can i point to a member function outside the class.?????
for example
class A...
Search Result
Collapse
44 results in 0.0049 seconds.
Keywords
Members
Tags
-
pointing a variable to a member function outside a class
-
I cannot access class inside ASP.NET Web Application !
I cannot access class inside ASP.NET Web Application
a few seconds ago|LINK
Hello,
I start to created a new ASP.NET Web Application with VS 2005.
I created a sperate folder called "Classes" where I created my first class "CContact".
Then, I added a page "default.as px" in order to display First name & Last name.
Unfortunately, I cannot... -
objects not working right: attribute error
I am completely stuck and am looking for guidance. I am creating my own version of the sets class, making the class called Set. I have created a test function as well. Everything works great until I get to the union/subtract part.
Code:def intersection(self,set2): self.inter=Set([]) for i in self.elements: for j in set2.elements: if i == j: self.inter
-
Class Module to Handle Opening Forms Hierarchically
Overview
This article shows how to set up and use a Class Module, as well as, more specifically, how to open forms such that they appear as a hierachical menu structure. Form A opens Form B and, while Form B is still open, remains hidden from view. As and when Form B terminates, Form A comes back into view and reassumes the focus.
The code for classForm below includes examples of setting class properties as well as various...Last edited by NeoPa; Sep 27 '11, 02:52 PM. -
why doesn't my jquery work on my paypal button ?
i have a form that should be posted to a payments page, it worked fine untill i desided to add some error checking to it using jquery...
if i get rid of the class on the submit button (ValidateForm)
it works but obviously doesn't do the error checking...
[code=php]
<form id="contactForm " class="paypal" action="paypal/payments.php" method="post">
... -
How To Create/Declare Global Variable/s in VB.Net (Web Forms)
Hi all,
I am a newbie in VB.Net and was kind of lost in programming using it compared to the old VB6.
In VB6 I was able to create, declare or assign values to global variables. But now, it seems that every variable should be included in some class (I'm not sure).
What I need to do is to have some global variables and use them to different web pages without using the classes. What I mean is I do not like to use... -
passing a menustrip as class
i am developing a from application with multiple forms. i need a menustrip with various functions and all the forms should have a same menustrip. i have thought of using class to pass menustrip to all the forms but have no idea how to do so. can someone pls help? -
Can anyone explain Private vs. Public properties in Class modules
I've started using class modules, and admittedly is quite inexperienced in this particular area, and there is one thing I can't seem to wrap my head around.
Part of the code is the property StartHeight. Get and Let shown below:
Code:Public Property Let StartHeight(intValue As Integer) pIntStartHeight = intValue End Property Public Property Get StartHeight() As Integer StartHeight = pIntStartHeight
-
No Nested Classes in php? How would I set up the following...?
A simplified example of what I am looking for comes from a restaurant.- The Restaurant has 30 tables (Parent Class).
- Each table has a server and location (Parent Properties).
- At each table is an array of patrons (Child Class).
- Each patron has name and alergies (Child Prop's).
I thought to set it up like this:
Code:class patron { public Name; public Allergies; } class table {
-
I need to sort a Class!
I have a class called TopScores which contains two objects score and name. I need to sort them in descending order of score, but dont know how to do it :(
Here's the code
Code:class TopScore(): def __init__(self): self.Name = "-" self.Score = 0
-
Php code where is the error?
Code 1 (Class)
Code:public function UyeKayit($adres, $ad, $soyad, $mail, $sifre1, $sifre2, $gsm, $il){ if (filter_var($mail,FILTER_VALIDATE_EMAIL)… $preg1 = true; }else{ $preg1 = false; } if (preg_match('/^[a-z\d_]{5,20}$/i', $ad)){ $preg2 = true; }else{ $preg2 = false; } if (preg_match('/^[a-z\d_]{5,20}$/i', $soyad)){ $preg3 = true; }else{
-
namespace or class or specific function content
Hello there, I'm working in a C++/CLR console project, and interested to know the content (I mean how it's actually written somewhere) of a specfic function, which is System::Net::Dn s::GetHostEntry (...), this function is a member of Dns class:
public static System.Net.IPHo stEntry GetHostEntry(Sy stem.String hostNameOrAddre ss)
Member of System.Net.Dns
This function worked well in my project by adding these 2 lines at first: ... -
How does new know how much memory to allocate??
Hi,
I was just wondering how the new operator (in C++) knows how much memory to allocate when creating an object of a class such as shown below:
i.e
class Books
{
...
}
int main()
{
....
Books textbook = new Books();
....
}
I have a stronger C background and I know that in C we have to specify the memory size for... -
Php class question..?
i want My database in all link_id data print screen. my database link_id's 10,22,30,40,45
Code:<?php class VeriCek{ public $dbhost = 'localhost'; public $dbuser = 'root'; public $dbpass = '1'; public $dbname = 'linkekle'; public function BaglanDB(){ if( $link ){ return $link; } $link = mysql_connect( $this->dbhost,
-
operator[] does not work
Hello!
I have a homework for tomorrow, and I simply can't solve it.
I have a list (with template) class, I wrote and it has an operator:
Code:T& operator[](int i) { ToFirst(); for(int j=0;j<i;j++) { StepForward(); } return Act->value; }
And I've...Last edited by Markus; Nov 16 '10, 01:00 PM. Reason: Added [code] tags, undeleted thread and moved it to /c/answers/