General C++ Programming - December 2009 (Page 4)

Versioning DLLs
 
hi everbody.... a stupid question: how to increase the version number of my new DLL after/while com...
[4 replies] Last: hi,the better thing is to download visual c++2005 . i have it and whe... (by ARWA)
by jrohde
Naming convention of standard C functions/types
 
Just a general knowledge question: Is there a reason why the functions and data types in standard...
[4 replies] Last: The reason standard C library names are so short is that older version... (by Duthomhas)
stdint.h in MSVS
 
Hi all, for a certain project, I'm forced to use MS Visual Studio and it's compiler. From linux...
[2 replies] Last: Depending on what version of VS you're using, you'll find that __int8,... (by kbw)
dereference a pointer to a template classes operator
 
HI all, I'm using the boost::random library. It has a template class variate_generator which o...
[3 replies] Last: Hi, it works, thank you! sorry for the late answer.... Alex (by alexatcpp)
installing packets
 
Ok so im not exactly new to programing in c++ but i have never installed any of the extra packets in...
[2 replies] Last: thanks smith (by CrimsonAngel)
by Nobun
Questions about overloading operators
 
My main question is about when you must use "operator" and when you must use "&operator" for exam...
[5 replies] Last: My bad. It's an old habit from my C days. If you have multiple decla... (by kbw)
Template error...
 
Imagine the following class template: template <typename T> class C { public: struc...
[2 replies] Last: Thank you very much. So, typename keyword ensures that C<T>::S is a ty... (by outsid3r)
hashmap vs hashtable
 
What's the difference between hashmap and a hashtable? I have used a STL::map and a TR1::hashtable b...
[1 reply] : http://lmgtfy.com/?q=hashmap+vs+hashtable (by CrimsonAngel)
Socket problem
 
Hi everybody, I have programmed a simple TCP server with the winsock library in order to communic...
[1 reply] : Maybe it doesn't hangs? I mean it is situated in state of listening? ... (by Denis)
Very Simple, Very IMP...
 
Hey everyone,,, I just cannot access the word in my head.. class A { public : static A a(...
[3 replies] Last: [quote=wikipedia]...in which case it is called a class method or a ... (by closed account z05DSL3A)
How can I make this program work? Problem with arrays
 
#include<iostream> #include<string> using namespace std; void details( string fNum,int dHour,i...
[2 replies] Last: hmm... I'm not a real programmer (a lot of people can help you better ... (by Nobun)
New operator overloading issue
 
Hi, I'm trying to achieve something like this: I have struct Node. struct Node{ Node* paren...
[2 replies] Last: I am trying to implement my GC (http://iwi.eldoc.ub.rug.nl/root/2007/S... (by Mihulik)
by jhapk
static variable inside a function
 
Hi, is there any reason for declaring a local variable inside a function as static? thanks
[6 replies] Last: local static variables are initialized on first use. If the function ... (by Disch)
by AYT
Question on reading binary data
 
Hi all, I want to create a class to read and write a binary file format. I'll be using ifstream's...
[5 replies] Last: TC++PL says that chars are almost universally 8 bits long. From what I... (by helios)
by paul23
Problem with heaps (removal of xth elem)
 
Hi, I'm trying to build some data structure I need in the future for my program.. - It ought to h...
[1 reply] : No need to reinvent the wheel on this one. It pretty much sounds like... (by Disch)
Binary vs unary function predicate
 
bool personSortCriterion(const Person& p1, const Person& p2) { return p1.lastname() < p2.last...
[1 reply] : 1. No, sort requires random access iterators and uses those to its ful... (by PanGalactic)
sorting algos
 
What are the use cases when a particular sorting algorithm is preferred - merge sort vs quick sort v...
[10 replies] Last: I have found stable sorting useful for testing data manipulation progr... (by PanGalactic)
Member Class with Constructor Parameters
 
Hey everyone. I have a problem and I was wondering if someone could help. Suppose I have a cla...
[4 replies] Last: They make possible to construct/destruct B only within the class itsel... (by Bazzy)
by MyRedz
need guide on my ds c++ link list project
 
hi i am going to do a course registration portal where student add and drop subjects there will be...
[1 reply] : Try starting by coding what the linked list class will look like. (by Zhuge)
by sys7em
Implementing Binary tree using a vector
 
I have the below code: Now I have to implement the same binary tree using a vector. What approach...
[1 reply] : For node i>=0, its left child is i*2+1, and its right child is i*2+2. (by helios)
December 2009 Pages: 123456... 16
  Archived months: [nov2009] [jan2010]

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