by: John Ratliff |
last post by:
I'm having issues with forward declarations and possibly member variables.
Can you declare a member variable and pass it parameters.
class x {
private:
y obj(this);
}
Is that valid? I'm...
|
by: Henning Hasemann |
last post by:
Hi all,
On larger projects I used the following 'technique' (well in fact its a
really simple thing):
1. Write one source-code file for each 'large' class and one
corresponding header file....
|
by: Kristian Virkus |
last post by:
Hello!
I would like to write a C programm with multiple include files, where
one may use another one (to print the value of a variable).
When I try to compile the program below, the linker...
|
by: wtu |
last post by:
function Declaration&Definition
--------------------------------------------------------------------------------
" Geroty (const vector<Point3D>& poly, const Plane& Tr)"
As i'm c++ beginner...
|
by: Laurent Deniau |
last post by:
I would like to know why the following small program does not compile
(checked with gcc 4.1.2) and if the compiler behavior is correct:
struct A;
typedef void (T)(struct A*);
void f(void) {...
|
by: =?utf-8?b?QXNiasO4cm4gU8OmYsO4?= |
last post by:
Suppose I have a function that takes a pointer as its input, but does
not change what the pointer points to. In that case, the const
qualifier can be used to indicate that the variable pointed to...
|
by: ruebezaehler |
last post by:
Hello,
I should separate the definition and declaration of template code. This
works fine for non-specialized templates. But I do not know how to do
this for specialized templates.
Example:
...
|
by: Annonymous Coward |
last post by:
I am relatively new in C#, but have several years C++/Java. I am writing
a little C# console app to "test the waters" and learn the language.
If I have a class defined as:
class MyClass
{...
|
by: Jeffrey |
last post by:
My understanding is that if you write
class X {
int y;
static int z;
};
then you've defined (and declared) X and y, but you have only declared
(and not defined) z. If you'd like to...
|
by: michaelhsilva |
last post by:
Hi folks!
Is there anybody that can tell me what´s wrong with this template. I´ve migrate from VC++ 6 to VS 2010.
template<int _Idx,
class _Ty1,
class _Ty2>
typename _Pair_data<_Idx, _STD...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|