>
Thanks and Regards
homestead
Printable View
>
Thanks and Regards
homestead
A larger-then-sign :confused:
A larger-than sign actually.
oops, typo ... :blush:
'larger-than'? uh....
> Greater-Than
< Less-Than
>= Greater-Than-Or-Equal-To
<= Less-Than-Or-Equal-To
I'm sure they can be overloaded, so if you seen it somewhere and you don't know why, it may not neccessarily mean what I just said.
I am really sorry for not reading my post again. I didnt know that because VB code changed when directly writingI meant that gt...Quote:
& gt
Really sorry, I know it is an easy question to you, so please help...
Thanks a lot,
Regards,
Fiona
In C/C++ context, you are retrieving the address of the variable gt. However, in HTML context, ">" is a representation for '>' character on the browser.
Hopes that I answer your question. :D
I know I am a newb and my questions are really very newb's, but it s true, I have seen it declared in the #include headers, I dont understand why, so I made questions...Quote:
Originally posted by Kheun
In C/C++ context, you are retrieving the address of the variable gt. However, in HTML context, ">" is a representation for '>' character on the browser.
Hopes that I answer your question. :D
Regards,
homestead
it was used without even declaration ?PHP Code:class MyClassImpl;
class MyClass
{
public:
int Method1();
// Public methods, etc.
private:
MyClassImpl* pimpl;
};
// MyClass.cpp
#include "MyClassImpl.h"
MyClass::MyClass : pimpl(new MyClassImpl)
{
}
int MyClass::Method1()
{
return pimpl->Method1();
}
Ah... I think I got what it is trying to do. Actually, my previous reply indirectly answer your question. The code you are displaying, uses the Pimpl idiom where certain implementation of the original class is extracted into a separate implementation class. When we want to invoke a function in the original class, it is usually redirected to invoke the function in the implementation class.
BTW, please don't take it too hard on my previous reply. As many other has pointed out, it usually helps to understand your question if you can show us some codes. :)
Code:class MyClassImpl;
class MyClass
{
public:
MyClass();
int Method1();
// Public methods, etc.
private:
MyClassImpl* pimpl;
};
// MyClass.cpp
#include "MyClassImpl.h"
MyClass::MyClass() : pimpl(new MyClassImpl)
{
}
int MyClass::Method1()
{
// Due to some html formatting, you see "pimpl->Method1()".
return pimpl->Method1();
}
I am sorry I didnt know that :)
I mean pimpl->Method1();. I just went there, copied and pasted it here.
Thanks Kheun very much for your explanation, :)
Regards,
Fiona