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

Creating Hash Table
 
hey, i wrote a program to create a hash table using an array of numbers, but I do not know how to display the actual table on my screen. Does anyone know how to...
[1 reply] : Nothing calls hashTable or hashfunction . main doesn't do anythi... (by kbw)
Some questios about AfxBeginThread
 
hi everybody, i still have problems with parallel programming. i want to solve little problem, where i have matrix 2x2 and vector consisting of 2 elements and ...
[2 replies] Last: You will NOT get just one messagebox with 1 2 3 4 5 written it it. Th... (by akmal4ik)
SQL Databases ...
 
Greetings xD this is my first post n i think it's a kind of 'dizzy' question .. Well the main problem is with sql databases ... More specific : > I created...
[4 replies] Last: PURE C++ doesn't support databases inherently. You need some libraries... (by melkiy)
Template-based data reading from string
 
Hi all, I am trying to implement a class to store data, which should be able to read its data from a string (or stringstream). I am trying something like ...
[7 replies] Last: Tataaa! I got it. kbw, you pointed me in the right direction. Yes,... (by mrichwin)
inheriting a default value (short and to the point)
 
So my class Polygon has a member: int Polygon::default_length (1); anyway I want my class Rectangle which is derived from Polygon to inherit that memb...
[3 replies] Last: Hey... wait a minute.... didn't I just answer this? http://cpluspl... (by Disch)
Initialize
 
Say you have a class polygon and it has a member default_length and you want to initialize that value without explicitly using a constructor. Is this code legal...
[3 replies] Last: Sure they do. If your default_length member is public or protected,... (by Disch)
Reversing char[] arrays
 
I tried making a program to reverse a given char array. The problem: If you insert a big char array, let say, with 15 chars, a runtime error happens. Secon...
[9 replies] Last: Why the hell would it be any different from normal static arrays if I... (by helios)
Starting Project.
 
This is my first program I have been allowed to choose myself. I am very green in c++. My programs jobs is to collect information such as water temp water depth...
[no replies]
Error Loading Bitmaps in Xcode
 
Terribly sorry please delete this thread.
[no replies]
Calculating a Fibonacci Number
 
Is this a common source code amongst "Loop topic programming"?
[6 replies] Last: Argh, that is such an weird convention... The zero-th Fibonacci number... (by tition)
Error codes with bools!
 
Is it possible for me to create my own error codes? Such as if a function fails to accomplish it's task an error handler activates? I was thinking something lik...
[15 replies] Last: @Zhuge: We are talking about his custom functions. You can't, you h... (by firedraco)
by brnksk
conditional loop
 
here i'm trying to make a program that has an output like this input data into array: Data 1: 2 Data 2: 4 Data 3: 4 Data 4: 4 Data 5: 2 Data 6: 7 Data...
[9 replies] Last: You could save them in a conventional collection like another array. (by kbw)
Random number generator
 
Just for curiosity, how does the rand() function work? I mean, could somewone here make a new rand() function using reverse engineering? Thanks in advance.
[6 replies] Last: http://www-cs-faculty.stanford.edu/~knuth/programs/rng.c http://www-c... (by kbw)
How to Access this C++ Database?
 
At first i study accessing C++ database using this data file formation written in notepad let say "record.txt" is the name of database. E1-1000 John_Wright ...
[10 replies] Last: ifstream fin("C:\Documents and Setting\Desktop\record.txt"); should... (by kbw)
undefined reference to
 
Below are the concerned files. The code is very simple and self-explanatory. damwst.h :- #include <deque> #include <vector> #include <queue> #include ...
[3 replies] Last: Eureka !! Eureka !! the changes required to my first post are as follo... (by dpp2284)
Polymorphism (my post is to the point)
 
So I'm trying to create a Circle class that extends Shape class which has three abstract classes: /* * Shape.h */ #ifndef SHAPE_H #define SHAPE_H ...
[7 replies] Last: The problem is that the syntax for defining a function prototype calle... (by Zhuge)
December 2009 Pages: 1... 141516
  Archived months: [nov2009] [jan2010]

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