|
bitsets could anybody help me with bitsets and bit flagging? i know what it is and what it offers, but i understand how it works.. i read many times the appropriate part of my c++ beginner book, but i still don't get it.. any explanations/help would be very helpful.. tia, streamkid ... 20 Dec 2006 16:11
Can't get boost::program_options to work. I'm on a standard Cygwin installation. The command I'm using to compile my programs is: g++ -o output.exe -I C:\cygwin\usr\include\boost-1_33_1 output.cpp A compile with just the line: '#include <boost/program_options.hpp>' works nicely, but when I try to compile any of the examples or use the library for myse... 12 Dec 2006 18:56
Very simple program. Please critique This is the second program (not counting Hello World) that I have ever written in C++. However, I'm trying to learn the language while picking up as few bad habits as possible, so please be nit-picky! /** * Exercise #2.1 * * Create a program that takes one argument and prints the corresponding * term from... 11 Dec 2006 23:42
bitwise operator Given two integers A & B. Determine how many bits required to convert A to B. Write a function int BitSwapReqd(int A, int B); can any body tell me how the same no dispaly when i left shift the number 32 times (i<<32) how the whole thing is stored in memory? ... 14 Dec 2006 05:46
write convolution using c++ Dear there, I write a convolution algorithm using c++. But, the analysis result is different with the one obtined by wconv1 under Matlab environment. Could any one know the details of wconv1? I check the codes of wconv1 and didn't find the details in toolbox. Thank you. Cajn ... 7 Dec 2006 00:10
Overloading fails - what is wrong ? I have a Class for complex operations: class CComplex { public: inline CComplex() { re=im=0.0; } inline CComplex operator*(CComplex c) { return CComplex(re*c.re-im*c.im,re*c.im+im*c.re);} inline CComplex operator*(double &d) { return CComplex(re*d,im*d);} double re,im; }; Howe... 7 Dec 2006 14:28
is such compile time array initialization possible? Hello NG, I have a simple array, say int way[P]; where P is a define constant #define P 4 I use way[] to temporary save the gone path through the graph each node has id's in range 0 and upward I would like to use -1 to mark "invalid" way point is it possible to write a macro to initialize way with P... 7 Dec 2006 07:55
invalid types `char[int]' for array subscript I trying to learn c++ and have been creating test programs to get some practice. This one I can't figure out and I would appreciate any help. The subject of this message is the error I'm getting and I get it for all array[i]'s in the leetspeak function. I haven't gone further with this because of this problem, but... 4 Dec 2006 22:28
size of realloc'ated memory? and pointer question I am working with dynamic memory management in c, i.e. pointers and alloc group of functions. I have a couple of questions. May be someone can shed light on them. 1) if I enlarge a memory block with realloc, then I know from the cource code what size the resulted memory would have. But is there a way to determ... 3 Dec 2006 23:30
Visual Studio 2005 Professional, errors C2039 C2873 When compiling the program below using Visual Studio 2005 Professional, one of my students gets the error messages: Error 1 error C2039: 'exit' : is not a member of '`global namespace'' c:\program files\microsoft visual studio 8\vc\include\cstdlib 23 Error 2 error C2873: 'exit' : symbol cannot be used in a us... 2 Dec 2006 00:39 |