General C++ Programming - April 2012

Initializing size of hash table
 
If I know how many items are going to need to go in my hash table, how could I initialize it to a si...
[1 reply] : Multiply the maximum expected number of elements by 1.5, and then roun... (by JLBorges)
Out of range at memory location
 
I have to read in two names from a text file and change each letter to its corresponding number valu...
[6 replies] Last: Never mind, I fixed it. I also made it more efficient. Instead of repl... (by rasen58)
Help creating this algorithm please?
 
I'm working on a hash function that gives a given string an "ID" by mapping that string to a key. Th...
[1 reply] : The first trick is to notice that you are doing the same thing over an... (by Duoas)
Populating Files in a Combo Box
 
I am a beginner. I have a 5 files that is saved on my C drive in a folder. I need to use MFC c++ an...
[no replies]
Installing cURL
 
I have downloaded and unzipped cURL and curl-ca-bundle.crt on my desktop. However, I do not know whe...
[no replies]
Multithreaded Observer Pattern
 
I'm about to build an (Observer/Subject) (Publisher/Subcriber) interface that I will reuse for diffe...
[2 replies] Last: One thing that occurs to me is that when you notify your observers you... (by Galik)
Is this a good convention for namespaces?
 
Hello, I was trying to experiment with some functional programming on a small-scale project and was...
[6 replies] Last: Yes, keep stuff in namespaces. http://www.cplusplus.com/forum/general/... (by Duoas)
Make GCC 4.7
 
I downloaded the gcc 4.7.0 package, went through the documentation for make and building, install ...
[9 replies] Last: The Equation build has OpenMP support (and also includes the FORTRAN c... (by JLBorges)
Why is my array not printing in rows and columns?
 
This may be a stupid question, but I can not figure it out. using namespace std; const int ROWS ...
[2 replies] Last: Wow, I shouldve spotted that. Thank you! (by JGridlock)
Dynamic programming
 
hi... i was given a task of making all possible combinations of a 2d array through brute force algo...
[1 reply] : i have implemented the brute force approach..but plz help me in making... (by ssaaddii)
Installing Boost Library for 64bit c++ 2010
 
I am trying to install the Boost library system on my Windows 7 64bit C++ 2010 compiler. The instruc...
[9 replies] Last: If you really don't know.. start with mt and mt-debug. If you ever nee... (by Cubbi)
by trista
Having problems writing
 
Having a bit of trouble getting this to show up right on the output. Let me know what you come up wi...
[3 replies] Last: Thanks for posing the code. Next time you post code, please use the c... (by doug4)
Trouble with lists
 
This is my program: #include <iostream> #include <list> int main () { std::list<int> i...
[1 reply] : You shall write iter = intList.erase (iter); Or you can use mem... (by vlad from moscow)
by sabu
name problem
 
why vector,list etc.are called Sequence containers, stack,queqe are called Container adaptors and s...
[2 replies] Last: thanks! (by sabu)
Link List help
 
So I've been trying to fix this program for the past month. Its a semester long program project. The...
[4 replies] Last: In polynomial.h you have a #endif followed by a '}' The #endif is for... (by doug4)
by am1221
getting data from a file and assigning it to a vector
 
Hi, I am trying to create a simple program that does exactly what the title says. The file I w...
[6 replies] Last: Actually I think I just found a way to do it, thanks all! (by am1221)
Issue with ifstream.seekg()
 
I am trying to go 1 record behind from the end of file and then want to read the last record only, b...
[3 replies] Last: Sorry, I thought that it was an actual compiled DLL. In that case it's... (by Computergeek01)
by tate1
final examination questions....need assistance please...
 
During the ____ phase of the system development process, potential problems and opportunities are i...
[no replies]
nm output explanation
 
Hi, I'm looking for extended information (more than the manpage provides) for the nm command (maybe ...
[1 reply] : "?" The symbol type is unknown, or object file format specific. Fro... (by JLBorges)
delete [] query
 
Well, I am not sure why don't we specify the size in delete operator? I know compiler finds it out a...
[4 replies] Last: Thanks all for the replies :) @guestgulkan - The link is quite usefu... (by incognito)
April 2012 Pages: 123... 49
  Archived months: [mar2012] [may2012]

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