General C++ Programming - February 2011 (Page 12)

by JHON
postfix Expression in C++
 
Please send me the coding of prefix into postfix notation in C++
[1 reply] : Gladly. (by ultifinitus)
saving bitmaps confusion
 
okay, i've been having a little trouble working with bitmaps in c++. i've learned a lot, but i'm still having problems with: 1.) saving the bitmap after i have...
[no replies]
Destructor for the Deque class question.
 
I have to write a deque class for school and I am having a problem with the destructor. Each block of the deque holds a vector which is from the class block. ...
[2 replies] Last: Ok I got it now, I tried that but I guess I just miss typed something ... (by Neb1000)
Parsing Ideas Needed
 
Hi, I'm making a sorta of 3d model builder with OpenGL and any 3d model program (such as Maya or 3ds max) but I'm having some trouble figuring how I'd get th...
[1 reply] : http://www.cplusplus.com/doc/tutorial/files/ Look at using streams to ... (by Zaita)
gdb or wrong syntax?
 
So I'm debugging this program with GNU's debugger and it has this nice display command that you can use to display the value of any variable you want as you're ...
[2 replies] Last: centers is a pointer to a Center "object" there are actually several o... (by dunsondog109)
Visual Studio 2010 hijacking file associations
 
Hi, I'm sorry if this isn't the right place to ask this. But VS2010 keeps hijacking my file associations, even when I overwrite them. The only place I've ...
[no replies]
exponential function without using pow()
 
Hello! I am trying to write a program that solves exponents without using the pow () function. I think I need to use a loop to generate how many times the ba...
[7 replies] Last: I hope you will pass my current knowledge someday, as do I! I am only... (by cppmatt)
Opengl - loading md2 file
 
I have created a program that loads a md2 file (following the wikipedia page on it) and am having some troubles rendering it, below is my source code any help w...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by fafner
Passing const var as argument
 
I have a class called ShadeRec and a class called World. The ShadeRec constructor takes a reference to a world like this: ShadeRec::ShadeRec(World& wr) I ne...
[5 replies] Last: Hmm, I couldn't find my problem in the errata either. Why can't I init... (by fafner)
Problem with class IComparable
 
When I do normal method compareNode without inheritance it work fine, but when I want to do abstract class and then normal there iss problem here is code wit...
[2 replies] Last: I got it whe I put it here I see that I forgot write cImpQuadNode:: b... (by Sevco777)
3d Grid
 
I have to do a generic class Grid3D that implements a 3-dimensional structure of cells. Each cell can be accessed by giving the coordinates of the plane (z), ro...
[10 replies] Last: why with function like this bool greater_than(const int &a) { ... (by maucomp)
by fafner
operator overloading question
 
I have two classes, Vector3D and Normal. I need to define two operators for the Normal class for the following operations: Normal normal; Vector3D vector; ...
[4 replies] Last: Thanks, everyone, that's exactly what I needed! (by fafner)
Text Based RPG - Group wanted
 
Hey, Ive been working on this text based RPG game in C++ This is the first C++ project iv'e done. But I have made quite a bit of progress, Much of the sto...
[8 replies] Last: please keep conversation on that topic in that post. This post is for ... (by Auxiusvorg)
Draw automatic flow diagram?
 
Hi, I have a very large code in C++. It will be very difficult to understand the code manually. I need a tool like, if I give my code as input to that, it ca...
[1 reply] : There are many tools like that out there. Try a Google search on "C++... (by cnoeval)
by clros
C++0x mutex don't compile on minGW
 
Hi, I have this code: #include <thread> using namespace std; class TryMutex { public: TryMutex(); virtual ~TryMutex(); ...
[7 replies] Last: @Bazzy: I'm not so sure. I seem to recall a post on the Boost mailing... (by PanGalactic)
fatal error: clapack.h
 
Hello everybody. Some times ago, I wrote an own program on a Linux System without any problems. Now I need to rerun this program computer. Therefore I install...
[no replies]
Passing a struct function to a function
 
Hi all. I wonder if you have an answer for me for this curious little pointer problem. I have an all purpose function that I typically pass a function to. I'm h...
[2 replies] Last: To add to the above, to solve your problem you need either std::mem_fu... (by jsmith)
by nono
Program stops in the middle of for loop?
 
I set a variable to NULL to get out of a for loop quicker. After tracing it through the debugger, I realized it makes the program halt at the for loop. The...
[1 reply] : These two are equivalent in functionality: for( p = first; p != ... (by jsmith)
qns on multithreading and locking
 
say I have this code: int startServer( struct ServerParameter &serverParameter ) { pthread_t threadID; ConnectionParameter *connectionParameter...
[3 replies] Last: err no my question is do I need a lock to sharedDataLock as well which... (by unregistered)
Program builds but doesnt print anything
 
Hello, I made a soduku puzzle solver in my C++ class, I got it to print the board, but once I made the actual solving part, it doesnt print anything. #include...
[1 reply] : You end up in an infinite loop. Cause you have a do-while loop that do... (by john2)
February 2011 Pages: 1... 1011121314... 25
  Archived months: [jan2011] [mar2011]

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