General C++ Programming - September 2010 (Page 16)

Ask about multi file in C++
 
Please help me ! I have 1 class and it separates 2 file: .h and .cpp =====Vector3D.h========= #include <iostream> #ifndef VECTOR3D_H_ #define VECTOR3D_H...
[7 replies] Last: I resoved. Just have to add #include <iosfwd> in header file. (by micheal9000)
MPI forum
 
Dear everybody, Deos anyone know a forum dedicated to MPI? Thanks in advance
[2 replies] Last: lol also... http://tinyurl.com/27blpcx (by closed account 1yR4jE8b)
Design Question - Templates
 
Consider the following declaration typedef void(*PEHF)(); class X { private: static PEHF currentPEHF; public: ...
[3 replies] Last: Something like this could also be of help: #include <iostream> #i... (by m4ster r0shi)
Ask about IO overloading
 
Please help me fix this error !!! #include <iostream> #include <iomanip> using namespace std; class Vector2D{ protected: int x, y; p...
[6 replies] Last: In this context (as a parameter qualifier) it means a reference . Par... (by Galik)
bineary editor for linux
 
I need to modify a linux binary file. Is it ok to use MS visual studio to open and modify the binary file for linux? I know windows use CRLF, while linux uses...
[3 replies] Last: Thanks for your comments. (by coder1998)
polymorphic design question
 
In my game the player will be able to go through doors which take them to different planets. My door class contains a pointer to a planet, but my problem is tha...
[4 replies] Last: No, for this is better dynamic_cast, so you can be sure that the retur... (by Bazzy)
by riun23
Blackjack
 
When i run this code, it will sometimes create legitimate numbers, but usually creates really high numbers. Could someone tell me what i'm doing wrong? Here'...
[2 replies] Last: The switch on line 67 does not have a case for zero so you are returni... (by jsmith)
STL and protection
 
What kind of protection does the STL provide in a multi-threaded environment? Let's say I am iterating a List and dereferencing the iterator to access, say, a c...
[1 reply] : You need to add your own protection in multithreading environments. S... (by Disch)
producer-consumer problem
 
a number of threads are producing some elements and placing em in the queue, and some threads are eating (consuming them). All works fine, except that i now wan...
[2 replies] Last: zee thanx :D, do u have any other ideas that u can share ?? (by dumbterminal)
by declan
Good file I/O?
 
Hey guys. I have a text file in the general format of: L_x = 5.0e-6 L_y = 1.25e-6 L_z = 1.25e-6 npart = 1000000 nstep = 10000 ncell_x = 100 x_vel_of...
[1 reply] : Does this work? ifstream f( "file" ); string name, delim; double... (by moorecm)
UInderstanding FFT or DSP
 
Hi, Im trying to do a screen-flashing application, that flashes the screen according to the music(which will be frequencies, such as healing frequencies, etc......
[no replies]
DSP(Frequency domain) Example
 
Hi, Im trying to do a screen-flashing application, that flashes according to the audio(like 30 times per second), I was recommended looking through DSP, more sp...
[2 replies] Last: Ok, then if I want the screen-flashing how many Hz would I need, 10Hz?... (by Sismetic)
by angie
C++ program on LZW compression technique
 
I am an intermediate c++ programmer. I want to make program on LZW compression technique using c++. Please point me to the right direction. Like i dont know h...
[3 replies] Last: can you suggest some good text book over data compression techniques? (by angie)
by yman
memcpy speed
 
Hi. I wonder what is faster - copying a long memory or rather more pieces of short data. Imagine two long arrays of chars (hundreds thousand), which should co...
[4 replies] Last: Copying a large chunk of contiguous memory as a single copy is at leas... (by jsmith)
main function
 
hello everybody, I have a weird question somehow, can we have more than one main function in a project? I mean for example 2 .cpp files where each has its own...
[8 replies] Last: I guess it's a little far from what am seeking, process in this link i... (by abdallahijazi)
Creating Directories in standard C/C++
 
Hello guys, I want to create a directory structure from pure C/C++ application without the use of the windows API. can someone post for me a snippet of co...
[6 replies] Last: Really my biggest problem with boost is the lack of coherent document... (by moorecm)
Build Error because of a Member Function
 
Good Day! My C++ project seems to have an error when it builds and I kindly ask for help. My program basically multiplies and adds either positive or negative r...
[1 reply] : On line 11 of VVLIver1.cpp, just remove the default value part (= '0')... (by moorecm)
Invalid free after reading object from file
 
Hello, I'm having trouble with a template class I've written. I'ld like to save and load the data, but my class crashes when I'm loading. The function look...
[8 replies] Last: And then again, when I use a double instead of a vector<double> in myT... (by droungat)
Memory Allocation Speed
 
Hi guys, I'm doing some scientific programming (dynamic mesh relaxation). My best language is Python, but I'm converting my code to C++ for speed. I've got i...
[7 replies] Last: Dynamic allocation of arrays is done when either the number of elem... (by xorebxebx)
Breaking Down Strings
 
I am getting some errors I dont understand with this file. I'm trying to break down this string into pieces. I supposed to take the parts of the string that are...
[6 replies] Last: I think you should just make it an ordinary string. And you need to de... (by Galik)
September 2010 Pages: 1... 1415161718... 20
  Archived months: [aug2010] [oct2010]

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