by: cppaddict |
last post by:
I would like to write, within the private section of my class
definition:
static enum TruncType {TRUNC_TOP,TRUNC_RIGHT,TRUNC_BOTTOM,TRUNC_LEFT};
but C++ does not allow this. The four values...
|
by: Andrew Parker |
last post by:
Hi, I'm having a syntax problem and hours of googling has yet to reveal a
solution.
I'm writing a class that contains only public static methods. It's a class
of useful misc. functions that don't...
|
by: Rakesh Sinha |
last post by:
I am having this code here.
static const float PI = 3.14159;
static const float INC = 0.4f * PI;
When I compile my program, I get the following error,
error: `MyClass::PI' cannot appear...
|
by: Gustavo Randich |
last post by:
Hello,
I need to know what's wrong in this translation from Informix. Note the
difference in the results, which is due to the UPDATE statement.
ORIGINAL PROGRAM (INFORMIX):...
|
by: sunil |
last post by:
Hi,
I am dealing with problem where I need virtual+static function:
enum {A=0,B=1};
Factory.cpp:
------------------
Base * createInstance(int classType,char *name)
{
if(classType == A)
|
by: Brybot |
last post by:
Apparently it is not possible for a static class to extend an abstract
class? I was wondering how else I might be able to go about my problem
here?
I have a base class Parent which has a static...
|
by: chandu |
last post by:
hello,
i want to know usage of static methods in a class.
is it advantageous or disadvantage to use more static methods in a class.
thank u
|
by: Marvin Barley |
last post by:
I have a class that throws exceptions in new initializer, and a static
array of objects of this type.
When something is wrong in initialization, CGI program crashes
miserably. Debugging shows...
|
by: LamSoft |
last post by:
Class B { public B() {} }
Class A : B {
public static string ABC = "myABC";
public A() {}
}
|
by: Grey Alien |
last post by:
class A
{
public:
A(const B& ref);
private:
static B& b ;
};
How may b be initialized ?
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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: 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: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|