General C++ Programming - June 2008

Copy constructor / assignment operator checking
 
A situation I have come up a lot is that I want to write some little bit of code that executes every time a class is copy-constructed or assigned (say for refer...
[1 reply] : I'm not sure I understand the problem. Whenever a field is added to a ... (by Duthomhas)
Does such a compiler option exist?
 
Having a function that is meant to return a value but does not can cause some pretty nasty bugs, but since determining whether a function returns a value is an ...
[6 replies] Last: Well, if you don't have control over other people's garbage, then you ... (by Duthomhas)
SIMD programming
 
What is SIMD? Is it important for me to understand the concept or is it situational? I've done a bit of digging and learned a bit about what SIMD and parallel...
[1 reply] : It stands for Single Instruction Multiple Data and as far as I know it... (by henry5316)
OpenGL in Xcode? Macs Anyone?
 
I am pretty good with C++, and I am a primary Mac user, and I was wondering if someone could explain to me how to use OpenGL in Xcode. I do not have much experi...
[2 replies] Last: OpenGL will be called a "framework" rather than a "library" in XCode. ... (by henry5316)
GIVE SUGGESTIONS TO IMPLEMENT DATA STRUCTURE.
 
Hi, this si srinivas. below i gave my data structure to represent an electronic circuit.could u please suggest me the design guideline of the data structure. ...
[no replies]
debug with gdb
 
Hello, I use gdb to debug a C++ program. My program loads a dynamic library ans in this case, gdb needs library symbols. I use the command "add-symbol-file" ...
[no replies]
manipulate the menu
 
My program is supposed to display the menu, then prompt you to enter in the new information. I only want the original menu to show. after you enter in the new...
[3 replies] Last: buffbill wrote: Next line below int main() write: " start:" Line ab... (by closed account z05DSL3A)
by TL08
Error in program with methods+arrays
 
Hello, I'm new to C++ and I made a practice program involving methods and arrays. I ran into a compile-time error on line 8 of this program (see below), which t...
[1 reply] : please use the (replace 0 with o) tags for your code. // Pro... (by Zaita)
Graph resources
 
Were I can found a implementation in C/C++ for coloring vertex for a grapth (eventually indicate me Web resources).
[1 reply] : What GUI Toolkit are you using? (by Zaita)
illegal call of non-static member function
 
class CObfuscator { public: int doit_tramp(int, int); int doit_detour(int opcode, int flag); }; int CObfuscator::doit_detour(int opcode, int flag...
[14 replies] Last: Send me an email to public01@zaita.com telling me what your MSN addres... (by Zaita)
by JHAx86
¿What's the C++ equivalent to Object Pascal Inherited()?
 
Hello, I've a C++ virtual function and I need to override it and add my code without losing original functionality. In Object Pascal I can do it by using in...
[1 reply] : class A { public: virtual void foo() { cou... (by Duthomhas)
Dynamic 2D Arrays of Class Objects
 
Is there anyway I can make a dynamic array of class objects?? eg in Java you can write myclass mc = new mc ; However in C++ I can't do something lik...
[4 replies] Last: Good spot, I obviously wasn't concentrating on what he actually wrote ... (by bnbertha)
Generate all permutation (1,2)
 
I try to create a program for generate all permutation (for example input nr=3 and result will be 1 2 3, 1 3 2, 2 3 1 ...). I try to use non-recursive backtrack...
[30 replies] Last: Ok. Unfortunately my code does something different. Giving a list of o... (by Zaita)
what is /net/hton
 
I am trying to compile a program which contains #include <net/hton.h> using g++. The code was compiled successfully on Visual C++ by someone else, but when I tr...
[4 replies] Last: tsk tsk @ original author for not putting the #include in #ifdef state... (by Zaita)
Binary I/O
 
The program i've created is essentially a calendar. You add events, delete, search for etc. when you close out the program, it opens a txt file and writes the e...
[11 replies] Last: Hmm, I'm not sure why I wrote "signed". Maybe I just forgot the "un"..... (by Duthomhas)
Having problems with reading a file
 
I have made a class that works well for what I want, however I am having one little problem with it. It basically is an array of Items (a struct containing a...
[7 replies] Last: Ok.. I did this up as a seperate program to test out the code, and mak... (by Aakanaar)
by lipune
c++
 
how can i create a class such that if any class inherited from it then it will show error,so is there any way.means we can not inherit from dt class.
[2 replies] Last: Also http://www.parashift.com/c++-faq-lite/strange-inheritance.html#fa... (by Duthomhas)
by Andrea
constructor of an array of Point
 
Hello, I want to make a matrix like this: System::Drawing::Drawing2D::Matrix^ L; L=gcnew( System::Drawing::Drawing2D::Matrix::Matrix(rect,plgpts)); re...
[2 replies] Last: As I recall the Matrix constructor you are calling takes a Rectangle... (by closed account z05DSL3A)
by neeti
reading images
 
hi!! i want to read a RGB image in c++.and after doing some formatting on that i want to display it again.plzz help me
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
problem getting WM_KILLFOCUS
 
In the main window callback function I get the WM_KILLFOCUS message when I click on the window, and only then I get the WM_SETFOCUS message. Is that OK? I th...
[1 reply] : Just use a boolean flag. Set it to true when SetFocus has been called,... (by Zaita)
June 2008 Pages: 123... 6
  Archived months: [may2008] [jul2008]

This is an archived page. To post a new message, go to the current page.