by: |
last post by:
I read in "Thinking in C++" this code works:
---------
class A
{
static const int b = 1;
};
---------
but it doesn't!
I do something wrong?
I use VC++6 and it returns:
|
by: b83503104 |
last post by:
I know this is illegal:
class XYZ {
const int myConst = 1;
....};
But then, does it mean I have to use #define ?
Thanks
|
by: Dev |
last post by:
Hello,
Why an Abstract Base Class cannot be instantiated ?
Does anybody know of the object construction internals ?
What is the missing information that prevents the construction ?
TIA....
|
by: Sven Groot |
last post by:
This was posted by someone in comp.lang.c++, and later in
microsoft.public.vstudio.general, but since I know Carl is in this group,
and he's the one that should read this, I've reposted it here....
|
by: Michael Fitzpatrick |
last post by:
Is it possible to set a variable with the value of a compile time constant.
Example:
#Const MODE_STR = "Mode1"
dim strMode as String = MODE_STR
Obviously this doesn't work. Is there a way...
|
by: denis |
last post by:
What are the benefits of using const functions?
How does the compiler interpret const functions?
Thanks, Denis
|
by: Ken Varn |
last post by:
I have the following code that I cannot get to compile. I get the error "A
Sealed class cannot be abstract."
public __value struct DVRAVIFileHeader : public ISerializable
{
double EventID;...
|
by: bg_ie |
last post by:
Hi,
I am using a API I downloaded from the internet programmed in C. I need
the function below which works with this api in my c++ file -
void StoreNoteCallback(void *context, int arglen,...
|
by: Chris Thomasson |
last post by:
I am fine-tuning some last minute things in my c++ allocator lib and was
thinking of ways to manage local references to system objects created with
factory functions. I started to tinker around...
|
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: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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: 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...
|