General C++ Programming - May 2010 (Page 9)

by qabil
quick short
 
hy can you gve me the algorithm of quick sort and plz explain about that thnx
[1 reply] : http://en.wikipedia.org/wiki/Quicksort -Albatross (by Albatross)
by xtc77
std::allocator replacement
 
Hi! I need to write a slightly modified version of the built-in std::allocator implementation. The reason is that I need to track how much memory is used b...
[16 replies] Last: I also noted this when trying to create the code. I saw 2 deallocation... (by RedX)
one task in c++ and I have problem :?
 
Hi, I need help for one task if someone can help me I will be very grateful modify the selection sort algorithm to sort a vector of employees by salary
[12 replies] Last: I'm not sure you posted the correct error for the code. However I d... (by Galik)
uBLAS: multiply a matrix row with a matrix
 
How can I multiply a matrix <double> single row with a complete matrix <double> to obtain an accessible vector of values with uBLAS? Someone help me please...
[no replies]
Unecessary symbol resolution..
 
Hi all, I have written a simple test program to test if symbols which are not needed to build my executable are also resolved or are left unresolved since the...
[1 reply] : I have written a simple test program to test if symbols which are not... (by moorecm)
Make a function template output it's type?
 
Is that possible (scalably) to output the type of a function template instance from itself? Say, if I use function<const void* const> or function<char*>, the...
[2 replies] Last: Hmm... Then it's impossible, because typeid didn't see any difference ... (by KarlisRepsons)
Call a C++ program from excel
 
Is there a macro to call a C or C++ program from excel which will run based on the data given in the excel sheet and give an output which is saved as a text fil...
[2 replies] Last: So u mean to say that there exists a macro to call a compiled C progra... (by shandoo27)
VC9 Error 2668
 
I got Error 2668 on VC9 with following snippet, template<class T> class Visitor { public: void visit(T& t) { std::cout << "visit " << typeid(t).nam...
[1 reply] : The code is trying to implement the visitor pattern in a better way: t... (by hejiang2000)
C++ program to generate an activity flow diagram
 
Is it possible to write a C plus plus or java program to draw an activity flow diagram given the sequence as a text file input and save the diagram in an output...
[no replies]
Text Editor
 
Hey guys, I've recently been developing a text editor(a very simple command line one.) And my main problem is that the editor cannot input multiple lines. Her...
[no replies]
Code tags on this forum
 
The code tag on this forum are great. I want to see this feature on Tumblr! It appears to be Javascript. Does anyone know who developed this feature, or if i...
[no replies]
using iterators
 
Hi, I'm trying to use an iterator to loop through a vector of pointers to my class CEntity and call their Update() method. This is my first time using an ite...
[5 replies] Last: std::for_each(m_entityVector.begin(), m_entityVector.end(), std::me... (by Denis)
why should you use c++ in this project ?
 
I read all over the web about how scripting programming languages (like ruby or python) are fast for writing programs quickly. so i would like you to consider a...
[2 replies] Last: Do you know ruby, python or any other language you want to use? Do you... (by RedX)
by rollie
Instantiating const object with implicitly defined default constructor
 
I seem to get a compile error with the below code using g++ 3.2.3: g++ test.cpp test.cpp: In function `int main()': test.cpp:30: uninitialized const `...
[4 replies] Last: Ah hah, I see! Thanks for the ref RedX. moorecm - entirely possibl... (by rollie)
by aleeza
File Handling
 
I wanna make a program, but could not make,Plz provide me its code in c++. The program is: Write a program that read a text file, one line at a time, and pr...
[17 replies] Last: Maybe get a different compiler? This environment has the GCC C++ co... (by Galik)
by DeucEy
How to Fix this Unresolved External Symbol Problem
 
I am trying to write a simple program that lets me output an inventory of games but I've been stuck for about 5 hours trying to figure out why I cant call ANY f...
[5 replies] Last: Is this really the forum of insane geeks? Couse i'm insane, but not ge... (by indigo)
Having highly coupled classes without circular dependencies
 
Hi there, I'm working on a simulation program, and am having a bit of a design issue. There is an object in my program called a sensornode, and this is mo...
[5 replies] Last: Obligatory link: http://cplusplus.com/forum/articles/10627/#msg49679 ... (by moorecm)
convert from char** argv to int
 
Hello every body!! I am trying to get an input from argv which is char** but i want this input to be an integer value how can i convert argv to int ?? th...
[2 replies] Last: I found the answer for any one have the same question, int x=atoi(a... (by mina samy)
fileHandling guide...
 
hi, I've problem in file handling when i instantiate object thorough fstream ... then file does not open or created... and then through exception my problem ...
[5 replies] Last: My own experimentation revealed that if you append ios::trunc in the... (by RedX)
Borland 5.02 dll use in VS 2008
 
Dear All, I have a task to connecting RGB controller (Chromoflex) in to PC. The chromoflex guy gave me a .dll file to establishing communication. The problem...
[1 reply] : You can use it directly. It doesn't really matter what language a DLL... (by kbw)
May 2010 Pages: 1... 7891011... 22
  Archived months: [apr2010] [jun2010]

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