First  |  Prev |  Next  |  Last
Pages: 176 177 178 179 180 181 182 183 184 185 186 187 188
C++ template base class' nested typedefs not visible in derived template class
Below is a file I'm getting compile errors on (CASEs 1 and 2). I think both 1 and 2 should be legal C++. Visual C++ Expres 2005 agrees with me. Compiling using Cygwin's GNU 3.4.4 has the shown error messages. Which compiler is right and what C++ standard clause would cover this situation? Thanks, Mike tem... 30 Jan 2006 17:01
Coding skills: const vs mutable
Here is simple code piece: class A { unsigned numCalls; //<<---point 1 typedef map<string,string> AMAP; AMAP aMap; public: A() : numCalls(0){} const string& GetString(const string& s) //<<---point 2 { numCalls++; AMAP::const_iterator it = aMap.find(s); //<<---point 3 ... 9 Feb 2006 10:01
iostream/ostream
Hi All, I was away for some time from the newsgroups; and now I see (here and other places) that people keep writing: #include <iostream> #include <ostream> where we have originally have only written #include <iostream> What did I miss? Did we start to program against a wording problem in the standar... 2 Feb 2006 08:49
policy base class using static member functions
I'm currently working on the following policy base smart pointer: http://code.axter.com/smart_ptr.h Before working on the above code, I read the following links: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2004/n1681.pdf http://www.cuj.com/documents/s=8890/cujexp0310alexandr/alexandr.htm I notice th... 24 Jan 2006 10:37
Initialization of static variables
Given the following sample code: datetime.h ========== class Date { public: // Constructor with number of days since 01-Jan-1900. explicit Date(numDays) : numDays_(numDays) {} // minimum supported date static const Date& minDate(); private: // number of days since 01-Jan-1900 long... 9 Feb 2006 11:05
Commercial programs written in C/C++?
I have read in books that programs like Word, Excel, Access, Photoshop, Corel are written in C/C++ language . On the other hand I also have read that C/C++ do not have graphic libraries. If this is, then how do they draw all those icons and graphics of those programs? Any book or website where I can see... 4 Feb 2006 08:09
Can any Help me by explain it.
Dear Friends, I had written a program using delete operator in C++. The books wot I followed is stating that using new operator will allocate the memory for the object and delete operator will remove the memory allocated to the object which is reffered by an pointer object. But my program is still working when I... 17 Jan 2006 10:36
information aboout delete[]
hi all c++ experts how does delete[] knows what will be number of objects for which destructor will be called. thanks ravinder. [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] ... 10 Jan 2006 10:14
Calling C++ from Fortran
I am relatively new to C++ and Fortran, but must be able to call C++ routines from Fortran. From other posts I have learned that the specific compilers used are important. So: C++ compiler, option 1: Microsoft VisualC++ 2005 Express Edition C++ compiler, option 2: Microsoft VisualC++ v6.0 (Enterprise Ed.) ... 21 Jan 2006 06:58
exercise in GCD function
I have brought a book called "objected-oriented programming using C++" by "IRA POHL", a "Grady Booch" series. In that book's chapter 2 which talks about basic programming concepts, given a function to find the gcd of two number. #include<iostream.h> #include<assert.h> int gcd(int m, int n) { int r; ... 6 Jan 2006 06:07
First  |  Prev |  Next  |  Last
Pages: 176 177 178 179 180 181 182 183 184 185 186 187 188