Macros (I know, yuk!)725 (1/25/2006 6:19:21 PM) comp.lang.c++ Hi, I need to be able to define some code for one platform but not another, where the code consists of preprocessor definitions. I'm trying to use a macro (yuk), but having trouble (no surprise). The pr... Howard
Good self-teaching book(s)?340 (1/16/2006 5:00:23 PM) comp.dsp HI all, I work coding audio software, but don't do the actual dsp code. I'm wondering what others consider a good book (or books) for teaching myself the fundamentals of coding dsp software. I have ple... Howard
Best way to handle ownership1432 (9/13/2005 6:20:10 PM) comp.lang.c++ Hi, I recently had a problem where I decided to store objects in a vector. (Previously, I had always stored pointers in vectors). Well, naturally, when storing an object in a vector, using push_back, th... Howard
appropriate container?637 (5/6/2005 4:05:03 PM) comp.lang.c++ I'm converting some old handle-based code, updating it to use stl containers. I've wondering if someone can suggest the proper container type for the following: I've got a bunch of bitmaps (stored as resour... Howard
OT: is there any way to get rid of "amos"?2638 (4/27/2005 5:00:26 PM) comp.lang.c++ Is there any way (other than using a kill file) to get rid of this "amos" jerk? I'm getting awfully tired of seeing all that junk crap posted here, in what's generally been a fairly "clean" newsgroup. -Howa... Howard
problem with namespace and simple query113 (2/4/2005 6:19:36 PM) comp.text.xml Hi, I am using a very simple xslt file to get info from an xml document. The problem seems to me to be that the xml doc uses a namespace, and I don't know how to set up my xslt to recognize it correctly.... Howard
Integer div and mod together?1330 (1/21/2005 8:22:45 PM) comp.lang.c++ Hi, I know I can do integer division with the / operator, and get the modulus with the % operator, but is there any function that calculates both values in one shot? It seems quite wasteful in time to d... Howard
Address of a reference?734 (11/4/2004 10:08:00 PM) comp.lang.c++ Hi, in one of the recent posts, I saw someone pass two variables of built-in type (int and double), by reference, to a member function of a class. That function then took the addresses of those referenc... Howard
C-style casts for built-in types?329 (7/21/2004 3:35:15 PM) comp.lang.c++ Hi, I am maintaining a lot of code that is rife with C-style casts. I've seen a lot of comments that one should not use C-style casts at all. But I'm wondering what harm there could be in doing so with t... Howard
void main728 (6/30/2004 4:14:53 PM) comp.lang.c++ Hi all, with all the posts I see that have "void main()", and all the resulting corrections, I have to wonder...is there a commonly-used IDE out there that generates "void main()" by default when creating ... Howard
Delete a node in a single link list that takes O(1) time1138 (5/19/2007 12:48:43 AM) comp.lang.c++ How to write code to delete a specific node in a single link list that takes O(1) time? =A3=A8 link list uses pointers, not hash. =A3=A9 That is= , the time deleting a node is the same (independent from the l... xuxin2004(3)
unexplainable segfaults430 (5/21/2007 3:53:47 AM) comp.lang.c++ Hi there, consider the following code: #include "stdafx.h" int main(int argc, char* argv[]) { const int Xres = 600; const int Yres = 600; std::pair dispFNabla[Yres][Xres]; std::pair dispFNabla2[Yres][... honeypot1(2)
inaccessible base despite public inheritance934 (5/22/2007 1:51:35 PM) comp.lang.c++ Hi, I have the following header file (named test.h): class Foo { public: Foo(void) {} virtual ~Foo(void) {} }; class Bar : public Foo { public: Bar(void) {} virtual ~Bar(void) {} }; with a very simple c... stefan.weber(8)
inaccessible base despite public inheritance #2234 (5/22/2007 5:29:28 PM) comp.lang.c++ Hi, I have the following header file (named test.h): class Foo { public: Foo(void) {} virtual ~Foo(void) {} }; class Bar : public Foo { public: Bar(void) {} virtual ~Bar(void) {} }; with a very simple c... stefan.weber(8)
The future1226 (5/22/2007 8:42:18 PM) comp.lang.c++ Google trends indicates a shift in programming languages towards garbage collection, interoperability and safety: http://www.google.com/trends?q=c%2B%2B%2C+c%23&ctab=0&geo=all&date=all&sort=0 Which languages... jon(3267)
operator= for a class with a const reference member930 (5/23/2007 3:19:54 PM) comp.lang.c++ I have a class that has a member that is a const reference: class MyClass { public: MyClass(const AnotherClass& ac); MyClass(const MyClass& mc); MyClass& operator= (const MyClass& mc); private: ... 123evergreen(36)
Why using the new keyword at all for memory allocation?637 (5/23/2007 6:28:39 PM) comp.lang.c++ Why using the new keyword at all for memory allocation? I mean,why not let c++ find memory for you variable automatically? so insted of : int proba; proba = new int[5]; why not just : int proba[5]; ?????... PencoOdStip(10)
nonmember functions?826 (5/23/2007 7:57:46 PM) comp.lang.c++ I have read that the allocator class has the following nonmember functions: template For uninitialized_copy(In,In,For); template void uninitialized_fill(For, For, const T&); But what does it mean that the ... fff(182)
Model and Texture but with children228 (5/23/2007 8:25:05 PM) comp.lang.c++ Say we have a class Model (a 3d model) and class Texture (representing an Texture). Model have a texture, Model can be Drawed. Texture have method that returns data needed for drawing. class Texture { ... no986(9)