Advertisement

1 - 10 of 240 containing alltags:("const") (0.001 seconds)
Very simple, but i donw know. How to do: unsigned short asize = 999; //or use const int i1[asize];
Zones: C++Date Answered: 08/06/1998 Grade: A Views: 0
In one of my header files I put const int MAX_ORGINALS = 30; This causes a large number of errors which does not make sense to me.   What am I doing wrong.  I know you can use #define but wh...
Zones: Windows MFCDate Answered: 11/16/1999 Grade: A Views: 0
Using ANSI C I/O, I need to parse ASCII files for certain tags.  In my ASCII files, there is always an asterisk that comes before the tag. For example:  *MATERIAL_TRANSPARENCY There is always at ...
Zones: C++Date Answered: 02/03/2001 Grade: A Views: 0
How do I convert a "const char*" to a "char*" ? How do I make the following work: char* pchar = str.c_str();
Zones: C++Date Answered: 05/14/2001 Grade: A Views: 0
Can someone explain the following to me? X *const; const X* const; foc() const; return *this; (inside class X, 'this' is of type X* const, so what is '*this'?) How come in my book, I canno...
Zones: C++Date Answered: 07/16/2001 Grade: A Views: 0
Hello,           When I tried to compile the following code, I am getting a syntax error that says 'Expression must be pointer type'. Can anybody tell me how I need to change that perticular state...
Zones: C++Date Answered: 11/26/2002 Grade: A Views: 0
Beginner's question: I have a form with several unbounded controls (like a textbox for instance). I update some other values on the form based on the information typed in the textbox. I'd like t...
Zones: MS AccessDate Answered: 12/17/2002 Grade: C Views: 0
1. How safe is it to use "static" functions and data members? 2. I am using lot of strings and putting it in header as #define XYZ "myXYz" and so on #define ABC "myABC" and so on XYZ is then us...
Zones: C++Date Answered: 07/28/2003 Grade: A Views: 0
I have a const member function of a templatized class which alters a private data member, declared mutable (it's an internal index for the class called _iterator), which holds references to objects...
Zones: C++Date Answered: 07/12/2004 Grade: A Views: 0
I am trying to understand the exact semantics of const in C++. So I wrote the following program: #include <iostream> using namespace std; int main() {     const int x = 2;     int *p = (...
Zones: C++Date Answered: 09/28/2004 Grade: B Views: 9